wfz 3 éve
szülő
commit
dee0eb7ff4

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1027 - 853
api/user/user.pb.go


+ 28 - 0
api/user/user.proto

@@ -391,6 +391,13 @@ service User {
       body:"*"
     };
   };
+  // 用户充值
+  rpc UserRechargeVip (UserRechargeRequest) returns (PayInfo){
+    option (google.api.http) = {
+      post: "/api/user/recharge/vip",
+      body:"*"
+    };
+  };
   // 充值套餐列表
   rpc FindRechargeList (google.protobuf.Empty) returns (RechargeList){
     option (google.api.http) = {
@@ -398,6 +405,13 @@ service User {
       body:"*"
     };
   };
+  // 充值Vip套餐列表
+  rpc FindVipRechargeList (google.protobuf.Empty) returns (VipRechargeList){
+    option (google.api.http) = {
+      post: "/api/user/recharge/vip/list",
+      body:"*"
+    };
+  };
   // 用户充值记录列表
   rpc FindPayList (FindPayOrderListRequest) returns (PayOrderList){
     option (google.api.http) = {
@@ -776,6 +790,20 @@ message UserRechargeRequest{
 message RechargeList{
   repeated RechargeInfo list = 1;
 }
+message VipRechargeList{
+  repeated VipRechargeInfo list = 1;
+}
+
+message VipRechargeInfo{
+  int64 id = 1;
+  string label = 2;// 标题
+  int64 price = 3;// 价格
+  int64 originPrice = 4;// 原价
+  int64 averagePerDayPrice = 5;// 日常价格
+  int64 additionalCoin = 6;// 赠送的积分
+  string description = 7;// 描述
+}
+
 
 message RechargeInfo{
   int64 id = 1;

+ 76 - 0
api/user/user_grpc.pb.go

@@ -130,8 +130,12 @@ type UserClient interface {
 	UnlockLookRecord(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 用户充值
 	UserRecharge(ctx context.Context, in *UserRechargeRequest, opts ...grpc.CallOption) (*PayInfo, error)
+	// 用户充值
+	UserRechargeVip(ctx context.Context, in *UserRechargeRequest, opts ...grpc.CallOption) (*PayInfo, error)
 	// 充值套餐列表
 	FindRechargeList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RechargeList, error)
+	// 充值Vip套餐列表
+	FindVipRechargeList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VipRechargeList, error)
 	// 用户充值记录列表
 	FindPayList(ctx context.Context, in *FindPayOrderListRequest, opts ...grpc.CallOption) (*PayOrderList, error)
 	// 查询推荐人的列表
@@ -718,6 +722,15 @@ func (c *userClient) UserRecharge(ctx context.Context, in *UserRechargeRequest,
 	return out, nil
 }
 
+func (c *userClient) UserRechargeVip(ctx context.Context, in *UserRechargeRequest, opts ...grpc.CallOption) (*PayInfo, error) {
+	out := new(PayInfo)
+	err := c.cc.Invoke(ctx, "/api.user.User/UserRechargeVip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *userClient) FindRechargeList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RechargeList, error) {
 	out := new(RechargeList)
 	err := c.cc.Invoke(ctx, "/api.user.User/FindRechargeList", in, out, opts...)
@@ -727,6 +740,15 @@ func (c *userClient) FindRechargeList(ctx context.Context, in *emptypb.Empty, op
 	return out, nil
 }
 
+func (c *userClient) FindVipRechargeList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VipRechargeList, error) {
+	out := new(VipRechargeList)
+	err := c.cc.Invoke(ctx, "/api.user.User/FindVipRechargeList", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *userClient) FindPayList(ctx context.Context, in *FindPayOrderListRequest, opts ...grpc.CallOption) (*PayOrderList, error) {
 	out := new(PayOrderList)
 	err := c.cc.Invoke(ctx, "/api.user.User/FindPayList", in, out, opts...)
@@ -1271,8 +1293,12 @@ type UserServer interface {
 	UnlockLookRecord(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	// 用户充值
 	UserRecharge(context.Context, *UserRechargeRequest) (*PayInfo, error)
+	// 用户充值
+	UserRechargeVip(context.Context, *UserRechargeRequest) (*PayInfo, error)
 	// 充值套餐列表
 	FindRechargeList(context.Context, *emptypb.Empty) (*RechargeList, error)
+	// 充值Vip套餐列表
+	FindVipRechargeList(context.Context, *emptypb.Empty) (*VipRechargeList, error)
 	// 用户充值记录列表
 	FindPayList(context.Context, *FindPayOrderListRequest) (*PayOrderList, error)
 	// 查询推荐人的列表
@@ -1538,9 +1564,15 @@ func (UnimplementedUserServer) UnlockLookRecord(context.Context, *common.PersonP
 func (UnimplementedUserServer) UserRecharge(context.Context, *UserRechargeRequest) (*PayInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UserRecharge not implemented")
 }
+func (UnimplementedUserServer) UserRechargeVip(context.Context, *UserRechargeRequest) (*PayInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserRechargeVip not implemented")
+}
 func (UnimplementedUserServer) FindRechargeList(context.Context, *emptypb.Empty) (*RechargeList, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindRechargeList not implemented")
 }
+func (UnimplementedUserServer) FindVipRechargeList(context.Context, *emptypb.Empty) (*VipRechargeList, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindVipRechargeList not implemented")
+}
 func (UnimplementedUserServer) FindPayList(context.Context, *FindPayOrderListRequest) (*PayOrderList, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindPayList not implemented")
 }
@@ -2652,6 +2684,24 @@ func _User_UserRecharge_Handler(srv interface{}, ctx context.Context, dec func(i
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_UserRechargeVip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserRechargeRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).UserRechargeVip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/UserRechargeVip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).UserRechargeVip(ctx, req.(*UserRechargeRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _User_FindRechargeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(emptypb.Empty)
 	if err := dec(in); err != nil {
@@ -2670,6 +2720,24 @@ func _User_FindRechargeList_Handler(srv interface{}, ctx context.Context, dec fu
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_FindVipRechargeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(emptypb.Empty)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).FindVipRechargeList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/FindVipRechargeList",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).FindVipRechargeList(ctx, req.(*emptypb.Empty))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _User_FindPayList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(FindPayOrderListRequest)
 	if err := dec(in); err != nil {
@@ -3753,10 +3821,18 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "UserRecharge",
 			Handler:    _User_UserRecharge_Handler,
 		},
+		{
+			MethodName: "UserRechargeVip",
+			Handler:    _User_UserRechargeVip_Handler,
+		},
 		{
 			MethodName: "FindRechargeList",
 			Handler:    _User_FindRechargeList_Handler,
 		},
+		{
+			MethodName: "FindVipRechargeList",
+			Handler:    _User_FindVipRechargeList_Handler,
+		},
 		{
 			MethodName: "FindPayList",
 			Handler:    _User_FindPayList_Handler,

+ 86 - 0
api/user/user_http.pb.go

@@ -57,6 +57,7 @@ type UserHTTPServer interface {
 	FindRecommendPersonList(context.Context, *emptypb.Empty) (*common.RecommendPersonListReply, error)
 	FindRecommendScrip(context.Context, *UserFindScripRequest) (*common.ScripReply, error)
 	FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
+	FindVipRechargeList(context.Context, *emptypb.Empty) (*VipRechargeList, error)
 	FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
 	GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
 	GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
@@ -108,6 +109,7 @@ type UserHTTPServer interface {
 	UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error)
 	UserLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	UserRecharge(context.Context, *UserRechargeRequest) (*PayInfo, error)
+	UserRechargeVip(context.Context, *UserRechargeRequest) (*PayInfo, error)
 	UserSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
 	UserUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
@@ -168,7 +170,9 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/information/award", _User_UserGetInformationAward0_HTTP_Handler(srv))
 	r.POST("/api/user/look/unlock", _User_UnlockLookRecord0_HTTP_Handler(srv))
 	r.POST("/api/user/recharge", _User_UserRecharge0_HTTP_Handler(srv))
+	r.POST("/api/user/recharge/vip", _User_UserRechargeVip0_HTTP_Handler(srv))
 	r.POST("/api/user/recharge/list", _User_FindRechargeList0_HTTP_Handler(srv))
+	r.POST("/api/user/recharge/vip/list", _User_FindVipRechargeList0_HTTP_Handler(srv))
 	r.POST("/api/user/pay/list", _User_FindPayList0_HTTP_Handler(srv))
 	r.POST("/api/user/list/recommend", _User_FindRecommendPersonList0_HTTP_Handler(srv))
 	r.POST("/api/user/matching/message", _User_FindMatchingAvatarAndNum0_HTTP_Handler(srv))
@@ -1629,6 +1633,33 @@ func _User_UserRecharge0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context)
 	}
 }
 
+func _User_UserRechargeVip0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in UserRechargeRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/UserRechargeVip")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.UserRechargeVip(ctx, req.(*UserRechargeRequest))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 func _User_FindRechargeList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
 		var in emptypb.Empty
@@ -1656,6 +1687,33 @@ func _User_FindRechargeList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Cont
 	}
 }
 
+func _User_FindVipRechargeList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in emptypb.Empty
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/FindVipRechargeList")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.FindVipRechargeList(ctx, req.(*emptypb.Empty))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 func _User_FindPayList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
 		var in FindPayOrderListRequest
@@ -2413,6 +2471,7 @@ type UserHTTPClient interface {
 	FindRecommendPersonList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.RecommendPersonListReply, err error)
 	FindRecommendScrip(ctx context.Context, req *UserFindScripRequest, opts ...http.CallOption) (rsp *common.ScripReply, err error)
 	FindTagListBySex(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.TagListReply, err error)
+	FindVipRechargeList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *VipRechargeList, err error)
 	FindWithinSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *UserFindChatListReply, err error)
 	GetLookAndLikeStatisticsMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookAndLikeMessageReply, err error)
 	GetPartnerCircleInfo(ctx context.Context, req *KeyRequest, opts ...http.CallOption) (rsp *common.AddFriendMessageInfo, err error)
@@ -2464,6 +2523,7 @@ type UserHTTPClient interface {
 	UserInformationStatus(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *InformationStatus, err error)
 	UserLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UserRecharge(ctx context.Context, req *UserRechargeRequest, opts ...http.CallOption) (rsp *PayInfo, err error)
+	UserRechargeVip(ctx context.Context, req *UserRechargeRequest, opts ...http.CallOption) (rsp *PayInfo, err error)
 	UserSetBlackChat(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UserUnLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	WxConf(ctx context.Context, req *common.WxConfReq, opts ...http.CallOption) (rsp *common.WxConfResponse, err error)
@@ -2828,6 +2888,19 @@ func (c *UserHTTPClientImpl) FindTagListBySex(ctx context.Context, in *common.Se
 	return &out, err
 }
 
+func (c *UserHTTPClientImpl) FindVipRechargeList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*VipRechargeList, error) {
+	var out VipRechargeList
+	pattern := "/api/user/recharge/vip/list"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/FindVipRechargeList"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *UserHTTPClientImpl) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*UserFindChatListReply, error) {
 	var out UserFindChatListReply
 	pattern := "/api/user/list/chat/within"
@@ -3491,6 +3564,19 @@ func (c *UserHTTPClientImpl) UserRecharge(ctx context.Context, in *UserRechargeR
 	return &out, err
 }
 
+func (c *UserHTTPClientImpl) UserRechargeVip(ctx context.Context, in *UserRechargeRequest, opts ...http.CallOption) (*PayInfo, error) {
+	var out PayInfo
+	pattern := "/api/user/recharge/vip"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/UserRechargeVip"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *UserHTTPClientImpl) UserSetBlackChat(ctx context.Context, in *common.RoomIDRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/user/set/black"

+ 2 - 0
define/lock.go

@@ -9,4 +9,6 @@ var (
 	LockCreateIdentify      = "create_identify"      // 身份创建锁
 	LockStatisticsSubscribe = "statistics_subscribe" // 统计订阅消息锁
 	LockUserTask            = "task"                 // 任务完成锁
+	LockRechargeVip         = "vip_recharge"         // vip充值锁
+	LockVipGrowthValue      = "vip_growth_value"     // vip成长值锁
 )

+ 1 - 0
define/user.go

@@ -12,6 +12,7 @@ var (
 
 var (
 	PayTypeRecharge = "recharge"
+	PayTypeVIP      = "vip"
 )
 
 var (

+ 11 - 1
js/api/user/user_http_pb.ts

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {UserInfo,UserBalance,UserFindChatListReply,CreateScripRequest,DeleteScripRequest,UserFindScripRequest,PersonLookScripRequest,ReplyScripRequest,KeyRequest,InformationStatus,UserRechargeRequest,PayInfo,RechargeList,FindPayOrderListRequest,PayOrderList,FindMatchingAvatarAndNumReply,UserFreeNum,SendMessageRequest,ManagerFindIsCheckQualityUserListRequest,ManagerMarkHighQualityUserRequest,ManagerUpdateUserCreditRequest,FindRecommendHighQualityUserRequest,FindRecommendHighQualityUserReply,GetUserDBMsgFromWebsocketReply,SendMsgReduceCreditRequest,SendNewMessageUnreadReminderRequest,UpdateUserMatchedNumRequest,UpdateUserMatchedNumAndReturnUserMsgReply,GetRecommendUserDBRequest,ReportUserBlackRequest,AddUserCreditRequest,UserGetInformationAwardByActivityRequest,UserGetInformationAwardByActivityReply} from "./user_pb";
+import {UserInfo,UserBalance,UserFindChatListReply,CreateScripRequest,DeleteScripRequest,UserFindScripRequest,PersonLookScripRequest,ReplyScripRequest,KeyRequest,InformationStatus,UserRechargeRequest,PayInfo,RechargeList,VipRechargeList,FindPayOrderListRequest,PayOrderList,FindMatchingAvatarAndNumReply,UserFreeNum,SendMessageRequest,ManagerFindIsCheckQualityUserListRequest,ManagerMarkHighQualityUserRequest,ManagerUpdateUserCreditRequest,FindRecommendHighQualityUserRequest,FindRecommendHighQualityUserReply,GetUserDBMsgFromWebsocketReply,SendMsgReduceCreditRequest,SendNewMessageUnreadReminderRequest,UpdateUserMatchedNumRequest,UpdateUserMatchedNumAndReturnUserMsgReply,GetRecommendUserDBRequest,ReportUserBlackRequest,AddUserCreditRequest,UserGetInformationAwardByActivityRequest,UserGetInformationAwardByActivityReply} from "./user_pb";
 import {SendPhoneCodeRequest,CheckPhoneCodeRequest,UpdateInformationRequest,CreateChatRoomParam,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,ChatCardInfo,ReportChatRequest,FindOverSevenDayAvatarReply,UpdateLastScripIDRequest,ScripID,ScripReply,FindScripRequest,ScripInfo,ChatRecordInfo,RoomIDRequest,PartnerIDParam,AddFriendMessageInfo,SendMessageReply,ManagerFindPersonListRequest,ManagerFindPersonListReply,ManagerFindPersonListReply2,PersonIDParam,PersonIDList,ManagerUpdatePersonVoiceRequest,ManagerUpdatePersonPicturesRequest,ManagerUpdatePersonSignatureRequest,ManagerUpdatePersonAvatarRequest,ManagerUpdatePersonNameRequest,ManagerUpdatePersonWeightRequest,ManagerUpdatePersonIsBlackRequest,PersonMsg,PersonDBReply,UpdateLastScripIDDBRequest,FindRecommendRequest,IDParam,PersonDB} from "../common/common_pb";
 import {RoomReply,UnreadNumReply,UserRoomInfo,CheckUserPartnerIsRelationshipReply,WindowInfo,GetRandomMatchingReply} from "../chat/chat_pb";
 import {LookAndLikeListReply,LookAndLikeMessageReply,LookMessageReply} from "../statistics/statistics_pb";
@@ -273,11 +273,21 @@ const UserService = {
 	const res = await request.post<{ data: PayInfo, code: string, message: string }>('/api/user/recharge', req);
     return res.data.data;
   },
+  /**  用户充值 */
+  UserRechargeVip: async (req?: UserRechargeRequest) => {
+	const res = await request.post<{ data: PayInfo, code: string, message: string }>('/api/user/recharge/vip', req);
+    return res.data.data;
+  },
   /**  充值套餐列表 */
   FindRechargeList: async (req?: undefined) => {
 	const res = await request.post<{ data: RechargeList, code: string, message: string }>('/api/user/recharge/list', req);
     return res.data.data;
   },
+  /**  充值Vip套餐列表 */
+  FindVipRechargeList: async (req?: undefined) => {
+	const res = await request.post<{ data: VipRechargeList, code: string, message: string }>('/api/user/recharge/vip/list', req);
+    return res.data.data;
+  },
   /**  用户充值记录列表 */
   FindPayList: async (req?: FindPayOrderListRequest) => {
 	const res = await request.post<{ data: PayOrderList, code: string, message: string }>('/api/user/pay/list', req);

+ 18 - 0
js/api/user/user_pb.ts

@@ -153,6 +153,24 @@ export interface UserRechargeRequest{
 export interface RechargeList{
     list?:Array<RechargeInfo>;
 }
+export interface VipRechargeList{
+    list?:Array<VipRechargeInfo>;
+}
+export interface VipRechargeInfo{
+    id?:number;
+    /**  标题 */
+    label?:string;
+    /**  价格 */
+    price?:number;
+    /**  原价 */
+    originPrice?:number;
+    /**  日常价格 */
+    averagePerDayPrice?:number;
+    /**  赠送的积分 */
+    additionalCoin?:number;
+    /**  描述 */
+    description?:string;
+}
 export interface RechargeInfo{
     id?:number;
     price?:number;

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott