|
@@ -21,6 +21,7 @@ type ProductSearchReq struct {
|
|
|
ProdClass string `json:"ProdClass"`
|
|
ProdClass string `json:"ProdClass"`
|
|
|
OnlyHardware bool `json:"onlyHardware"` // 只查询硬件产品
|
|
OnlyHardware bool `json:"onlyHardware"` // 只查询硬件产品
|
|
|
OnlySoftware bool `json:"onlySoftware"` // 只查询软件产品
|
|
OnlySoftware bool `json:"onlySoftware"` // 只查询软件产品
|
|
|
|
|
+ StateType string `json:"stateType"` // 状态
|
|
|
request.PageReq
|
|
request.PageReq
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -33,6 +34,7 @@ type AddProductReq struct {
|
|
|
DistPrice string `p:"distPrice" json:"distPrice" v:"required#经销商价不允许为空"`
|
|
DistPrice string `p:"distPrice" json:"distPrice" v:"required#经销商价不允许为空"`
|
|
|
AgentPrice string `p:"agentPrice" json:"agentPrice" v:"required#签约代理价不允许为空"`
|
|
AgentPrice string `p:"agentPrice" json:"agentPrice" v:"required#签约代理价不允许为空"`
|
|
|
MarketPrice string `p:"marketPrice" json:"marketPrice" v:"required#市场报价不允许为空"`
|
|
MarketPrice string `p:"marketPrice" json:"marketPrice" v:"required#市场报价不允许为空"`
|
|
|
|
|
+ State string `p:"state" json:"state"`
|
|
|
Remark string
|
|
Remark string
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -42,6 +44,12 @@ type UpdateProductReq struct {
|
|
|
Id int `p:"id" json:"id" v:"required# id不能为空"`
|
|
Id int `p:"id" json:"id" v:"required# id不能为空"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+//UpdateStateReq 修改数据
|
|
|
|
|
+type UpdateStateReq struct {
|
|
|
|
|
+ State string `p:"state" json:"state"`
|
|
|
|
|
+ Id int `p:"id" json:"id" v:"required# id不能为空"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//DeIds 批量删除
|
|
//DeIds 批量删除
|
|
|
type DeIds struct {
|
|
type DeIds struct {
|
|
|
Ids []int64 `json:"ids,omitempty,string"`
|
|
Ids []int64 `json:"ids,omitempty,string"`
|