diff --git a/erp/expense/cost.go b/erp/expense/cost.go index 8b126f2..811cd12 100644 --- a/erp/expense/cost.go +++ b/erp/expense/cost.go @@ -57,14 +57,18 @@ type ArgsCostAdd struct { 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 {