import { RhSelectItem, RhSelectableDto, WithNil } from 'rh-base/model'; export const INDEXDB_DB_NAME = 'InterfaceDebug'; export const INDEXDB_DB_SHEET_NAME = 'InterfaceInfo'; export const INDEXDB_PRIMARY_KEY = 'InterfaceId'; export const INDEXDB_VERSION = 1; export const ENVIRONMENT_DATAS = [ { name: '121服务器', server: '192.168.0.121' }, { name: '200服务器', server: '192.168.0.200' }, { name: '本地服务器', server: 'localhost' }, { name: 'Mock服务器', server: 'mockserver' } ]; export const DataResultSchema = { type: 'object', properties: { Message: { type: 'string' }, Success: { type: 'boolean' }, Record: { type: 'integer' }, Attach: { type: ['object', 'array'] } }, required: ['Message', 'Success', 'Record', 'Attach'] }; /** 业务仓库配置输出参数 */ export class WarehouseBusinessConfOutput { constructor( /** 工厂代码 */ public FactoryCode: WithNil, /** 业务类型代码 */ public BusinessTypeCode: WithNil, /** 业务类型名称 */ public BusinessTypeName: WithNil, /** 配置模式 */ public ConfigMode: WithNil, /** 允许查询仓库 */ public ListAllowedWarehouses: WithNil, /** 允许查询仓库类别 */ public ListAllowedWarehouseCategories: WithNil, /** 忽略查询仓库 */ public ListIgnoredWarehouses: WithNil, /** 忽略查询仓库类别 */ public ListIgnoredWarehouseCategories: WithNil, ) { } static create(): WarehouseBusinessConfOutput { return new WarehouseBusinessConfOutput(null, null, null, null, null, null, null, null); } } /** 业务仓库配置查询数据传输对象 */ export class WarehouseBusinessConfQueryDto { constructor( /** 业务类型代码 */ public BusinessTypeCode: WithNil, /** 业务类型名称 */ public BusinessTypeName: WithNil, /** 允许查询仓库 */ public AllowedWarehouses: WithNil, /** 允许查询仓库类别 */ public AllowedWarehouseCategories: WithNil, /** 忽略查询仓库 */ public IgnoredWarehouses: WithNil, /** 忽略查询仓库类别 */ public IgnoredWarehouseCategories: WithNil, /** 配置模式 */ public ConfigMode: WithNil, /** 备注 */ public Remark: WithNil, /** 工厂代码 */ public FactoryCode: WithNil, /** 查询模式 */ public Mode: WithNil, /** 需要返回的结果数量 */ public MaxResultCount: WithNil, /** 跳过的数量 */ public SkipCount: WithNil ) { } static create(): WarehouseBusinessConfQueryDto { return new WarehouseBusinessConfQueryDto(null, null, null, null, null, null, null, null, null, null, null, null); } } /** 业务所含仓库列表配置查询模型 */ export class BusinessWithWarehouseConfigQueryDto { constructor( /** 工厂代码 */ public FactoryCode: WithNil, /** 业务类型代码 */ public BusinessTypeCode: WithNil ) { } static create(): BusinessWithWarehouseConfigQueryDto { return new BusinessWithWarehouseConfigQueryDto(null, null); } } /** 外部服务异常补偿记录模型 */ export class ESInvokeExceptionCompensagionRecordDto { constructor( /** 调用唯一键值 */ public InvokeKey: WithNil, /** 补偿调用URL */ public InvokeApiUrl: WithNil, /** 调用输入参数 */ public InvokeInputParameter: WithNil, /** 调用方法名称 */ public InvokeMethodName: WithNil, /** Http方法 */ public HttpMethod: WithNil, /** 异常类型 */ public ErrorType: WithNil, /** 异常信息 */ public ErrorMessage: WithNil, /** 尝试执行次数 */ public TryExecuteTimes: WithNil, /** 是否执行成功 */ public IsHandleSuccess: WithNil, /** 系统名称 */ public SystemName: WithNil, /** 终端IP地址 */ public TerminalIp: WithNil, /** 操作标志 */ public OpSign: WithNil, /** 自增键 */ public Id: WithNil ) { } static create(): ESInvokeExceptionCompensagionRecordDto { return new ESInvokeExceptionCompensagionRecordDto(null, null, null, null, null, null, null, null, null, null, null, null, null); } } /** 外部服务调用异常日志模型 */ export class ESWebApiInvokeExceptionLogDto { constructor( public ControllerName: WithNil, /** 调用Url */ public InvokeApiUrl: WithNil, /** 调用输入参数 */ public InvokeInputParameter: WithNil, /** 调用方法名 */ public InvokeMethodName: WithNil, /** 调用源类型 */ public InvokeSourceType: WithNil, /** Http方法 */ public HttpMethod: WithNil, /** 错误类型 */ public ErrorType: WithNil, /** 错误信息 */ public ErrorMessage: WithNil, /** 终端IP */ public TerminalIp: WithNil, /** 系统名称 */ public SystemName: WithNil, /** 创建日期 */ public CreationDate: WithNil, /** 操作标志 */ public OpSign: WithNil, /** 自增键 */ public Id: WithNil ) { } static create(): ESWebApiInvokeExceptionLogDto { return new ESWebApiInvokeExceptionLogDto(null, null, null, null, null, null, null, null, null, null, null, null, null); } } /** 业务模式配置 */ export class BusinessModeConfigQueryDto { constructor( /** 业务类型编码 */ public BusinessTypeCode: WithNil, /** 业务类型名称 */ public BusinessTypeName: WithNil, /** 业务模式编码 */ public BusinessModeCode: WithNil, /** 业务模式名称 */ public BusinessModeName: WithNil, /** 是否启用 */ public IsUse: WithNil, /** 备注 */ public Remark: WithNil, /** 工厂代码 */ public FactoryCode: WithNil, /** 查询模式 */ public Mode: WithNil, /** 需要返回的结果数量 */ public MaxResultCount: WithNil, /** 跳过的数量 */ public SkipCount: WithNil, ) { } static create(): BusinessModeConfigQueryDto { return new BusinessModeConfigQueryDto(null, null, null, null, null, null, null, null, null, null); } } /** 业务模式配置 */ export class BusinessModeConfigDto extends RhSelectableDto { constructor( /** 业务类型编码 */ public BusinessTypeCode: WithNil, /** 业务类型名称 */ public BusinessTypeName: WithNil, /** 业务模式编码 */ public BusinessModeCode: WithNil, /** 业务模式名称 */ public BusinessModeName: WithNil, /** 备注 */ public Remark: WithNil, /** 是否启用 */ public IsUse: WithNil, /** 工厂代码 */ public FactoryCode: WithNil, /** 操作标志 */ public OpSign: WithNil, /** 自增键 */ public Id: WithNil ) { super(); } static create(): BusinessModeConfigDto { return new BusinessModeConfigDto(null, null, null, null, null, null, null, null, null); } } /** 业务模式页面配置模型 */ export class BusinessModePageConfigDto { constructor( /** 业务类型编码 */ public BusinessTypeCode: WithNil, /** 业务模式编码 */ public BusinessModeCode: WithNil, /** 是否启用扫描入库仓库 */ public IsUseScanInWarehouse: WithNil, /** 扫描入库仓库类型 */ public ScanInWarehouseType: WithNil, /** 是否启用扫描出库仓库 */ public IsUseScanOutWarehouse: WithNil, /** 扫描出库仓库类型 */ public ScanOutWarehouseType: WithNil, ) { } static create(): BusinessModePageConfigDto { return new BusinessModePageConfigDto(null, null, null, null, null, null); } }