|
|
@ -119,3 +119,39 @@ func (s *supplierWalletApply) Apply(ctx context.Context, args ArgsSupplierWallet
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return xClient.Call(ctx, "Apply", args, &reply)
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|