Merge branch 'master' of git.oa00.com:supply-chain/service

finance
杨赟 2 years ago
commit 00e53df55d

@ -72,12 +72,30 @@ type ArgsCategoryImport struct {
} }
// Import @Title 导入 // 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 reply := 0
xClient, err := client.GetClient(ctx) xClient, err := client.GetClient(c)
if err != nil { if err != nil {
return return
} }
err = xClient.Call(ctx, "Import", args, &reply) err = xClient.Call(ctx, "Import", args, &reply)
return 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
}

Loading…
Cancel
Save