Browse Source

提现记录

wfz 3 years ago
parent
commit
53048193e2

File diff suppressed because it is too large
+ 610 - 452
api/partner/partner.pb.go


+ 20 - 0
api/partner/partner.proto

@@ -291,6 +291,26 @@ service Partner {
       body:"*"
     };
   };
+  // 接待员提现记录列表
+  rpc PartnerWithdrawRecordList (common.ListPageRequest) returns (PartnerWithdrawRecordListReply){
+    option (google.api.http) = {
+      post: "/api/partner/withdraw/record/list",
+      body:"*"
+    };
+  };
+}
+
+message PartnerWithdrawRecordListReply{
+  int64 nextId = 1;
+  repeated WithdrawInfo list = 2;
+}
+
+message WithdrawInfo{
+  int64 id = 1;// 记录ID
+  int64 money = 2;// 提现多少钱
+  int64 credit = 3;// 提现需要多少积分
+  string status = 4;// 状态
+  string result = 5;// 结果
 }
 
 message PartnerWithdrawTemplateListReply{

+ 38 - 0
api/partner/partner_grpc.pb.go

@@ -114,6 +114,8 @@ type PartnerClient interface {
 	PartnerApplyWithdraw(ctx context.Context, in *PartnerApplyWithdrawRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 接待员提现模板列表
 	PartnerWithdrawTemplateList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerWithdrawTemplateListReply, error)
+	// 接待员提现记录列表
+	PartnerWithdrawRecordList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*PartnerWithdrawRecordListReply, error)
 }
 
 type partnerClient struct {
@@ -520,6 +522,15 @@ func (c *partnerClient) PartnerWithdrawTemplateList(ctx context.Context, in *emp
 	return out, nil
 }
 
+func (c *partnerClient) PartnerWithdrawRecordList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*PartnerWithdrawRecordListReply, error) {
+	out := new(PartnerWithdrawRecordListReply)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerWithdrawRecordList", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // PartnerServer is the server API for Partner service.
 // All implementations must embed UnimplementedPartnerServer
 // for forward compatibility
@@ -616,6 +627,8 @@ type PartnerServer interface {
 	PartnerApplyWithdraw(context.Context, *PartnerApplyWithdrawRequest) (*emptypb.Empty, error)
 	// 接待员提现模板列表
 	PartnerWithdrawTemplateList(context.Context, *emptypb.Empty) (*PartnerWithdrawTemplateListReply, error)
+	// 接待员提现记录列表
+	PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -755,6 +768,9 @@ func (UnimplementedPartnerServer) PartnerApplyWithdraw(context.Context, *Partner
 func (UnimplementedPartnerServer) PartnerWithdrawTemplateList(context.Context, *emptypb.Empty) (*PartnerWithdrawTemplateListReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method PartnerWithdrawTemplateList not implemented")
 }
+func (UnimplementedPartnerServer) PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PartnerWithdrawRecordList not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -1560,6 +1576,24 @@ func _Partner_PartnerWithdrawTemplateList_Handler(srv interface{}, ctx context.C
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_PartnerWithdrawRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.ListPageRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).PartnerWithdrawRecordList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/PartnerWithdrawRecordList",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).PartnerWithdrawRecordList(ctx, req.(*common.ListPageRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1743,6 +1777,10 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "PartnerWithdrawTemplateList",
 			Handler:    _Partner_PartnerWithdrawTemplateList_Handler,
 		},
+		{
+			MethodName: "PartnerWithdrawRecordList",
+			Handler:    _Partner_PartnerWithdrawRecordList_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

+ 43 - 0
api/partner/partner_http.pb.go

@@ -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"

+ 6 - 1
js/api/partner/partner_http_pb.ts

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {PartnerInfo,PartnerBalance,PartnerDBBalance,PartnerMessage,GetRandomPartnerRequest,RandomPartnerInfo,AddPartnerBalanceRequest,LevelTable,PartnerGetAwardRequest,PartnerUpdateWorkingStatusRequest,PartnerApplyWithdrawRequest,PartnerWithdrawTemplateListReply} from "./partner_pb";
+import {PartnerInfo,PartnerBalance,PartnerDBBalance,PartnerMessage,GetRandomPartnerRequest,RandomPartnerInfo,AddPartnerBalanceRequest,LevelTable,PartnerGetAwardRequest,PartnerUpdateWorkingStatusRequest,PartnerApplyWithdrawRequest,PartnerWithdrawTemplateListReply,PartnerWithdrawRecordListReply} from "./partner_pb";
 import {PartnerIDParam,PersonIDParam,PersonMsg,SendPhoneCodeRequest,CheckPhoneCodeRequest,AddFriendMessageInfo,UpdateInformationRequest,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,PersonIDList,PersonDBReply,WxConfReq,WxConfResponse,CreateChatRoomParam,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,PartnerChatCardInfo,ReportChatRequest,FindRecommendRequest,FindOverSevenDayAvatarReply} from "../common/common_pb";
 import {LookMessageReply,LookAndLikeListReply} from "../statistics/statistics_pb";
 import {RoomReply,PartnerFindRoomListReply,FindNotReplyNumReply} from "../chat/chat_pb";
@@ -198,6 +198,11 @@ const PartnerService = {
 	const res = await request.post<{ data: PartnerWithdrawTemplateListReply, code: string, message: string }>('/api/partner/withdraw/template/list', req);
     return res.data.data;
   },
+  /**  接待员提现记录列表 */
+  PartnerWithdrawRecordList: async (req?: ListPageRequest) => {
+	const res = await request.post<{ data: PartnerWithdrawRecordListReply, code: string, message: string }>('/api/partner/withdraw/record/list', req);
+    return res.data.data;
+  },
 
 };
 

+ 16 - 0
js/api/partner/partner_pb.ts

@@ -1,3 +1,19 @@
+export interface PartnerWithdrawRecordListReply{
+    nextId?:number;
+    list?:Array<WithdrawInfo>;
+}
+export interface WithdrawInfo{
+    /**  记录ID */
+    id?:number;
+    /**  提现多少钱 */
+    money?:number;
+    /**  提现需要多少积分 */
+    credit?:number;
+    /**  状态 */
+    status?:string;
+    /**  结果 */
+    result?:string;
+}
 export interface PartnerWithdrawTemplateListReply{
     list?:Array<PartnerWithdrawTemplateInfo>;
 }

Some files were not shown because too many files changed in this diff