fix: mongo _id update

This commit is contained in:
wangxinyu 2024-12-05 13:21:37 +08:00
parent cf2da7be16
commit 6b06346550
2 changed files with 15 additions and 13 deletions

View File

@ -1084,6 +1084,7 @@ func (v *Vas) ZoneRefundV2(ctx *gin.Context, req *vasproto.ZoneRefundReq) error
err = v.store.AddZoneRefundAutomatic(ctx, refund)
if err != nil {
logger.Error("ZoneRefundV2 AddZoneRefundAutomatic fail, mid: %v, zid: %v, orderId: %v, err: %v", req.Mid, req.Zid, order.GetID(), err)
return err
}

View File

@ -1,6 +1,7 @@
package dbstruct
import (
"go.mongodb.org/mongo-driver/bson/primitive"
"math"
"service/bizcommon/util"
)
@ -199,7 +200,7 @@ const (
)
type RefundInfo struct {
AuditId string `json:"audit_id" bson:"_id"`
AuditId primitive.ObjectID `json:"audit_id" bson:"_id"`
Zid int64 `json:"zid" bson:"zid"`
Price int64 `json:"price" bson:"price"`
CoinPrice int64 `json:"coin_price" bson:"coin_price"`