|
@@ -8,7 +8,7 @@ import (
|
|
|
|
|
|
type GasCylinderSpecGetPageReq struct {
|
|
|
dto.Pagination `search:"-"`
|
|
|
- Name string `form:"name" search:"type:contains;column:name;table:gas_cylinder_spec"` // 商品名称
|
|
|
+ Name string `form:"name" search:"type:contains;column:name;table:gas_cylinder_spec"` // 钢瓶规格名称
|
|
|
GasCylinderSpecOrder
|
|
|
}
|
|
|
type GasCylinderSpecOrder struct {
|
|
@@ -21,7 +21,7 @@ func (m *GasCylinderSpecGetPageReq) GetNeedSearch() interface{} {
|
|
|
|
|
|
type GasCylinderSpecInsertReq struct {
|
|
|
Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码
|
|
|
- Name string `json:"name"` // 商品名称
|
|
|
+ Name string `json:"name" vd:"len($)>0;msg:'钢瓶规格名称不能为空'"` // 钢瓶规格名称
|
|
|
Remark string `json:"remark"` // 备注
|
|
|
common.ControlBy `swaggerignore:"true"`
|
|
|
common.DeptBy `swaggerignore:"true"`
|
|
@@ -49,9 +49,9 @@ func (s *GasCylinderSpecInsertReq) GetId() interface{} {
|
|
|
}
|
|
|
|
|
|
type GasCylinderSpecUpdateReq struct {
|
|
|
- Id int `json:"id" comment:"编码"` // 编码
|
|
|
- Name string `json:"name"` // 商品名称
|
|
|
- Remark string `json:"remark"` // 备注
|
|
|
+ Id int `json:"id" comment:"编码"` // 编码
|
|
|
+ Name string `json:"name" vd:"len($)>0;msg:'钢瓶规格名称不能为空'"` // 钢瓶规格名称
|
|
|
+ Remark string `json:"remark"` // 备注
|
|
|
common.ControlBy `swaggerignore:"true"`
|
|
|
}
|
|
|
|
|
@@ -74,7 +74,7 @@ func (s *GasCylinderSpecUpdateReq) GetId() interface{} {
|
|
|
}
|
|
|
|
|
|
type GasCylinderSpecGetReq struct {
|
|
|
- Id int `uri:"id"`
|
|
|
+ Id int `uri:"id" vd:"$>0;msg:'id不能为空'"`
|
|
|
}
|
|
|
|
|
|
func (s *GasCylinderSpecGetReq) GetId() interface{} {
|
|
@@ -82,7 +82,7 @@ func (s *GasCylinderSpecGetReq) GetId() interface{} {
|
|
|
}
|
|
|
|
|
|
type GasCylinderSpecDeleteReq struct {
|
|
|
- Id int `json:"id"`
|
|
|
+ Id int `json:"id" vd:"$>0;msg:'id不能为空'"`
|
|
|
common.ControlBy `swaggerignore:"true"`
|
|
|
}
|
|
|
|
|
@@ -92,8 +92,8 @@ func (s *GasCylinderSpecDeleteReq) GetId() interface{} {
|
|
|
|
|
|
type AppletGasCylinderSpecGetPageReq struct {
|
|
|
dto.Pagination `search:"-"`
|
|
|
- StoreId int `form:"storeId" search:"type:exact;column:dept_id;table:gas_cylinder_spec"`
|
|
|
- Name string `form:"name" search:"type:contains;column:name;table:gas_cylinder_spec"` // 商品名称
|
|
|
+ StoreId int `form:"storeId" search:"type:exact;column:dept_id;table:gas_cylinder_spec" vd:"$>0;msg:'门店id不能为空'"`
|
|
|
+ Name string `form:"name" search:"type:contains;column:name;table:gas_cylinder_spec"` // 钢瓶规格名称
|
|
|
GasCylinderSpecOrder
|
|
|
}
|
|
|
|