|
|
@@ -75,26 +75,6 @@ type UserHTTPServer interface {
|
|
|
GetVipInfo(context.Context, *emptypb.Empty) (*VipInfo, error)
|
|
|
GetWindowInfo(context.Context, *emptypb.Empty) (*chat.WindowInfo, error)
|
|
|
IsCanGetReturnReword(context.Context, *emptypb.Empty) (*IsCanGetReturnRewordReply, error)
|
|
|
- ManagerDeleteHighQualityUser(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
- ManagerFindCanHandpickUserList(context.Context, *common.ManagerFindCanHandpickUserListRequest) (*common.ManagerFindCanHandpickUserListReply, error)
|
|
|
- ManagerFindHighQualityUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
- ManagerFindInformationUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
- ManagerFindIsCheckQualityUserList(context.Context, *ManagerFindIsCheckQualityUserListRequest) (*common.ManagerFindPersonListReply2, error)
|
|
|
- ManagerFindUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
- ManagerMarkHighQualityUser(context.Context, *ManagerMarkHighQualityUserRequest) (*emptypb.Empty, error)
|
|
|
- ManagerMarkHighQualityUserOne(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
- ManagerReMarkHighQualityUser(context.Context, *ManagerReMarkHighQualityUserRequest) (*emptypb.Empty, error)
|
|
|
- ManagerSetHandpickUser(context.Context, *common.ManagerSetHandpickUserRequest) (*emptypb.Empty, error)
|
|
|
- ManagerSetHandpickUserOne(context.Context, *common.ManagerSetHandpickUserOneRequest) (*emptypb.Empty, error)
|
|
|
- ManagerSetUserBlack(context.Context, *common.PersonIDList) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserAvatar(context.Context, *common.ManagerUpdatePersonAvatarRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserCredit(context.Context, *ManagerUpdateUserCreditRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserIsBlack(context.Context, *common.ManagerUpdatePersonIsBlackRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserName(context.Context, *common.ManagerUpdatePersonNameRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserPictures(context.Context, *common.ManagerUpdatePersonPicturesRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserSignature(context.Context, *common.ManagerUpdatePersonSignatureRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserVoice(context.Context, *common.ManagerUpdatePersonVoiceRequest) (*emptypb.Empty, error)
|
|
|
- ManagerUpdateUserWeight(context.Context, *common.ManagerUpdatePersonWeightRequest) (*emptypb.Empty, error)
|
|
|
PersonClickLookBack(context.Context, *emptypb.Empty) (*common.ScripInfo, error)
|
|
|
PersonLookScrip(context.Context, *PersonLookScripRequest) (*emptypb.Empty, error)
|
|
|
PersonReplyScrip(context.Context, *ReplyScripRequest) (*common.ChatRecordInfo, error)
|
|
|
@@ -206,26 +186,6 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
|
r.POST("/api/user/return/reword/get", _User_UserGetReturnReword0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/privacy/status", _User_UserPrivacyStatus0_HTTP_Handler(srv))
|
|
|
r.POST("/api/user/privacy/set", _User_UserSetPrivacyStatus0_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/ischeckquality", _User_ManagerFindIsCheckQualityUserList0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/quality/user/list", _User_ManagerFindHighQualityUserList0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/handpick/user/list", _User_ManagerFindCanHandpickUserList0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/handpick/user/set", _User_ManagerSetHandpickUser0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/handpick/user/set/one", _User_ManagerSetHandpickUserOne0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/quality/user/set", _User_ManagerMarkHighQualityUser0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/quality/user/remark", _User_ManagerReMarkHighQualityUser0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/quality/user/set/one", _User_ManagerMarkHighQualityUserOne0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/black/user/more", _User_ManagerSetUserBlack0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/quality/user/delete", _User_ManagerDeleteHighQualityUser0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/Voice/update", _User_ManagerUpdateUserVoice0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/pictures/update", _User_ManagerUpdateUserPictures0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/signature/update", _User_ManagerUpdateUserSignature0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/avatar/update", _User_ManagerUpdateUserAvatar0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/name/update", _User_ManagerUpdateUserName0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/weight/update", _User_ManagerUpdateUserWeight0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/black/update", _User_ManagerUpdateUserIsBlack0_HTTP_Handler(srv))
|
|
|
- r.POST("/api/manager/user/credit/add", _User_ManagerUpdateUserCredit0_HTTP_Handler(srv))
|
|
|
}
|
|
|
|
|
|
func _User_GetUserInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
@@ -2280,546 +2240,6 @@ func _User_UserSetPrivacyStatus0_HTTP_Handler(srv UserHTTPServer) func(ctx http.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func _User_ManagerFindUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerFindPersonListRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerFindUserList")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerFindUserList(ctx, req.(*common.ManagerFindPersonListRequest))
|
|
|
- })
|
|
|
- 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_ManagerFindInformationUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerFindPersonListRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerFindInformationUserList")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerFindInformationUserList(ctx, req.(*common.ManagerFindPersonListRequest))
|
|
|
- })
|
|
|
- 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_ManagerFindIsCheckQualityUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in ManagerFindIsCheckQualityUserListRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerFindIsCheckQualityUserList")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerFindIsCheckQualityUserList(ctx, req.(*ManagerFindIsCheckQualityUserListRequest))
|
|
|
- })
|
|
|
- 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_ManagerFindHighQualityUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerFindPersonListRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerFindHighQualityUserList")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerFindHighQualityUserList(ctx, req.(*common.ManagerFindPersonListRequest))
|
|
|
- })
|
|
|
- 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_ManagerFindCanHandpickUserList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerFindCanHandpickUserListRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerFindCanHandpickUserList")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerFindCanHandpickUserList(ctx, req.(*common.ManagerFindCanHandpickUserListRequest))
|
|
|
- })
|
|
|
- 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_ManagerSetHandpickUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerSetHandpickUserRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerSetHandpickUser")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerSetHandpickUser(ctx, req.(*common.ManagerSetHandpickUserRequest))
|
|
|
- })
|
|
|
- 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_ManagerSetHandpickUserOne0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerSetHandpickUserOneRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerSetHandpickUserOne")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerSetHandpickUserOne(ctx, req.(*common.ManagerSetHandpickUserOneRequest))
|
|
|
- })
|
|
|
- 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_ManagerMarkHighQualityUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in ManagerMarkHighQualityUserRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerMarkHighQualityUser")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerMarkHighQualityUser(ctx, req.(*ManagerMarkHighQualityUserRequest))
|
|
|
- })
|
|
|
- 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_ManagerReMarkHighQualityUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in ManagerReMarkHighQualityUserRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerReMarkHighQualityUser")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerReMarkHighQualityUser(ctx, req.(*ManagerReMarkHighQualityUserRequest))
|
|
|
- })
|
|
|
- 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_ManagerMarkHighQualityUserOne0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.PersonIDParam
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerMarkHighQualityUserOne")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerMarkHighQualityUserOne(ctx, req.(*common.PersonIDParam))
|
|
|
- })
|
|
|
- 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_ManagerSetUserBlack0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.PersonIDList
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerSetUserBlack")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerSetUserBlack(ctx, req.(*common.PersonIDList))
|
|
|
- })
|
|
|
- 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_ManagerDeleteHighQualityUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.PersonIDParam
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerDeleteHighQualityUser")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerDeleteHighQualityUser(ctx, req.(*common.PersonIDParam))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserVoice0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonVoiceRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserVoice")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserVoice(ctx, req.(*common.ManagerUpdatePersonVoiceRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserPictures0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonPicturesRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserPictures")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserPictures(ctx, req.(*common.ManagerUpdatePersonPicturesRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserSignature0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonSignatureRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserSignature")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserSignature(ctx, req.(*common.ManagerUpdatePersonSignatureRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserAvatar0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonAvatarRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserAvatar")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserAvatar(ctx, req.(*common.ManagerUpdatePersonAvatarRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserName0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonNameRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserName")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserName(ctx, req.(*common.ManagerUpdatePersonNameRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserWeight0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonWeightRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserWeight")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserWeight(ctx, req.(*common.ManagerUpdatePersonWeightRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserIsBlack0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in common.ManagerUpdatePersonIsBlackRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserIsBlack")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserIsBlack(ctx, req.(*common.ManagerUpdatePersonIsBlackRequest))
|
|
|
- })
|
|
|
- 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_ManagerUpdateUserCredit0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
- return func(ctx http.Context) error {
|
|
|
- var in ManagerUpdateUserCreditRequest
|
|
|
- if err := ctx.Bind(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- if err := ctx.BindQuery(&in); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- http.SetOperation(ctx, "/api.user.User/ManagerUpdateUserCredit")
|
|
|
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerUpdateUserCredit(ctx, req.(*ManagerUpdateUserCreditRequest))
|
|
|
- })
|
|
|
- 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 {
|
|
|
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)
|
|
|
@@ -2866,26 +2286,6 @@ type UserHTTPClient interface {
|
|
|
GetVipInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *VipInfo, err error)
|
|
|
GetWindowInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *chat.WindowInfo, err error)
|
|
|
IsCanGetReturnReword(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *IsCanGetReturnRewordReply, err error)
|
|
|
- ManagerDeleteHighQualityUser(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerFindCanHandpickUserList(ctx context.Context, req *common.ManagerFindCanHandpickUserListRequest, opts ...http.CallOption) (rsp *common.ManagerFindCanHandpickUserListReply, err error)
|
|
|
- ManagerFindHighQualityUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, err error)
|
|
|
- ManagerFindInformationUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, err error)
|
|
|
- ManagerFindIsCheckQualityUserList(ctx context.Context, req *ManagerFindIsCheckQualityUserListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply2, err error)
|
|
|
- ManagerFindUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, err error)
|
|
|
- ManagerMarkHighQualityUser(ctx context.Context, req *ManagerMarkHighQualityUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerMarkHighQualityUserOne(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerReMarkHighQualityUser(ctx context.Context, req *ManagerReMarkHighQualityUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerSetHandpickUser(ctx context.Context, req *common.ManagerSetHandpickUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerSetHandpickUserOne(ctx context.Context, req *common.ManagerSetHandpickUserOneRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerSetUserBlack(ctx context.Context, req *common.PersonIDList, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserAvatar(ctx context.Context, req *common.ManagerUpdatePersonAvatarRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserCredit(ctx context.Context, req *ManagerUpdateUserCreditRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserIsBlack(ctx context.Context, req *common.ManagerUpdatePersonIsBlackRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserName(ctx context.Context, req *common.ManagerUpdatePersonNameRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserPictures(ctx context.Context, req *common.ManagerUpdatePersonPicturesRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserSignature(ctx context.Context, req *common.ManagerUpdatePersonSignatureRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserVoice(ctx context.Context, req *common.ManagerUpdatePersonVoiceRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
- ManagerUpdateUserWeight(ctx context.Context, req *common.ManagerUpdatePersonWeightRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PersonClickLookBack(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.ScripInfo, err error)
|
|
|
PersonLookScrip(ctx context.Context, req *PersonLookScripRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PersonReplyScrip(ctx context.Context, req *ReplyScripRequest, opts ...http.CallOption) (rsp *common.ChatRecordInfo, err error)
|
|
|
@@ -3512,266 +2912,6 @@ func (c *UserHTTPClientImpl) IsCanGetReturnReword(ctx context.Context, in *empty
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
-func (c *UserHTTPClientImpl) ManagerDeleteHighQualityUser(ctx context.Context, in *common.PersonIDParam, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/quality/user/delete"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerDeleteHighQualityUser"))
|
|
|
- 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) ManagerFindCanHandpickUserList(ctx context.Context, in *common.ManagerFindCanHandpickUserListRequest, opts ...http.CallOption) (*common.ManagerFindCanHandpickUserListReply, error) {
|
|
|
- var out common.ManagerFindCanHandpickUserListReply
|
|
|
- pattern := "/api/manager/handpick/user/list"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerFindCanHandpickUserList"))
|
|
|
- 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) ManagerFindHighQualityUserList(ctx context.Context, in *common.ManagerFindPersonListRequest, opts ...http.CallOption) (*common.ManagerFindPersonListReply, error) {
|
|
|
- var out common.ManagerFindPersonListReply
|
|
|
- pattern := "/api/manager/quality/user/list"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerFindHighQualityUserList"))
|
|
|
- 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) ManagerFindInformationUserList(ctx context.Context, in *common.ManagerFindPersonListRequest, opts ...http.CallOption) (*common.ManagerFindPersonListReply, error) {
|
|
|
- var out common.ManagerFindPersonListReply
|
|
|
- pattern := "/api/manager/user/list/information"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerFindInformationUserList"))
|
|
|
- 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) ManagerFindIsCheckQualityUserList(ctx context.Context, in *ManagerFindIsCheckQualityUserListRequest, opts ...http.CallOption) (*common.ManagerFindPersonListReply2, error) {
|
|
|
- var out common.ManagerFindPersonListReply2
|
|
|
- pattern := "/api/manager/user/list/ischeckquality"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerFindIsCheckQualityUserList"))
|
|
|
- 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) ManagerFindUserList(ctx context.Context, in *common.ManagerFindPersonListRequest, opts ...http.CallOption) (*common.ManagerFindPersonListReply, error) {
|
|
|
- var out common.ManagerFindPersonListReply
|
|
|
- pattern := "/api/manager/user/list"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerFindUserList"))
|
|
|
- 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) ManagerMarkHighQualityUser(ctx context.Context, in *ManagerMarkHighQualityUserRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/quality/user/set"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerMarkHighQualityUser"))
|
|
|
- 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) ManagerMarkHighQualityUserOne(ctx context.Context, in *common.PersonIDParam, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/quality/user/set/one"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerMarkHighQualityUserOne"))
|
|
|
- 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) ManagerReMarkHighQualityUser(ctx context.Context, in *ManagerReMarkHighQualityUserRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/quality/user/remark"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerReMarkHighQualityUser"))
|
|
|
- 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) ManagerSetHandpickUser(ctx context.Context, in *common.ManagerSetHandpickUserRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/handpick/user/set"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerSetHandpickUser"))
|
|
|
- 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) ManagerSetHandpickUserOne(ctx context.Context, in *common.ManagerSetHandpickUserOneRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/handpick/user/set/one"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerSetHandpickUserOne"))
|
|
|
- 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) ManagerSetUserBlack(ctx context.Context, in *common.PersonIDList, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/black/user/more"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerSetUserBlack"))
|
|
|
- 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) ManagerUpdateUserAvatar(ctx context.Context, in *common.ManagerUpdatePersonAvatarRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/avatar/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserAvatar"))
|
|
|
- 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) ManagerUpdateUserCredit(ctx context.Context, in *ManagerUpdateUserCreditRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/credit/add"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserCredit"))
|
|
|
- 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) ManagerUpdateUserIsBlack(ctx context.Context, in *common.ManagerUpdatePersonIsBlackRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/black/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserIsBlack"))
|
|
|
- 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) ManagerUpdateUserName(ctx context.Context, in *common.ManagerUpdatePersonNameRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/name/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserName"))
|
|
|
- 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) ManagerUpdateUserPictures(ctx context.Context, in *common.ManagerUpdatePersonPicturesRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/pictures/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserPictures"))
|
|
|
- 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) ManagerUpdateUserSignature(ctx context.Context, in *common.ManagerUpdatePersonSignatureRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/signature/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserSignature"))
|
|
|
- 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) ManagerUpdateUserVoice(ctx context.Context, in *common.ManagerUpdatePersonVoiceRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/Voice/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserVoice"))
|
|
|
- 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) ManagerUpdateUserWeight(ctx context.Context, in *common.ManagerUpdatePersonWeightRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
- var out emptypb.Empty
|
|
|
- pattern := "/api/manager/user/weight/update"
|
|
|
- path := binding.EncodeURL(pattern, in, false)
|
|
|
- opts = append(opts, http.Operation("/api.user.User/ManagerUpdateUserWeight"))
|
|
|
- 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) PersonClickLookBack(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.ScripInfo, error) {
|
|
|
var out common.ScripInfo
|
|
|
pattern := "/api/user/scrip/look/back"
|