|
@@ -62,6 +62,7 @@ type ManagerHTTPServer interface {
|
|
|
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)
|
|
|
|
|
+ ManagerUserUnsubscribe(context.Context, *ManagerUserUnsubscribeRequest) (*emptypb.Empty, error)
|
|
|
OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)
|
|
OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -101,6 +102,7 @@ func RegisterManagerHTTPServer(s *http.Server, srv ManagerHTTPServer) {
|
|
|
r.POST("/api/manager/report/list", _Manager_ManagerFindReportList0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/report/list", _Manager_ManagerFindReportList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/report/details/list", _Manager_ManagerFindReportDetailsList0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/report/details/list", _Manager_ManagerFindReportDetailsList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/manager/online/details/list", _Manager_FindOnlinePerson0_HTTP_Handler(srv))
|
|
r.POST("/api/manager/online/details/list", _Manager_FindOnlinePerson0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/manager/user/unsubscribe", _Manager_ManagerUserUnsubscribe0_HTTP_Handler(srv))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func _Manager_ManagerFindUserList0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
|
|
func _Manager_ManagerFindUserList0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
|
|
@@ -1021,6 +1023,33 @@ func _Manager_FindOnlinePerson0_HTTP_Handler(srv ManagerHTTPServer) func(ctx htt
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Manager_ManagerUserUnsubscribe0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
|
|
|
|
|
+ return func(ctx http.Context) error {
|
|
|
|
|
+ var in ManagerUserUnsubscribeRequest
|
|
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ http.SetOperation(ctx, "/api.manager.Manager/ManagerUserUnsubscribe")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.ManagerUserUnsubscribe(ctx, req.(*ManagerUserUnsubscribeRequest))
|
|
|
|
|
+ })
|
|
|
|
|
+ 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 ManagerHTTPClient interface {
|
|
type ManagerHTTPClient interface {
|
|
|
FindOnlinePerson(ctx context.Context, req *FindOnlinePersonRequest, opts ...http.CallOption) (rsp *websocket.FindOnlinePersonReply, err error)
|
|
FindOnlinePerson(ctx context.Context, req *FindOnlinePersonRequest, opts ...http.CallOption) (rsp *websocket.FindOnlinePersonReply, err error)
|
|
|
ManagerDeleteHighQualityUser(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
ManagerDeleteHighQualityUser(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
@@ -1055,6 +1084,7 @@ type ManagerHTTPClient interface {
|
|
|
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)
|
|
|
|
|
+ ManagerUserUnsubscribe(ctx context.Context, req *ManagerUserUnsubscribeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
OnlinePerson(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *OnlinePersonReply, err error)
|
|
OnlinePerson(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *OnlinePersonReply, err error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1495,6 +1525,19 @@ func (c *ManagerHTTPClientImpl) ManagerUpdateUserWeight(ctx context.Context, in
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *ManagerHTTPClientImpl) ManagerUserUnsubscribe(ctx context.Context, in *ManagerUserUnsubscribeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
|
|
+ var out emptypb.Empty
|
|
|
|
|
+ pattern := "/api/manager/user/unsubscribe"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.manager.Manager/ManagerUserUnsubscribe"))
|
|
|
|
|
+ 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) OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*OnlinePersonReply, error) {
|
|
func (c *ManagerHTTPClientImpl) OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*OnlinePersonReply, error) {
|
|
|
var out OnlinePersonReply
|
|
var out OnlinePersonReply
|
|
|
pattern := "/api/manager/online/person"
|
|
pattern := "/api/manager/online/person"
|