|
@@ -68,6 +68,7 @@ type UserHTTPServer interface {
|
|
|
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)
|
|
|
GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
|
|
|
+ GetUserLookHandPickNum(context.Context, *emptypb.Empty) (*GetUserLookHandPickNumReply, error)
|
|
|
GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
|
GetUserRoomByPerson(context.Context, *common.PersonParam) (*chat.UserRoomInfo, error)
|
|
GetUserRoomByPerson(context.Context, *common.PersonParam) (*chat.UserRoomInfo, error)
|
|
|
GetVipInfo(context.Context, *emptypb.Empty) (*VipInfo, error)
|
|
GetVipInfo(context.Context, *emptypb.Empty) (*VipInfo, error)
|
|
@@ -100,6 +101,7 @@ type UserHTTPServer interface {
|
|
|
Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
|
|
Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
|
|
|
SendMessage(context.Context, *SendMessageRequest) (*common.SendMessageReply, error)
|
|
SendMessage(context.Context, *SendMessageRequest) (*common.SendMessageReply, error)
|
|
|
SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
|
|
SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
|
|
|
|
|
+ SetUserLookHandPickNum(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
|
|
UnlockLookRecord(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
UnlockLookRecord(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
UnlockPicture(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
UnlockPicture(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
|
UnlockVoice(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
UnlockVoice(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
@@ -192,6 +194,8 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
|
r.POST("/api/user/message/send", _User_SendMessage0_HTTP_Handler(srv))
|
|
r.POST("/api/user/message/send", _User_SendMessage0_HTTP_Handler(srv))
|
|
|
r.POST("/api/vip/info", _User_GetVipInfo0_HTTP_Handler(srv))
|
|
r.POST("/api/vip/info", _User_GetVipInfo0_HTTP_Handler(srv))
|
|
|
r.POST("/api/handpick/list", _User_FindHandpickUser0_HTTP_Handler(srv))
|
|
r.POST("/api/handpick/list", _User_FindHandpickUser0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/user/look/handpick/num", _User_GetUserLookHandPickNum0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/user/look/handpick/num/set", _User_SetUserLookHandPickNum0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/list", _User_ManagerFindUserList0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/list", _User_ManagerFindUserList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/list/information", _User_ManagerFindInformationUserList0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/list/information", _User_ManagerFindInformationUserList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/list/ischeckquality", _User_ManagerFindIsCheckQualityUserList0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/list/ischeckquality", _User_ManagerFindIsCheckQualityUserList0_HTTP_Handler(srv))
|
|
@@ -2077,6 +2081,60 @@ func _User_FindHandpickUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Cont
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _User_GetUserLookHandPickNum0_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/GetUserLookHandPickNum")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.GetUserLookHandPickNum(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_SetUserLookHandPickNum0_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/SetUserLookHandPickNum")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.SetUserLookHandPickNum(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_ManagerFindUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
func _User_ManagerFindUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
return func(ctx http.Context) error {
|
|
|
var in common.ManagerFindPersonListRequest
|
|
var in common.ManagerFindPersonListRequest
|
|
@@ -2656,6 +2714,7 @@ type UserHTTPClient interface {
|
|
|
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)
|
|
|
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)
|
|
|
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)
|
|
|
GetUserRoomByPerson(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *chat.UserRoomInfo, err error)
|
|
GetUserRoomByPerson(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *chat.UserRoomInfo, err error)
|
|
|
GetVipInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *VipInfo, err error)
|
|
GetVipInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *VipInfo, err error)
|
|
@@ -2688,6 +2747,7 @@ type UserHTTPClient interface {
|
|
|
Report(ctx context.Context, req *common.ReportChatRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
Report(ctx context.Context, req *common.ReportChatRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
SendMessage(ctx context.Context, req *SendMessageRequest, opts ...http.CallOption) (rsp *common.SendMessageReply, err error)
|
|
SendMessage(ctx context.Context, req *SendMessageRequest, opts ...http.CallOption) (rsp *common.SendMessageReply, err error)
|
|
|
SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
|
|
+ SetUserLookHandPickNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
UnlockLookRecord(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
UnlockLookRecord(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
UnlockPicture(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
UnlockPicture(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
UnlockVoice(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
UnlockVoice(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
@@ -3211,6 +3271,19 @@ func (c *UserHTTPClientImpl) GetUserIsLike(ctx context.Context, in *common.Perso
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *UserHTTPClientImpl) GetUserLookHandPickNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetUserLookHandPickNumReply, error) {
|
|
|
|
|
+ var out GetUserLookHandPickNumReply
|
|
|
|
|
+ pattern := "/api/user/look/handpick/num"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.user.User/GetUserLookHandPickNum"))
|
|
|
|
|
+ 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) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookMessageReply, error) {
|
|
func (c *UserHTTPClientImpl) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookMessageReply, error) {
|
|
|
var out statistics.LookMessageReply
|
|
var out statistics.LookMessageReply
|
|
|
pattern := "/api/user/look/num"
|
|
pattern := "/api/user/look/num"
|
|
@@ -3627,6 +3700,19 @@ func (c *UserHTTPClientImpl) SendPhoneCode(ctx context.Context, in *common.SendP
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *UserHTTPClientImpl) SetUserLookHandPickNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
|
|
+ var out emptypb.Empty
|
|
|
|
|
+ pattern := "/api/user/look/handpick/num/set"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.user.User/SetUserLookHandPickNum"))
|
|
|
|
|
+ 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) UnlockLookRecord(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
func (c *UserHTTPClientImpl) UnlockLookRecord(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/user/look/unlock"
|
|
pattern := "/api/user/look/unlock"
|