From 0ad1eb39f06c942ae2df6124b16f008662472855 Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 27 Jun 2023 10:47:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=99=E9=A2=9D=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/supplierWalletApply.go | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/supplier/supplierWalletApply.go b/supplier/supplierWalletApply.go index 841d4d0..0d0b382 100644 --- a/supplier/supplierWalletApply.go +++ b/supplier/supplierWalletApply.go @@ -119,3 +119,39 @@ func (s *supplierWalletApply) Apply(ctx context.Context, args ArgsSupplierWallet reply := 0 return xClient.Call(ctx, "Apply", args, &reply) } + +type ArgsSupplierWalletHistory struct { + Search SupplierWalletHistorySearch + Page bean.Page +} + +type SupplierWalletHistorySearch struct { + SupplierName string // 供应商名称 + Type int // 类型 + Date string // 日期 +} + +type SupplierWalletHistoryItem struct { + Id uint `json:"id"` + SupplierName string `json:"supplierName"` + Type uint `json:"type"` + Amount decimal.Decimal `json:"amount"` + AfterAmount decimal.Decimal `json:"afterAmount"` + ApplyUserId uint `json:"applyUserId"` + CreatedAt int64 `json:"createdAt"` +} + +type ReplySupplierWalletHistoryLists struct { + Lists []SupplierWalletHistoryItem + Total int64 +} + +// History @Title 余额变更记录 +func (s *supplierWalletApply) History(ctx context.Context, args ArgsSupplierWalletHistory) (reply ReplySupplierWalletHistoryLists, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + err = xClient.Call(ctx, "History", args, &reply) + return +}