|
|
@@ -62,6 +62,7 @@ type UserHTTPServer interface {
|
|
|
FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
|
|
|
FindVipRechargeList(context.Context, *emptypb.Empty) (*VipRechargeList, error)
|
|
|
FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
|
|
|
+ GetCreditConfig(context.Context, *emptypb.Empty) (*GetCreditConfigReply, error)
|
|
|
GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
|
|
|
GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
|
|
|
GetRandomMatching(context.Context, *GetRandomMatchingRequest) (*chat.GetRandomMatchingReply, error)
|
|
|
@@ -192,6 +193,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
|
r.POST("/api/user/update/phone", _User_UpdateUserPhone0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/chat/clean/unread", _User_CleanUserUnReadNum0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/certification", _User_Certification0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/user/credit/config", _User_GetCreditConfig0_HTTP_Handler(srv))
|
|
|
}
|
|
|
|
|
|
func _User_GetUserInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
@@ -2327,6 +2329,33 @@ func _User_Certification0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func _User_GetCreditConfig0_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/GetCreditConfig")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.GetCreditConfig(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)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
type UserHTTPClient interface {
|
|
|
Certification(ctx context.Context, req *common.CheckIdentifyRequest, opts ...http.CallOption) (rsp *common.CheckIdentifyReply, err error)
|
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
@@ -2360,6 +2389,7 @@ type UserHTTPClient interface {
|
|
|
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)
|
|
|
+ GetCreditConfig(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetCreditConfigReply, 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)
|
|
|
GetRandomMatching(ctx context.Context, req *GetRandomMatchingRequest, opts ...http.CallOption) (rsp *chat.GetRandomMatchingReply, err error)
|
|
|
@@ -2833,6 +2863,19 @@ func (c *UserHTTPClientImpl) FindWithinSevenDayRoomList(ctx context.Context, in
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *UserHTTPClientImpl) GetCreditConfig(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetCreditConfigReply, error) {
|
|
|
+ var out GetCreditConfigReply
|
|
|
+ pattern := "/api/user/credit/config"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.user.User/GetCreditConfig"))
|
|
|
+ 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) GetLookAndLikeStatisticsMessage(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookAndLikeMessageReply, error) {
|
|
|
var out statistics.LookAndLikeMessageReply
|
|
|
pattern := "/api/user/num/like_look"
|