|
@@ -55,6 +55,7 @@ type ManagerHTTPServer interface {
|
|
|
ManagerUpdateUserIsBlack(context.Context, *common.ManagerUpdatePersonIsBlackRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserIsBlack(context.Context, *common.ManagerUpdatePersonIsBlackRequest) (*emptypb.Empty, error)
|
|
|
ManagerUpdateUserName(context.Context, *common.ManagerUpdatePersonNameRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserName(context.Context, *common.ManagerUpdatePersonNameRequest) (*emptypb.Empty, error)
|
|
|
ManagerUpdateUserPictures(context.Context, *common.ManagerUpdatePersonPicturesRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserPictures(context.Context, *common.ManagerUpdatePersonPicturesRequest) (*emptypb.Empty, error)
|
|
|
|
|
+ ManagerUpdateUserSex(context.Context, *ManagerUpdateUserSexRequest) (*emptypb.Empty, error)
|
|
|
ManagerUpdateUserSignature(context.Context, *common.ManagerUpdatePersonSignatureRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserSignature(context.Context, *common.ManagerUpdatePersonSignatureRequest) (*emptypb.Empty, error)
|
|
|
ManagerUpdateUserVoice(context.Context, *common.ManagerUpdatePersonVoiceRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserVoice(context.Context, *common.ManagerUpdatePersonVoiceRequest) (*emptypb.Empty, error)
|
|
|
ManagerUpdateUserWeight(context.Context, *common.ManagerUpdatePersonWeightRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserWeight(context.Context, *common.ManagerUpdatePersonWeightRequest) (*emptypb.Empty, error)
|
|
@@ -75,6 +76,7 @@ func RegisterManagerHTTPServer(s *http.Server, srv ManagerHTTPServer) {
|
|
|
r.POST("/api/manager/quality/user/set/one", _Manager_ManagerMarkHighQualityUserOne0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/quality/user/set/one", _Manager_ManagerMarkHighQualityUserOne0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/black/user/more", _Manager_ManagerSetUserBlack0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/black/user/more", _Manager_ManagerSetUserBlack0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/quality/user/delete", _Manager_ManagerDeleteHighQualityUser0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/quality/user/delete", _Manager_ManagerDeleteHighQualityUser0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/manager/user/sex/update", _Manager_ManagerUpdateUserSex0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/Voice/update", _Manager_ManagerUpdateUserVoice0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/Voice/update", _Manager_ManagerUpdateUserVoice0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/pictures/update", _Manager_ManagerUpdateUserPictures0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/pictures/update", _Manager_ManagerUpdateUserPictures0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/signature/update", _Manager_ManagerUpdateUserSignature0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/signature/update", _Manager_ManagerUpdateUserSignature0_HTTP_Handler(srv))
|
|
@@ -420,6 +422,33 @@ func _Manager_ManagerDeleteHighQualityUser0_HTTP_Handler(srv ManagerHTTPServer)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Manager_ManagerUpdateUserSex0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
|
|
|
|
|
+ return func(ctx http.Context) error {
|
|
|
|
|
+ var in ManagerUpdateUserSexRequest
|
|
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ http.SetOperation(ctx, "/api.manager.Manager/ManagerUpdateUserSex")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.ManagerUpdateUserSex(ctx, req.(*ManagerUpdateUserSexRequest))
|
|
|
|
|
+ })
|
|
|
|
|
+ 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 _Manager_ManagerUpdateUserVoice0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
|
|
func _Manager_ManagerUpdateUserVoice0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
return func(ctx http.Context) error {
|
|
|
var in common.ManagerUpdatePersonVoiceRequest
|
|
var in common.ManagerUpdatePersonVoiceRequest
|
|
@@ -961,6 +990,7 @@ type ManagerHTTPClient interface {
|
|
|
ManagerUpdateUserIsBlack(ctx context.Context, req *common.ManagerUpdatePersonIsBlackRequest, 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)
|
|
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)
|
|
ManagerUpdateUserPictures(ctx context.Context, req *common.ManagerUpdatePersonPicturesRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
|
|
+ ManagerUpdateUserSex(ctx context.Context, req *ManagerUpdateUserSexRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
ManagerUpdateUserSignature(ctx context.Context, req *common.ManagerUpdatePersonSignatureRequest, 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)
|
|
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)
|
|
ManagerUpdateUserWeight(ctx context.Context, req *common.ManagerUpdatePersonWeightRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
@@ -1326,6 +1356,19 @@ func (c *ManagerHTTPClientImpl) ManagerUpdateUserPictures(ctx context.Context, i
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *ManagerHTTPClientImpl) ManagerUpdateUserSex(ctx context.Context, in *ManagerUpdateUserSexRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
|
|
+ var out emptypb.Empty
|
|
|
|
|
+ pattern := "/api/manager/user/sex/update"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.manager.Manager/ManagerUpdateUserSex"))
|
|
|
|
|
+ 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 *ManagerHTTPClientImpl) ManagerUpdateUserSignature(ctx context.Context, in *common.ManagerUpdatePersonSignatureRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
func (c *ManagerHTTPClientImpl) ManagerUpdateUserSignature(ctx context.Context, in *common.ManagerUpdatePersonSignatureRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/manager/user/signature/update"
|
|
pattern := "/api/manager/user/signature/update"
|