diff --git a/supplier/goods.go b/supplier/goods.go index 1ad4ded..fdc44a7 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -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) } diff --git a/supplier/user/supplier.go b/supplier/user/supplier.go new file mode 100644 index 0000000..e010f7c --- /dev/null +++ b/supplier/user/supplier.go @@ -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() { + +} diff --git a/supplier/user/user.go b/supplier/user/user.go new file mode 100644 index 0000000..c2b7563 --- /dev/null +++ b/supplier/user/user.go @@ -0,0 +1,13 @@ +package user + +type User struct { + Supplier supplier +} + +type ArgsUserAdd struct { + Name string // 姓名 + Account string // 账户 + Password string // 密码 + Liaison string // 联系然 + Phone string // 手机号 +}