From e24b88cb3a69472f813b5a7abcc7c047f7f0bd73 Mon Sep 17 00:00:00 2001 From: wangxinyu Date: Thu, 5 Dec 2024 16:23:29 +0800 Subject: [PATCH] fix: int64 --- app/mix/service/logic/vas_zone.go | 2 +- dbstruct/vas_mongo.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/mix/service/logic/vas_zone.go b/app/mix/service/logic/vas_zone.go index 4eedefb6..f4a8ab95 100644 --- a/app/mix/service/logic/vas_zone.go +++ b/app/mix/service/logic/vas_zone.go @@ -1068,7 +1068,7 @@ func (v *Vas) ZoneRefundV2(ctx *gin.Context, req *vasproto.ZoneRefundReq) error Mid: req.Mid, ByTime: order.GetCt(), RefundT: time.Now().Unix(), - RefundsStatus: int64(refundsStatus), + RefundsStatus: refundsStatus, ContactName: req.ContactName, ContactPhone: req.ContactPhone, Note: req.Note, diff --git a/dbstruct/vas_mongo.go b/dbstruct/vas_mongo.go index 3e9219b1..4c221f04 100644 --- a/dbstruct/vas_mongo.go +++ b/dbstruct/vas_mongo.go @@ -190,12 +190,12 @@ type WithdrawHis struct { // 用户退款状态 const ( - Refunds_Awaiting = 1 // 待退款 - Refunds_Approved = 2 // 主播审核通过 - Refunds_Rejected = -1 // 主播审核拒绝 - Refunds_Automatic = 3 // 2小时内,自动通过 - Refunds_Overtime = 4 // 主播审核超时,自动通过 - Refunds_Prohibit = 5 // 超过 24 小时,禁止退款(人工审核退款) + Refunds_Awaiting int64 = 1 // 待退款 + Refunds_Approved int64 = 2 // 主播审核通过 + Refunds_Rejected int64 = -1 // 主播审核拒绝 + Refunds_Automatic int64 = 3 // 2小时内,自动通过 + Refunds_Overtime int64 = 4 // 主播审核超时,自动通过 + Refunds_Prohibit int64 = 5 // 超过 24 小时,禁止退款(人工审核退款) ) type RefundInfo struct {