package accounting import ( "context" "time" "git.kumo.work/shama/service/client" "github.com/shopspring/decimal" ) type append struct { } type ReplyCostInfo struct { AccountingId int64 `json:"accountingId"` FactoryId int64 `json:"factoryId"` Name string `json:"name"` Amount decimal.Decimal `json:"amount"` Remarks string `json:"remarks"` WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` Products []CostInfoProductItem `json:"products"` } type CostInfoProductItem struct { AccountingProductId int64 `json:"accountingProductId"` BeforeAmount decimal.Decimal `json:"beforeAmount"` Amount decimal.Decimal `json:"amount"` AfterAmount decimal.Decimal `json:"afterAmount"` Serial string `json:"serial"` Name string `json:"name"` BlEngName string `json:"blEngName"` CustomsName string `json:"customsName"` } // CostInfo @TITLE 费用详情 func (a *append) CostInfo(ctx context.Context, workflowId int64) (reply ReplyCostInfo, err error) { xClient, err := client.GetClient(a) if err != nil { return } err = xClient.Call(ctx, "CostInfo", workflowId, &reply) return }