diff --git a/erp/request/cost.go b/erp/request/cost.go index 7556c32..277b766 100644 --- a/erp/request/cost.go +++ b/erp/request/cost.go @@ -54,15 +54,18 @@ type ArgsCostAdd struct { Remarks string // 备注 InvoiceSerial string // 发票号 } +type ReplyCostAdd struct { + CostId int64 `json:"costId"` +} // Add @TITLE 添加 -func (c *cost) Add(ctx context.Context, args ArgsCostAdd) (err error) { +func (c *cost) Add(ctx context.Context, args ArgsCostAdd) (reply ReplyCostAdd, err error) { xClient, err := client.GetClient(c) if err != nil { return } - reply := 0 - return xClient.Call(ctx, "Add", args, &reply) + err = xClient.Call(ctx, "Add", args, &reply) + return } type ArgsCostEdit struct {