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

export interface TypePageListParams {
  name?: string; //单位类型
  startTime?: string; //创建时间开始时间
  endTime?: string; //创建时间结束时间
}

export interface TypeAddParamsModel {
  name?: string; //单位类型
  remark?: string; //备注
  state?: number; //状态 0-关闭 1-开启
}

export interface TypeUpdateParamsModel {
  id: string; //详情id
  name?: string; //单位类型
  remark?: string; //备注
  state?: number; //状态 0-关闭 1-开启
}

export interface TypeListModel {
  id: string; //详情id
  name: string; //单位类型
  remark: string; //备注
  createUserName: string; //创建人
  createDate: string; //创建时间
  state: number; //状态 0-关闭 1-开启
  isHaveStandard: number; //是否有基准单位
}

export type TypePageListSearchModel = BasicPageParams & TypePageListParams;
export type TypePageListResultModel = BasicFetchResult<TypeListModel>;
