package old import ( "context" "time" "git.kumo.work/shama/service/client" "github.com/shopspring/decimal" ) type cost struct { } type CostItem struct { Id int64 `json:"id"` FactoryId int64 `json:"factoryId"` FactoryName string `json:"factoryName"` FactoryShortName string `json:"factoryShortName"` Name string `json:"name"` Amount decimal.Decimal `json:"amount"` Remarks string `json:"remarks"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` } // All @TITLE 获取费用 func (c *cost) All(ctx context.Context, accountingId int64) (reply []CostItem, err error) { xClient, err := client.GetClient(c) if err != nil { return } err = xClient.Call(ctx, "All", accountingId, &reply) return }