32 lines
602 B
TypeScript
32 lines
602 B
TypeScript
import type { PageParam } from '@/api';
|
||
|
||
/**
|
||
* 商品点赞和收藏表
|
||
*/
|
||
export interface GoodsRelation {
|
||
// id
|
||
id?: number;
|
||
// 用户ID
|
||
userId?: number;
|
||
// 商品ID
|
||
goodsId?: number;
|
||
// 类型(收藏(collect)、点赞(like))
|
||
type?: string;
|
||
// 某种类型的商品(普通商品、秒杀商品)
|
||
category?: string;
|
||
// 租户id
|
||
tenantId?: number;
|
||
// 创建时间
|
||
createTime?: string;
|
||
// 更新时间
|
||
updateTime?: string;
|
||
}
|
||
|
||
/**
|
||
* 商品点赞和收藏表搜索条件
|
||
*/
|
||
export interface GoodsRelationParam extends PageParam {
|
||
id?: number;
|
||
keywords?: string;
|
||
}
|