|
|
@@ -16,14 +16,14 @@ type BaseDistributor internal.BaseDistributor
|
|
|
|
|
|
// Fill with you ideas below.
|
|
|
type BaseDistributorSearchReq struct {
|
|
|
- DistCode string `json:"distCode"` // 经销商code
|
|
|
- DistName string `json:"distName"` // 经销商名称
|
|
|
- BelongSale string `json:"belongSale"` // 所属经销商
|
|
|
- ProvinceId int `json:"provinceId"` // 省份ID
|
|
|
+ DistCode string `json:"distCode"` // 经销商code
|
|
|
+ DistName string `json:"distName"` // 经销商名称
|
|
|
+ BelongSale string `json:"belongSale"` // 所属经销商
|
|
|
+ ProvinceId []string `json:"provinceId"` // 省份ID
|
|
|
request.PageReq
|
|
|
}
|
|
|
|
|
|
-//创建经销商字段
|
|
|
+// 创建经销商字段
|
|
|
type AddDistributor struct {
|
|
|
DistName string `orm:"dist_name" json:"distName" v:"required#经销商名称不能为空"` // 经销商名称
|
|
|
AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名
|
|
|
@@ -38,7 +38,7 @@ type AddDistributor struct {
|
|
|
InvoiceHeader string `json:"invoiceHeader"` // 开票抬头
|
|
|
}
|
|
|
|
|
|
-//列表返回字段
|
|
|
+// 列表返回字段
|
|
|
type DistributorRonp struct {
|
|
|
Id int `orm:"id,primary" json:"id"` // 主健
|
|
|
DistCode string `orm:"dist_code" json:"distCode"` // 经销商编码
|
|
|
@@ -58,13 +58,13 @@ type DistributorRonp struct {
|
|
|
InvoiceHeader string `orm:"invoice_header" json:"invoiceHeader"` // 开票抬头
|
|
|
}
|
|
|
|
|
|
-//编辑参数
|
|
|
+// 编辑参数
|
|
|
type UpdateDistributorReq struct {
|
|
|
*AddDistributor
|
|
|
Id int `p:"id" json:"id" v:"required# id不能为空"`
|
|
|
}
|
|
|
|
|
|
-//删除
|
|
|
+// 删除
|
|
|
type DeleteDistributorReq struct {
|
|
|
Ids []int64 `p:"id" json:"ids" v:"required# id不能为空"`
|
|
|
}
|