|
@@ -72,7 +72,8 @@ type UserHTTPServer interface {
|
|
|
ManagerFindHighQualityUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
ManagerFindHighQualityUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
ManagerFindInformationUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
ManagerFindInformationUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
ManagerFindUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
ManagerFindUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
- ManagerMarkHighQualityUser(context.Context, *common.PersonIDList) (*emptypb.Empty, error)
|
|
|
|
|
|
|
+ ManagerMarkHighQualityUser(context.Context, *ManagerMarkHighQualityUserRequest) (*emptypb.Empty, error)
|
|
|
|
|
+ ManagerMarkHighQualityUserOne(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
ManagerUpdateUserAvatar(context.Context, *common.ManagerUpdatePersonAvatarRequest) (*emptypb.Empty, error)
|
|
ManagerUpdateUserAvatar(context.Context, *common.ManagerUpdatePersonAvatarRequest) (*emptypb.Empty, error)
|
|
|
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)
|
|
@@ -176,6 +177,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
|
|
|
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/quality/user/list", _User_ManagerFindHighQualityUserList0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/quality/user/list", _User_ManagerFindHighQualityUserList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/quality/user/set", _User_ManagerMarkHighQualityUser0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/quality/user/set", _User_ManagerMarkHighQualityUser0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/manager/quality/user/set/one", _User_ManagerMarkHighQualityUserOne0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/quality/user/delete", _User_ManagerDeleteHighQualityUser0_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/Voice/update", _User_ManagerUpdateUserVoice0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/user/pictures/update", _User_ManagerUpdateUserPictures0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/user/pictures/update", _User_ManagerUpdateUserPictures0_HTTP_Handler(srv))
|
|
@@ -1970,7 +1972,7 @@ func _User_ManagerFindHighQualityUserList0_HTTP_Handler(srv UserHTTPServer) func
|
|
|
|
|
|
|
|
func _User_ManagerMarkHighQualityUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
func _User_ManagerMarkHighQualityUser0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
return func(ctx http.Context) error {
|
|
|
- var in common.PersonIDList
|
|
|
|
|
|
|
+ var in ManagerMarkHighQualityUserRequest
|
|
|
if err := ctx.Bind(&in); err != nil {
|
|
if err := ctx.Bind(&in); err != nil {
|
|
|
return err
|
|
return err
|
|
|
}
|
|
}
|
|
@@ -1979,7 +1981,34 @@ func _User_ManagerMarkHighQualityUser0_HTTP_Handler(srv UserHTTPServer) func(ctx
|
|
|
}
|
|
}
|
|
|
http.SetOperation(ctx, "/api.user.User/ManagerMarkHighQualityUser")
|
|
http.SetOperation(ctx, "/api.user.User/ManagerMarkHighQualityUser")
|
|
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.ManagerMarkHighQualityUser(ctx, req.(*common.PersonIDList))
|
|
|
|
|
|
|
+ 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_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)
|
|
out, err := h(ctx, &in)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -2254,7 +2283,8 @@ type UserHTTPClient interface {
|
|
|
ManagerFindHighQualityUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, 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)
|
|
ManagerFindInformationUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, err error)
|
|
|
ManagerFindUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, err error)
|
|
ManagerFindUserList(ctx context.Context, req *common.ManagerFindPersonListRequest, opts ...http.CallOption) (rsp *common.ManagerFindPersonListReply, err error)
|
|
|
- ManagerMarkHighQualityUser(ctx context.Context, req *common.PersonIDList, opts ...http.CallOption) (rsp *emptypb.Empty, 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)
|
|
|
ManagerUpdateUserAvatar(ctx context.Context, req *common.ManagerUpdatePersonAvatarRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
ManagerUpdateUserAvatar(ctx context.Context, req *common.ManagerUpdatePersonAvatarRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
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)
|
|
@@ -2843,7 +2873,7 @@ func (c *UserHTTPClientImpl) ManagerFindUserList(ctx context.Context, in *common
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (c *UserHTTPClientImpl) ManagerMarkHighQualityUser(ctx context.Context, in *common.PersonIDList, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
|
|
|
|
+func (c *UserHTTPClientImpl) ManagerMarkHighQualityUser(ctx context.Context, in *ManagerMarkHighQualityUserRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/manager/quality/user/set"
|
|
pattern := "/api/manager/quality/user/set"
|
|
|
path := binding.EncodeURL(pattern, in, false)
|
|
path := binding.EncodeURL(pattern, in, false)
|
|
@@ -2856,6 +2886,19 @@ func (c *UserHTTPClientImpl) ManagerMarkHighQualityUser(ctx context.Context, in
|
|
|
return &out, 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) ManagerUpdateUserAvatar(ctx context.Context, in *common.ManagerUpdatePersonAvatarRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
func (c *UserHTTPClientImpl) ManagerUpdateUserAvatar(ctx context.Context, in *common.ManagerUpdatePersonAvatarRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/manager/user/avatar/update"
|
|
pattern := "/api/manager/user/avatar/update"
|