diff --git a/erp/receipt.go b/erp/receipt.go index 12d4dff..72eafff 100644 --- a/erp/receipt.go +++ b/erp/receipt.go @@ -39,6 +39,7 @@ type ReceiptSearch struct { type ReplyReceiptList struct { List []ReceiptItem `json:"list"` Total int64 `json:"total"` + Count ReceiptCount `json:"count"` } type ReceiptItem struct { Id int64 `json:"id"` @@ -68,6 +69,12 @@ type ReceiptItem struct { UpdatedAt *time.Time `json:"updatedAt"` } +type ReceiptCount struct { + EntryAmount decimal.Decimal `json:"entryAmount"` + ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"` + ClaimAmount decimal.Decimal `json:"claimAmount"` +} + // List @TITLE 列表 func (r *receipt) List(ctx context.Context, args ArgsReceiptList) (reply ReplyReceiptList, err error) { xClient, err := client.GetClient(r) diff --git a/erp/request.go b/erp/request.go index 6c74657..30a9f8c 100644 --- a/erp/request.go +++ b/erp/request.go @@ -41,6 +41,7 @@ type RequestSearch struct { type ReplyRequestList struct { List []RequestItem `json:"list"` Total int64 `json:"total"` + Count RequestCount `json:"count"` } type RequestItem struct { Id int64 `json:"id"` @@ -75,6 +76,11 @@ type RequestItem struct { CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` } +type RequestCount struct { + PrepaidAmount decimal.Decimal `json:"prepaidAmount"` + Amount decimal.Decimal `json:"amount"` + PaidAmount decimal.Decimal `json:"paidAmount"` +} // List @TITLE 列表 func (r *request) List(ctx context.Context, args ArgsRequestList) (reply ReplyRequestList, err error) {