Files
template-10490/api/cms/cmsProductComment/model/index.ts
2025-01-27 23:24:42 +08:00

42 lines
726 B
TypeScript

import type { PageParam } from '@/api';
/**
* 产品评论
*/
export interface CmsProductComment {
// ID
id?: number;
// 产品ID
productId?: number;
// 用户ID
userId?: number;
// 用户头像
avatar?: string;
// 用户昵称
nickname?: string;
image?: string;
// 排序(数字越小越靠前)
sortNumber?: number;
// 评论内容
comments?: string;
// 评分
rate?: number;
// 状态
status?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 子列表
children?: CmsProductComment[];
}
/**
* 产品评论搜索条件
*/
export interface CmsProductCommentParam extends PageParam {
id?: number;
userId?: number;
keywords?: string;
}