|
|
@@ -60,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)
|
|
|
+ PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error)
|
|
|
PartnerWithdrawTemplateList(context.Context, *emptypb.Empty) (*PartnerWithdrawTemplateListReply, error)
|
|
|
RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
|
|
|
RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
|
|
|
@@ -108,6 +109,7 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
|
|
|
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))
|
|
|
+ r.POST("/api/partner/withdraw/record/list", _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv))
|
|
|
}
|
|
|
|
|
|
func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
@@ -1109,6 +1111,33 @@ func _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv PartnerHTTPServer) f
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in common.ListPageRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/PartnerWithdrawRecordList")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.PartnerWithdrawRecordList(ctx, req.(*common.ListPageRequest))
|
|
|
+ })
|
|
|
+ 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)
|
|
|
@@ -1140,6 +1169,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)
|
|
|
+ PartnerWithdrawRecordList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *PartnerWithdrawRecordListReply, 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)
|
|
|
@@ -1547,6 +1577,19 @@ func (c *PartnerHTTPClientImpl) PartnerUpdateWorkingStatus(ctx context.Context,
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) PartnerWithdrawRecordList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*PartnerWithdrawRecordListReply, error) {
|
|
|
+ var out PartnerWithdrawRecordListReply
|
|
|
+ pattern := "/api/partner/withdraw/record/list"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/PartnerWithdrawRecordList"))
|
|
|
+ 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) PartnerWithdrawTemplateList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerWithdrawTemplateListReply, error) {
|
|
|
var out PartnerWithdrawTemplateListReply
|
|
|
pattern := "/api/partner/withdraw/template/list"
|