|
@@ -60,6 +60,7 @@ type PartnerHTTPServer interface {
|
|
|
GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
|
GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
|
GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
|
|
GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
|
|
|
|
|
+ ManagerLogin(context.Context, *common.ManagerLoginRequest) (*common.LoginToken, error)
|
|
|
PartnerApplyWithdraw(context.Context, *PartnerApplyWithdrawRequest) (*emptypb.Empty, error)
|
|
PartnerApplyWithdraw(context.Context, *PartnerApplyWithdrawRequest) (*emptypb.Empty, error)
|
|
|
PartnerCollect(context.Context, *PartnerCollectIDsRequest) (*emptypb.Empty, error)
|
|
PartnerCollect(context.Context, *PartnerCollectIDsRequest) (*emptypb.Empty, error)
|
|
|
PartnerDeleteChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
PartnerDeleteChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
@@ -144,6 +145,7 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
|
|
|
r.POST("/api/partner/register", _Partner_PartnerRegister0_HTTP_Handler(srv))
|
|
r.POST("/api/partner/register", _Partner_PartnerRegister0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/register/examine/list", _Partner_FindExamineList0_HTTP_Handler(srv))
|
|
r.POST("/api/partner/register/examine/list", _Partner_FindExamineList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/register/examine", _Partner_ExaminePartner0_HTTP_Handler(srv))
|
|
r.POST("/api/partner/register/examine", _Partner_ExaminePartner0_HTTP_Handler(srv))
|
|
|
|
|
+ r.POST("/api/partner/register/examine", _Partner_ManagerLogin0_HTTP_Handler(srv))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
@@ -1631,6 +1633,33 @@ func _Partner_ExaminePartner0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Partner_ManagerLogin0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
|
|
+ return func(ctx http.Context) error {
|
|
|
|
|
+ var in common.ManagerLoginRequest
|
|
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/ManagerLogin")
|
|
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.ManagerLogin(ctx, req.(*common.ManagerLoginRequest))
|
|
|
|
|
+ })
|
|
|
|
|
+ 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 PartnerHTTPClient interface {
|
|
type PartnerHTTPClient interface {
|
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
CreateScrip(ctx context.Context, req *CreateScripRequest, opts ...http.CallOption) (rsp *common.ScripID, err error)
|
|
CreateScrip(ctx context.Context, req *CreateScripRequest, opts ...http.CallOption) (rsp *common.ScripID, err error)
|
|
@@ -1662,6 +1691,7 @@ type PartnerHTTPClient interface {
|
|
|
GetPartnerIsLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.IsLike, err error)
|
|
GetPartnerIsLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.IsLike, err error)
|
|
|
GetPartnerLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
|
|
GetPartnerLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
|
|
|
GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
|
|
GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
|
|
|
|
|
+ ManagerLogin(ctx context.Context, req *common.ManagerLoginRequest, opts ...http.CallOption) (rsp *common.LoginToken, err error)
|
|
|
PartnerApplyWithdraw(ctx context.Context, req *PartnerApplyWithdrawRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
PartnerApplyWithdraw(ctx context.Context, req *PartnerApplyWithdrawRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerCollect(ctx context.Context, req *PartnerCollectIDsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
PartnerCollect(ctx context.Context, req *PartnerCollectIDsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerDeleteChat(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
PartnerDeleteChat(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
@@ -2087,6 +2117,19 @@ func (c *PartnerHTTPClientImpl) GetPartnerMessage(ctx context.Context, in *empty
|
|
|
return &out, err
|
|
return &out, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) ManagerLogin(ctx context.Context, in *common.ManagerLoginRequest, opts ...http.CallOption) (*common.LoginToken, error) {
|
|
|
|
|
+ var out common.LoginToken
|
|
|
|
|
+ pattern := "/api/partner/register/examine"
|
|
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/ManagerLogin"))
|
|
|
|
|
+ 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 *PartnerHTTPClientImpl) PartnerApplyWithdraw(ctx context.Context, in *PartnerApplyWithdrawRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
func (c *PartnerHTTPClientImpl) PartnerApplyWithdraw(ctx context.Context, in *PartnerApplyWithdrawRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/partner/withdraw"
|
|
pattern := "/api/partner/withdraw"
|