package allied_creation_basic //ReqGetDictionarysByCode 根据code获取字典数据 type ReqGetDictionaryByCode struct { DictCodes []string `json:"dictCodes"` } //DataGetDictionarysByCode 根据code获取字典数据 type DataGetDictionaryByCode struct { Dictionarys []struct { // 字典编号 主键 DictionaryId int64 `json:"dictionaryId,string"` // 字典编码 DictCode string `json:"dictCode"` // 字典名称 DictName string `json:"dictName"` // 备注信息 Describe string `json:"describe"` // 字典值列表 DictItems []struct { // 项编码 ItemCode string `json:"itemCode"` // 项标签 ItemLabel string `json:"itemLabel"` // 值 ItemValue string `json:"itemValue"` // 是否可见【1:不可以】【2:可以】 IsShow int `json:"isShow"` // 显示序号 Sort int `json:"sort"` } `json:"dictItems"` } `json:"dictionarys"` } type Dictionary struct { DictionaryId int64 `json:"dictionaryId,string"` // 字典编号 主键 DictCode string `json:"dictCode"` // 字典编码 DictName string `json:"dictName"` // 字典名称 Describe string `json:"describe"` // 备注信息 DictItems []DictionaryItem `json:"dictItems"` // 字典值列表 } // 字典明细项 type DictionaryItem struct { ItemCode string `json:"itemCode"` // 项编码 ItemLabel string `json:"itemLabel"` // 项标签 ItemValue string `json:"itemValue"` // 值 IsShow int `json:"isShow"` // 是否可见【1:不可以】【2:可以】 Sort int `json:"sort"` // 显示序号 } type ( ReqDictionarySearch struct { Pageindex int `json:"pageIndex"` // 查询页码 PageSize int `json:"pageSize"` // 查询限制 } DataDictionarySearch struct { Grid struct { Total int `json:"total"` PageNumber int `json:"pageNumber"` List []Dictionary `json:"list"` // 字典值列表 } `json:"grid"` } ) type ( ReqDictionaryAdd struct { DictCode string `json:"dictCode"` // 字典编码 DictName string `json:"dictName"` // 字典名称 Describe string `json:"describe"` // 备注信息 DictItems []DictionaryItem `json:"dictItems"` // 字典值列表 } DataDictionaryAdd struct { Dictionary } ) type ( ReqDictionaryUpdate struct { DictionaryId int64 `json:"dictionaryId"` // 字典编号 主键 DictCode string `json:"dictCode"` // 字典编码 DictName string `json:"dictName"` // 字典名称 Describe string `json:"describe"` // 备注信息 DictItems []DictionaryItem `json:"dictItems"` // 字典值列表 } DataDictionaryUpdate struct { Dictionary } ) type ( ReqDictionaryGet struct { DictionaryId int `json:"dictionaryId"` } DataDictionaryGet struct { Dictionary } ) type ( ReqDictionaryRemove struct { DictionaryIds []int `json:"dictionaryIds"` } DataDictionaryRemove struct { } )