|
@@ -59,6 +59,7 @@ type UserHTTPServer interface {
|
|
|
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)
|
|
|
GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
|
|
GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
|
|
|
|
|
+ GetUserFreeNum(context.Context, *emptypb.Empty) (*UserFreeNum, error)
|
|
|
GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
|
GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
|
GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
@@ -142,6 +143,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
|
r.POST("/api/user/scrip/look/back", _User_PersonClickLookBack0_HTTP_Handler(srv))
|
|
r.POST("/api/user/scrip/look/back", _User_PersonClickLookBack0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/scrip/reply", _User_PersonReplyScrip0_HTTP_Handler(srv))
|
|
r.POST("/api/user/scrip/reply", _User_PersonReplyScrip0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/chat/window/get", _User_GetWindowInfo0_HTTP_Handler(srv))
|
|
r.POST("/api/user/chat/window/get", _User_GetWindowInfo0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/user/free/num", _User_GetUserFreeNum0_HTTP_Handler(srv))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func _User_UpdateUserInformation0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
func _User_UpdateUserInformation0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
@@ -1602,6 +1604,33 @@ func _User_GetWindowInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _User_GetUserFreeNum0_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/GetUserFreeNum")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.GetUserFreeNum(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 {
|
|
type UserHTTPClient interface {
|
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
CheckUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
|
|
CheckUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
|
|
@@ -1632,6 +1661,7 @@ type UserHTTPClient interface {
|
|
|
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)
|
|
|
GetUserBalance(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserBalance, err error)
|
|
GetUserBalance(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserBalance, err error)
|
|
|
|
|
+ GetUserFreeNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserFreeNum, err error)
|
|
|
GetUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserInfo, err error)
|
|
GetUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserInfo, err error)
|
|
|
GetUserIsLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.IsLike, err error)
|
|
GetUserIsLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.IsLike, err error)
|
|
|
GetUserLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
|
|
GetUserLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
|
|
@@ -2044,6 +2074,19 @@ func (c *UserHTTPClientImpl) GetUserBalance(ctx context.Context, in *emptypb.Emp
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *UserHTTPClientImpl) GetUserFreeNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserFreeNum, error) {
|
|
|
|
|
+ var out UserFreeNum
|
|
|
|
|
+ pattern := "/api/user/free/num"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.user.User/GetUserFreeNum"))
|
|
|
|
|
+ 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) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserInfo, error) {
|
|
func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserInfo, error) {
|
|
|
var out UserInfo
|
|
var out UserInfo
|
|
|
pattern := "/api/user/info"
|
|
pattern := "/api/user/info"
|