import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';

//
export type AccountParams = BasicPageParams & {
  account?: string;
  nickname?: string;
  [key: string]: any;
};

// 常用返回消息
export interface responses {
  message: string;
  code: number;
  result: boolean;
}
export type responsesmodel = BasicFetchResult<responses>;

// 获取分页列表
// 查询表单分页信息
export interface getPageList_Params {
  keyword: string;
  pmoduleid: string;
  page: number;
  limit: number;
  name: string;
}
export interface getPageList {
  id: string;
  code: string;
  formCode: string;
  formVerison: string;
  icon: string;
  name: string;
  type: number;
  pmoduleId: string;
  moduleId: string;
  sortCode: number;
  enabledMark: number;
  description: string;
  createDate: string;
  createUserId: string;
  createUserName: string;
  modifyDate: string;
  modifyUserId: string;
  modifyUserName: string;
  scheme: string;
  keyWord: string;
  tenantId: string;
  isMain: number;
}
export type getPageList_ParamsModel = BasicFetchResult<getPageList_Params>;
export type getPageListModel = BasicFetchResult<getPageList>;

// 更新状态
export interface state {
  id: string;
  state: string;
}
export type stateModel = BasicFetchResult<state>;

// 删除实体数据（表单发布模板id）
// AccountParams

// 根据主键获取实体数据(编辑时使用)
export interface form {
  id: string;
  code: string;
  formCode: string;
  formVerison: string;
  icon: string;
  name: string;
  type: number;
  pmoduleId: string;
  moduleId: string;
  sortCode: number;
  enabledMark: number;
  description: string;
  createDate: string;
  createUserId: string;
  createUserName: string;
  modifyDate: string;
  modifyUserId: string;
  modifyUserName: string;
  scheme: string;
  keyWord: string;
  tenantId: string;
  isMain: number;
}
export type GetFormModel = BasicFetchResult<form>;
