| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- /*
- * @Author: ChenYaJin
- * @Date: 2023-07-03 10:55:53
- * @LastEditors: wjc
- * @LastEditTime: 2023-12-01 09:19:37
- * @Description: 通用模型
- */
- export type BasicResponse<T = any> = {
- code: number
- message: string
- data: T
- }
- /**
- * 接口返回数据模型
- */
- export type ApiResponse<T = unknown> = {
- data: BasicResponse<T>
- }
- /**
- * table
- */
- export type TableData<T = unknown> = {
- list: Array<T>
- pageSize?: number
- pageNum?: number
- pages?: number
- total?: number
- }
- export type Page = {
- pageSize?: number
- pageNum?: number
- isPage?: boolean
- }
- /**
- * dialog数据
- */
- export type ModalData<T = unknown> = {
- isShow?: boolean
- type?: string
- loading?: boolean
- row?: T
- title?: string
- }
- /**
- * 枚举
- */
- export interface IOption {
- id?: string
- code?: string
- value?: string
- name?: string
- label?: string
- type?: string
- leaf?: boolean
- children?: IOption[]
- }
- /**
- * 表单验证
- */
- export type IFormValidateCallback = {
- (message?: string | Error | undefined): Error | void
- }
- export type IFormValidator = (
- rule: {
- field: string
- },
- value: string,
- callback: IFormValidateCallback
- ) => void
- export type FormRuleItemParams = {
- required?: boolean
- message?: string
- validator?: IFormValidator
- trigger?: string
- }
- export interface AnyObject<T = unknown> {
- [key: string]: T
- }
- /**
- * 审核结果信息
- */
- export interface IAuditStatusInfo {
- content?: string
- reviewBy?: string
- auditStatus?: string
- reject?: string
- score?: number
- reviewAt?: string
- deadlineAt?: string
- }
|