修改重新处理商品

finance
黄伟 2 years ago
parent a3adcf7787
commit 75fefeb46b

@ -128,10 +128,9 @@ func (g *goods) GetImgs(ctx context.Context, goodsId uint) (reply []string, err
}
type AdoptItem struct {
Id uint `json:"id"`
GoodsNum string `json:"goodsNum"`
Name string `json:"name"`
Error string `json:"error"`
Id uint `json:"id"`
Name string `json:"name"`
Error string `json:"error"`
}
// Adopt @Title 批量入库
@ -156,11 +155,11 @@ func (g *goods) Discard(ctx context.Context, goodsIds []uint) (err error) {
}
// ReHandle @Title 重新处理商品
func (g *goods) ReHandle(ctx context.Context, skuId uint) error {
func (g *goods) ReHandle(ctx context.Context, goodsIds []uint) error {
reply := 0
xClient, err := client.GetClient(g)
if err != nil {
return err
}
return xClient.Call(ctx, "ReHandle", skuId, &reply)
return xClient.Call(ctx, "ReHandle", goodsIds, &reply)
}

@ -0,0 +1,18 @@
package user
type supplier struct {
}
type ArgsSupplierAdd struct {
Name string
Account string
Password string
PayType uint
Liaison string
Phone string
Annex string
}
func (s *supplier) Add() {
}

@ -0,0 +1,13 @@
package user
type User struct {
Supplier supplier
}
type ArgsUserAdd struct {
Name string // 姓名
Account string // 账户
Password string // 密码
Liaison string // 联系然
Phone string // 手机号
}
Loading…
Cancel
Save