From 680b3a08b09cf5ac81aeaa13fa20c58aeea1c826 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 15 Mar 2023 13:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E8=B4=B9?= =?UTF-8?q?=E7=8E=87=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/service/audit.go | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/customer/service/audit.go b/customer/service/audit.go index db1bbdb..f460715 100644 --- a/customer/service/audit.go +++ b/customer/service/audit.go @@ -180,3 +180,48 @@ func (a *audit) GetProof(ctx context.Context, userServiceId uint) (reply ReplyPr err = xClient.Call(ctx, "GetProof", userServiceId, &reply) return } + +type ArgsRateChange struct { + UserServiceId uint // 客户服务id + ChangeUserId uint // 修改人id + NewRateId uint // 新费率id +} + +// Change @Title 修改费率 +func (a *audit) Change(ctx context.Context, args ArgsRateChange) (err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Change", args, &reply) + return +} + +type ArgsRateChangeHistory struct { + UserId int + Page bean.Page +} + +type ReplyRateChangeHistory struct { + Lists []RateChangeHistoryItem `json:"lists"` + Total int64 `json:"total"` +} + +type RateChangeHistoryItem struct { + Id uint `json:"id"` + UserId uint `json:"userId"` // 用户id + ChangeUserId uint `json:"changeUserId"` // 修改人 + OldRateId uint `json:"oldRateId"` // 老费率 + NewRateId uint `json:"newRateId"` // 新费率 +} + +// RateChangeHistory @Title 服务修改记录 +func (a *audit) RateChangeHistory(ctx context.Context, args ArgsRateChangeHistory) (reply ReplyRateChangeHistory, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "RateChangeHistory", args, &reply) + return +}