部署
This commit is contained in:
@@ -24,6 +24,7 @@ type ProductSearch struct {
|
||||
Serial string // 货号
|
||||
CreatedStaffIds []int64 // 录入人
|
||||
SaleIds []int64 // 销售合同id
|
||||
ParentIds []int64 // 父id
|
||||
}
|
||||
type ReplyProductList struct {
|
||||
Total int64 `json:"total"`
|
||||
@@ -89,6 +90,7 @@ func (p *product) List(ctx context.Context, args ArgsProductList) (reply ReplyPr
|
||||
type ProductItem struct {
|
||||
Id int64 `json:"id"`
|
||||
Mold int64 `json:"mold"`
|
||||
MoldCount int64 `json:"moldCount"`
|
||||
ParentId int64 `json:"parentId"`
|
||||
Serial string `json:"serial"`
|
||||
Po string `json:"po"`
|
||||
@@ -155,6 +157,7 @@ type ProductAdd struct {
|
||||
SalePrice decimal.Decimal // 销售单价
|
||||
BanFlag int64 // 禁用标记 1=禁用,2=可用
|
||||
Mold int64 // 组成类型 1=单件 2=套件
|
||||
MoldCount int64 // 子组件数量
|
||||
Type string // 产品类型
|
||||
Barcode string // 条形码
|
||||
SellCountry string // 销售国家
|
||||
@@ -240,6 +243,7 @@ type ReplyProductInfo struct {
|
||||
Id int64 `json:"id"`
|
||||
ProductId int64 `json:"productId"`
|
||||
Mold int64 `json:"mold"`
|
||||
MoldCount int64 `json:"moldCount"`
|
||||
Serial string `json:"serial"`
|
||||
CustomSerial string `json:"customSerial"`
|
||||
Name string `json:"name"`
|
||||
@@ -336,6 +340,7 @@ type ProductEdit struct {
|
||||
SalePrice decimal.Decimal // 销售单价
|
||||
BanFlag int64 // 禁用标记 1=禁用,2=可用
|
||||
Mold int64 // 组成类型 1=单件 2=套件
|
||||
MoldCount int64 // 子组件数量
|
||||
Type string // 产品类型
|
||||
Barcode string // 条形码
|
||||
SellCountry string // 销售国家
|
||||
@@ -380,6 +385,21 @@ func (p *product) MultiEdit(ctx context.Context, args []MultiData) (err error) {
|
||||
return xClient.Call(ctx, "MultiEdit", args, &reply)
|
||||
}
|
||||
|
||||
type ChangeCount struct {
|
||||
SaleProductId int64 // 产品id
|
||||
SaleCount int64 // 销售数量
|
||||
}
|
||||
|
||||
// ChangeCount @TITLE 修改数量
|
||||
func (p *product) ChangeCount(ctx context.Context, args []ChangeCount) (err error) {
|
||||
xClient, err := client.GetClient(p)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
return xClient.Call(ctx, "ChangeCount", args, &reply)
|
||||
}
|
||||
|
||||
// Delete @TITLE 删除产品
|
||||
func (p *product) Delete(ctx context.Context, saleProductIds []int64) (err error) {
|
||||
xClient, err := client.GetClient(p)
|
||||
|
||||
Reference in New Issue
Block a user