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

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

// 分页获取列表数据
export interface LoadDataBaseInfo {
  id: string;
  code: string;
  name: string;
  dbId: string;
  sql: string;
  description: string;
  createUserId: string;
  createUserName: string;
  createDate: string;
  modifyUserId: string;
  modifyUserName: string;
  modifyDate: string;
  tenantId: string;
  isEdit: 0;
}
export type LoadDataBaseInfoModel = BasicFetchResult<LoadDataBaseInfo>;

// 新增或者修改数据源
export interface AddOrUpdateForm {
  id: string;
  code: string;
  name: string;
  dbId: string;
  sql: string;
  description: string;
  createUserId: string;
  createUserName: string;
  createDate: string;
  modifyUserId: string;
  modifyUserName: string;
  modifyDate: string;
  tenantId: string;
  isEdit: number;
}
export type AddOrUpdateFormModel = BasicFetchResult<AddOrUpdateForm>;
