zhangqian
2024-08-01 fc3313955a083c9480e4ea74398f72f9ba6addcd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package request
 
import "wms/constvar"
 
type MiniDict struct {
    Name      string `json:"name"`      // 名称
    Code      string `json:"code"`      // 编码
    Value     string `json:"value"`     // 值
    IsDefault bool   `json:"isDefault"` // 是否默认
}
 
type AddMiniDict struct {
    MiniDict
    Type constvar.MiniDictType `json:"type"` // 字典类型
}
 
type EditMiniDict struct {
    MiniDict
    ID   int                   `json:"id"`   // 字典类型
    Type constvar.MiniDictType `json:"type"` // 字典类型
}
 
type SaveMiniDict struct {
    Type constvar.MiniDictType `json:"type"` // 字典类型
    List []*MiniDict           `json:"list"`
}
 
type GetMiniDict struct {
    Type    constvar.MiniDictType `json:"type"`    // 字典类型
    Name    string                `json:"name"`    // 字典名称
    Keyword string                `json:"keyword"` // 关键字查询
}
 
type GetMiniDictList struct {
    Type    constvar.MiniDictType `json:"type"`    // 字典类型
    Keyword string                `json:"keyword"` // 关键字查询
}