功能:完善评论测试与优惠券最优选择
This commit is contained in:
@@ -360,6 +360,29 @@ export const adminCouponApi = {
|
||||
}
|
||||
}
|
||||
|
||||
export interface AdminCommentVO {
|
||||
id: IdType
|
||||
userId: IdType
|
||||
userNickname?: string
|
||||
shopId?: IdType
|
||||
shopName?: string
|
||||
productId?: IdType
|
||||
productTitle?: string
|
||||
commentContent: string
|
||||
parentCommentId?: IdType
|
||||
parentCommentContent?: string
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
export const adminCommentApi = {
|
||||
listComments: (params: { productId?: IdType; userId?: IdType; shopId?: IdType; keyword?: string }) => {
|
||||
return adminApi.get<AdminCommentVO[]>('/comment/list', { params }) as unknown as Promise<AdminCommentVO[]>
|
||||
},
|
||||
deleteComment: (id: IdType) => {
|
||||
return adminApi.delete<boolean>(`/comment/delete/${id}`) as unknown as Promise<boolean>
|
||||
}
|
||||
}
|
||||
|
||||
export interface Product {
|
||||
id: IdType
|
||||
shopId: IdType
|
||||
|
||||
Reference in New Issue
Block a user