import { NzMessageType } from 'ng-zorro-antd/message'; import { RhPortLocalFieldType, RhPortType } from 'rh-base/core'; import { RhSafeAny, WithNil } from 'rh-base/model'; export class CardPropertyDto { constructor( /** 显示名称 */ public displayName: WithNil, /** 属性名称 */ public valueName: WithNil, /** 前景色 */ public color = 'blue', /** 数据处理函数 */ public handler?: (item: string | Date) => string, public type: 'string' | 'date' = 'string' ) {} } export class DataDisplayDto { constructor( /** 名称 */ public DisplayName: WithNil, /** 健值 */ public DataKey: string, /** 是否显示字段 */ public IsShowData: boolean = true, public cb?: (data: RhSafeAny) => RhSafeAny, /** 是否显示编辑按钮 */ public IsShowSelectIcon: boolean = false, public Type: 'string' | 'date' = 'string' ) {} } /** 分页器模型 */ export class PaginationDto { constructor( /** 总数据数 */ public totalItmes: number, /** 总页数 */ public totalPages: number, /** 当前页码 */ public pageIndex: number, /** 每页展示的数据量 */ public pageSize: number, public startPage: number, public endPage: number, public startIndex: number, public endIndex: number, /** 页码集合 */ public pages: number[] ) {} } export class RhApiInterfaceDto { constructor( public type: number | RhPortType, /**控制器名称 */ public ctrlName: string, /**方法名称 */ public actionName: string, /**该端口对应的控制本地调试的字段 */ public localField: RhPortLocalFieldType ) {} } /** 顶部消息信息模型 */ export class RhMessageContentDto { /** 消息类型 */ Type: NzMessageType; /** 消息内容 */ Value: string; constructor( /** 消息类型 */ Type: NzMessageType, /** 消息内容 */ Value: string ) { this.Type = Type; this.Value = Value; } }