|
|
|
@ -72,12 +72,30 @@ type ArgsCategoryImport struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Import @Title 导入
|
|
|
|
|
func (*category) Import(ctx context.Context, args []ArgsCategoryImport) (err error) {
|
|
|
|
|
func (c *category) Import(ctx context.Context, args []ArgsCategoryImport) (err error) {
|
|
|
|
|
reply := 0
|
|
|
|
|
xClient, err := client.GetClient(ctx)
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|