|
@@ -57,6 +57,7 @@ type UserHTTPServer interface {
|
|
|
FindRecommendPersonList(context.Context, *emptypb.Empty) (*common.RecommendPersonListReply, error)
|
|
FindRecommendPersonList(context.Context, *emptypb.Empty) (*common.RecommendPersonListReply, error)
|
|
|
FindRecommendScrip(context.Context, *UserFindScripRequest) (*common.ScripReply, error)
|
|
FindRecommendScrip(context.Context, *UserFindScripRequest) (*common.ScripReply, error)
|
|
|
FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
|
|
FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
|
|
|
|
|
+ FindVipRechargeList(context.Context, *emptypb.Empty) (*VipRechargeList, error)
|
|
|
FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
|
|
FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
|
|
|
GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
|
|
GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
|
|
|
GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
|
|
GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
|
|
@@ -108,6 +109,7 @@ type UserHTTPServer interface {
|
|
|
UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error)
|
|
UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error)
|
|
|
UserLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
UserLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
UserRecharge(context.Context, *UserRechargeRequest) (*PayInfo, error)
|
|
UserRecharge(context.Context, *UserRechargeRequest) (*PayInfo, error)
|
|
|
|
|
+ UserRechargeVip(context.Context, *UserRechargeRequest) (*PayInfo, error)
|
|
|
UserSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
UserSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
|
UserUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
UserUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, 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/information/award", _User_UserGetInformationAward0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/look/unlock", _User_UnlockLookRecord0_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", _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/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/pay/list", _User_FindPayList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/list/recommend", _User_FindRecommendPersonList0_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))
|
|
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 {
|
|
func _User_FindRechargeList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
return func(ctx http.Context) error {
|
|
|
var in emptypb.Empty
|
|
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 {
|
|
func _User_FindPayList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
return func(ctx http.Context) error {
|
|
|
var in FindPayOrderListRequest
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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
|
|
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) {
|
|
func (c *UserHTTPClientImpl) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*UserFindChatListReply, error) {
|
|
|
var out UserFindChatListReply
|
|
var out UserFindChatListReply
|
|
|
pattern := "/api/user/list/chat/within"
|
|
pattern := "/api/user/list/chat/within"
|
|
@@ -3491,6 +3564,19 @@ func (c *UserHTTPClientImpl) UserRecharge(ctx context.Context, in *UserRechargeR
|
|
|
return &out, err
|
|
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) {
|
|
func (c *UserHTTPClientImpl) UserSetBlackChat(ctx context.Context, in *common.RoomIDRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/user/set/black"
|
|
pattern := "/api/user/set/black"
|