初始化
This commit is contained in:
31
api/shop/goodsRelation/model/index.ts
Normal file
31
api/shop/goodsRelation/model/index.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user