import type { PageParam } from '@/api';
import { User } from '@/api/user/model';

/**
 * 任务
 */
export interface TaskRecord {
  // 任务id
  taskRecordId?: number;
  taskId?: number;
  parentId?: number;
  nickname?: string;
  avatar?: string;
  content?: string;
  files?: any;
  appId?: number;
  developerId?: number;
  userId?: number;
  sortNumber?: number;
  comments?: string;
  status?: string;
  children?: TaskRecord[] | [];
  createTime?: string;
  toUser: User | null;
}

/**
 * 任务搜索条件
 */
export interface TaskRecordParam extends PageParam {
  taskRecordId?: number;
  taskId?: number;
  userId?: number;
  developerId?: number;
}
