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