|
@@ -67,6 +67,7 @@ type UserHTTPServer interface {
|
|
|
GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
|
|
GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
|
|
|
GetUserFreeNum(context.Context, *emptypb.Empty) (*UserFreeNum, error)
|
|
GetUserFreeNum(context.Context, *emptypb.Empty) (*UserFreeNum, error)
|
|
|
GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
|
|
|
+ GetUserInfo1(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
|
GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
|
GetUserLookHandPickNum(context.Context, *emptypb.Empty) (*GetUserLookHandPickNumReply, error)
|
|
GetUserLookHandPickNum(context.Context, *emptypb.Empty) (*GetUserLookHandPickNumReply, error)
|
|
|
GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
@@ -130,6 +131,7 @@ type UserHTTPServer interface {
|
|
|
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
|
r := s.Route("/")
|
|
r := s.Route("/")
|
|
|
r.POST("/api/user/info", _User_GetUserInfo0_HTTP_Handler(srv))
|
|
r.POST("/api/user/info", _User_GetUserInfo0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/user/info1", _User_GetUserInfo10_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/code/send", _User_SendPhoneCode0_HTTP_Handler(srv))
|
|
r.POST("/api/user/code/send", _User_SendPhoneCode0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/code/check", _User_CheckPhoneCode0_HTTP_Handler(srv))
|
|
r.POST("/api/user/code/check", _User_CheckPhoneCode0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/update/information", _User_UpdateUserInformation0_HTTP_Handler(srv))
|
|
r.POST("/api/user/update/information", _User_UpdateUserInformation0_HTTP_Handler(srv))
|
|
@@ -253,6 +255,33 @@ func _User_GetUserInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _User_GetUserInfo10_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/GetUserInfo1")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.GetUserInfo1(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_SendPhoneCode0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
func _User_SendPhoneCode0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
return func(ctx http.Context) error {
|
|
|
var in common.SendPhoneCodeRequest
|
|
var in common.SendPhoneCodeRequest
|
|
@@ -2829,6 +2858,7 @@ type UserHTTPClient interface {
|
|
|
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)
|
|
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)
|
|
|
|
|
+ GetUserInfo1(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)
|
|
|
GetUserLookHandPickNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetUserLookHandPickNumReply, err error)
|
|
GetUserLookHandPickNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetUserLookHandPickNumReply, 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)
|
|
@@ -3378,6 +3408,19 @@ func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty,
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *UserHTTPClientImpl) GetUserInfo1(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserInfo, error) {
|
|
|
|
|
+ var out UserInfo
|
|
|
|
|
+ pattern := "/api/user/info1"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.user.User/GetUserInfo1"))
|
|
|
|
|
+ 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) GetUserIsLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.IsLike, error) {
|
|
func (c *UserHTTPClientImpl) GetUserIsLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.IsLike, error) {
|
|
|
var out common.IsLike
|
|
var out common.IsLike
|
|
|
pattern := "/api/user/islike"
|
|
pattern := "/api/user/islike"
|