|
|
|
@ -63,3 +63,21 @@ func (c *category) Select(ctx context.Context) (reply []CategoryItem, err error)
|
|
|
|
|
err = xClient.Call(ctx, "Select", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsCategoryImport struct {
|
|
|
|
|
First string
|
|
|
|
|
Second string
|
|
|
|
|
Third string
|
|
|
|
|
SupplyCategoryId uint
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Import @Title 导入
|
|
|
|
|
func (*category) Import(ctx context.Context, args ArgsCategoryImport) (err error) {
|
|
|
|
|
reply := 0
|
|
|
|
|
xClient, err := client.GetClient(ctx)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(ctx, "Import", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|