yinbentan
2024-07-16 62bd99d03c25ff02f101a4522cf1cbd8430b31c3
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package request
 
import (
    "github.com/shopspring/decimal"
    "silkserver/constvar"
)
 
type GetDictList struct {
    PageInfo
    DictType constvar.DictType `json:"dictType" form:"dictType"` //字典类型
    Keyword  string            `json:"keyword" form:"keyword"`   //搜索关键字
}
 
type AddDict struct {
    DictType constvar.DictType `json:"dictType"` //字典类型
    Number   string            `json:"number"`   //编码
    Name     string            `json:"name"`     //名称
    Remark   string            `json:"remark"`   //备注
}
 
type UpdateDict struct {
    ID uint `gorm:"comment:主键ID;primaryKey;" json:"id"`
    AddDict
}
 
type CodeStandard struct {
    Type int `json:"type"` // 类型
}
 
// ---------------------------------------生丝---------------------------------
type GetPriceStandard struct {
    PageInfo
    KeyWord string `json:"keyWord"`
}
 
type SaveRankStandard struct {
    RankStandard []RankStandard `json:"rankStandard"`
}
 
type RankStandard struct {
    LineId        string             `json:"lineId"`        //行id
    CheckItem     constvar.CheckItem `json:"checkItem"`     //检查项目名称
    StartFineness decimal.Decimal    `json:"startFineness"` //开始纤度
    EndFineness   decimal.Decimal    `json:"endFineness"`   //结束纤度
    RankA         decimal.Decimal    `json:"rankA"`         //野纤
    RankB         decimal.Decimal    `json:"rankB"`         //大野
    RankC         decimal.Decimal    `json:"rankC"`         //特野
    DynamicsRanks []DynamicsRank     `json:"dynamicsRanks"`
}
 
type DynamicsRank struct {
    RankProp  string          `json:"rankProp"`  //前缀key
    RankName  string          `json:"rankName"`  //等级名称
    RankValue decimal.Decimal `json:"rankValue"` //等级值
}