/**
 * @description: 流程模板基本信息参数
 */
export interface SchemeListParams {
  key: string;
  page: number;
  limit: number;
  category: string;
  ids?: string;
}
/**
 * @description: 获取流程模板详情参数 \获取数据库表
 */
export interface DetailParams {
  code?: string;
}

/**
 * @description: 流程模板添加参数
 */
export interface AddParams {
  schemeinfo: {
    id: string,
    code: string,
    name: string,
    category: string,
    color: string,
    icon: string,
    schemeId: string,
    enabledMark: 0,
    mark: 0,
    isInApp: 0,
    authType: 0,
    description: string,
    type: 0,
    createDate: string,
    createUserId: string,
    createUserName: string
  },
  schemeAuthList: [
    {
      id: string,
      schemeInfoId: string,
      objName: string,
      objId: string,
      objType: 0
    }
  ],
  scheme: {
    id: string,
    schemeInfoId: string,
    type: 0,
    createDate: string,
    createUserId: string,
    createUserName: string,
    content: string
  }
}

/**
 * @description: 字典明细更新参数
 */
export interface UpdateParams {
  schemeinfo: {
    id: string,
    code: string,
    name: string,
    category: string,
    color: string,
    icon: string,
    schemeId: string,
    enabledMark: 0,
    mark: 0,
    isInApp: 0,
    authType: 0,
    description: string,
    type: 0,
    createDate: string,
    createUserId: string,
    createUserName: string
  },
  schemeAuthList: [
    {
      id: string,
      schemeInfoId: string,
      objName: string,
      objId: string,
      objType: 0
    }
  ],
  scheme: {
    id: string,
    schemeInfoId: string,
    type: 0,
    createDate: string,
    createUserId: string,
    createUserName: string,
    content: string
  }
}


/**
 * @description: 分类明细删除参数
 */
export interface DeleteParams {
  id: string;
}

export interface StateParams {
  id: string;
  state: number;
}

/**
 * @description: 获取分类明细返回值
 */
export interface GetSchemeModel {
  itemDetailId: string;
  itemId: string;
  parentId: string;
  itemCode: string;
  itemName: string;
  itemValue: string;
  quickQuery: string;
  simpleSpelling: string;
  isDefault: string;
  sortCode: number;
  deleteMark: number;
  enabledMark: number;
  description: string;
  createDate: string;
  createUserName: string;
  modifyDate: string;
  modifyUserId: string;
  modifyUserName: string;
}

/**
 * @description: 历史记录查询参数
 */
export interface HistoryParams {
  key?: string;
  page?: number;
  limit?: number;
  id?: string;
}
/**
 * @description: 历史记录返回值
 */
export interface GetHistoryModel {
  id: string,
  schemeInfoId: string,
  type: number,
  createDate: string,
  createUserId: string,
  createUserName: string,
  content: string
}
/**
 * @description: 切换版本
 */
export interface SchemeParams {
  id: string,
  schemeId: string
}
