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"` //等级值
|
}
|