|
|
@@ -52,6 +52,7 @@ type PartnerHTTPServer interface {
|
|
|
GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
|
|
|
GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
|
GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
|
|
|
+ PartnerApplyWithdraw(context.Context, *PartnerApplyWithdrawRequest) (*emptypb.Empty, error)
|
|
|
PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*emptypb.Empty, error)
|
|
|
PartnerGetChatCard(context.Context, *common.PersonParam) (*common.PartnerChatCardInfo, error)
|
|
|
PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
|
|
|
@@ -59,6 +60,7 @@ type PartnerHTTPServer interface {
|
|
|
PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
PartnerUpdateWorkingStatus(context.Context, *PartnerUpdateWorkingStatusRequest) (*emptypb.Empty, error)
|
|
|
+ PartnerWithdrawTemplateList(context.Context, *emptypb.Empty) (*PartnerWithdrawTemplateListReply, error)
|
|
|
RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
|
|
|
RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
|
|
|
Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
|
|
|
@@ -104,6 +106,8 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
|
|
|
r.POST("/api/partner/working/status/update", _Partner_PartnerUpdateWorkingStatus0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/over/avatar/list", _Partner_FindOverSevenDayAvatar0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/chat/unreply/num", _Partner_FindNotReplyNum0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/withdraw", _Partner_PartnerApplyWithdraw0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/withdraw/template/list", _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv))
|
|
|
}
|
|
|
|
|
|
func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
@@ -1051,6 +1055,60 @@ func _Partner_FindNotReplyNum0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func _Partner_PartnerApplyWithdraw0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in PartnerApplyWithdrawRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/PartnerApplyWithdraw")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.PartnerApplyWithdraw(ctx, req.(*PartnerApplyWithdrawRequest))
|
|
|
+ })
|
|
|
+ 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 _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in emptypb.Empty
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/PartnerWithdrawTemplateList")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.PartnerWithdrawTemplateList(ctx, req.(*emptypb.Empty))
|
|
|
+ })
|
|
|
+ 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 {
|
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
CreateUserPartnerRoom(ctx context.Context, req *common.CreateChatRoomParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
|
|
|
@@ -1074,6 +1132,7 @@ type PartnerHTTPClient interface {
|
|
|
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)
|
|
|
GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
|
|
|
+ PartnerApplyWithdraw(ctx context.Context, req *PartnerApplyWithdrawRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerGetAward(ctx context.Context, req *PartnerGetAwardRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerGetChatCard(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.PartnerChatCardInfo, err error)
|
|
|
PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
|
|
|
@@ -1081,6 +1140,7 @@ type PartnerHTTPClient interface {
|
|
|
PartnerLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerUnLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerUpdateWorkingStatus(ctx context.Context, req *PartnerUpdateWorkingStatusRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
+ PartnerWithdrawTemplateList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerWithdrawTemplateListReply, err error)
|
|
|
RandomMeme(ctx context.Context, req *common.RandomNum, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
|
|
|
RandomSwiftMessage(ctx context.Context, req *common.RandomNumAndSex, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
|
|
|
Report(ctx context.Context, req *common.ReportChatRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
@@ -1383,6 +1443,19 @@ func (c *PartnerHTTPClientImpl) GetPartnerMessage(ctx context.Context, in *empty
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) PartnerApplyWithdraw(ctx context.Context, in *PartnerApplyWithdrawRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
+ var out emptypb.Empty
|
|
|
+ pattern := "/api/partner/withdraw"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/PartnerApplyWithdraw"))
|
|
|
+ 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) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/partner/chat/award"
|
|
|
@@ -1474,6 +1547,19 @@ func (c *PartnerHTTPClientImpl) PartnerUpdateWorkingStatus(ctx context.Context,
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) PartnerWithdrawTemplateList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerWithdrawTemplateListReply, error) {
|
|
|
+ var out PartnerWithdrawTemplateListReply
|
|
|
+ pattern := "/api/partner/withdraw/template/list"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/PartnerWithdrawTemplateList"))
|
|
|
+ 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) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...http.CallOption) (*common.CommonTextList, error) {
|
|
|
var out common.CommonTextList
|
|
|
pattern := "/api/partner/find/meme/random"
|