type.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { REPLY_STATUS, COMMENT_STATUS } from '@/types/comments/constant';
  2. export interface Records {
  3. id: number; //评论id
  4. userId: number; //用户id
  5. userName: string; //用户名
  6. avatar: string; //用户头像
  7. comment: string; //评论内容
  8. picUrl: string; //评论图片
  9. staffNo: string; //员工编号
  10. mobile: string; //手机号
  11. // problemImage: Array<File>;
  12. reply: string | null; //回复内容
  13. isReplied: REPLY_STATUS; //是否已回复
  14. replyAt: string | null; //回复时间
  15. status: COMMENT_STATUS; //审核状态
  16. createdAt: string; //创建时间
  17. updatedAt: string; //更新时间
  18. isUserDeleted: number;
  19. tenantId: number; //租户id
  20. locationName: string;
  21. }
  22. export interface ListType {
  23. records: Records[];
  24. maxPageSize?: number;
  25. pageNumber: number;
  26. pageSize: number;
  27. totalPage: number;
  28. totalRow: number;
  29. optimizeCountQuery: boolean;
  30. }
  31. export interface CommentsQuery {
  32. pageNumber: number; //评论id
  33. pageSize: number; //用户id
  34. queryParam?: {
  35. isReplied?: number;
  36. isApproved?: number;
  37. };
  38. }