|
|
|
@ -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
|
|
|
|
|
}
|
|
|
|
|