diff --git a/api/proto/zone/proto/zone_op.go b/api/proto/zone/proto/zone_op.go index d4cd06b1..baafd0a1 100644 --- a/api/proto/zone/proto/zone_op.go +++ b/api/proto/zone/proto/zone_op.go @@ -120,6 +120,9 @@ type OpZoneRefundVO struct { UserUserId int64 `json:"user_user_id"` // 购买用户 user_id Uid int64 `json:"uid"` // 主播 mid StreamerUserId int64 `json:"streamer_user_id"` // 主播 user_id + ContactName string `json:"contact_name"` // 联系人 + ContactPhone string `json:"contact_phone"` // 联系方式 + Note string `json:"note"` // 备注 } type OpZoneRefundListData struct { diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index f6c896a2..4bc11b81 100644 --- a/app/mix/service/vasservice.go +++ b/app/mix/service/vasservice.go @@ -1009,6 +1009,9 @@ func (s *Service) OpZoneRefundList(ctx *gin.Context, req *zoneproto.OpZoneRefund UserUserId: userUserId, Uid: o.GetUid(), StreamerUserId: streamerUserId, + ContactName: h.GetContactName(), + ContactPhone: h.GetContactPhone(), + Note: h.GetNote(), } list = append(list, item) } diff --git a/dbstruct/vas.sql b/dbstruct/vas.sql index 94475a07..a7f5d9d1 100644 --- a/dbstruct/vas.sql +++ b/dbstruct/vas.sql @@ -259,3 +259,7 @@ CREATE TABLE `vas_zone_refund_his` `product_id` varchar(128) DEFAULT NULL COMMENT '商品id', PRIMARY KEY (`id`) ); +CREATE INDEX ix_mid_ct ON vas_zone_refund_his (mid,ct); +CREATE INDEX ix_zid_ct ON vas_zone_refund_his (zid,ct); +CREATE INDEX ix_orderid_ct ON vas_zone_refund_his (order_id,ct); +CREATE INDEX ix_ct ON vas_zone_refund_his (ct);