import { REPLY_STATUS, COMMENT_STATUS } from '@/types/comments/constant';

export interface Records {
  id: number; //评论id
  userId: number; //用户id
  userName: string; //用户名
  avatar: string; //用户头像
  comment: string; //评论内容
  picUrl: string; //评论图片
  staffNo: string; //员工编号
  mobile: string; //手机号
  realname: string; //真实姓名
  // problemImage: Array<File>;
  reply: string | null; //回复内容
  isReplied: REPLY_STATUS; //是否已回复
  replyAt: string | null; //回复时间
  status: COMMENT_STATUS; //审核状态
  createdAt: string; //创建时间
  updatedAt: string; //更新时间
  isUserDeleted: number;
  tenantId: number; //租户id
  locationName: string;
}

export interface ListType {
  records: Records[];
  maxPageSize?: number;
  pageNumber: number;
  pageSize: number;
  totalPage: number;
  totalRow: number;
  optimizeCountQuery: boolean;
}

export interface CommentsQuery {
  pageNumber: number; //评论id
  pageSize: number; //用户id
  queryParam?: {
    isReplied?: number;
    isApproved?: number;
  };
}
