wfz 3 жил өмнө
parent
commit
b138c60f8e

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 884 - 640
api/partner/partner.pb.go


+ 40 - 1
api/partner/partner.proto

@@ -389,6 +389,27 @@ service Partner {
       body:"*"
     };
   };
+  // 接待员注册
+  rpc PartnerRegister (common.UpdateInformationRequest) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      post: "/api/partner/register",
+      body:"*"
+    };
+  };
+  // 接待员注册
+  rpc FindExamineList (common.ListPage2Request) returns (FindExamineListReply){
+    option (google.api.http) = {
+      post: "/api/partner/register/examine/list",
+      body:"*"
+    };
+  };
+  // 接待员注册
+  rpc ExaminePartner (ExaminePartnerRequest) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      post: "/api/partner/register/examine",
+      body:"*"
+    };
+  };
 
 
   // ---rpc---
@@ -411,6 +432,24 @@ service Partner {
   rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
 }
 
+message FindExamineListReply{
+  string nextId = 1;
+  repeated ExamineInfo list = 2;
+}
+message ExamineInfo{
+  string partnerId = 1;// 接待员ID
+  string nickname = 2; // 昵称
+  string avatarUrl = 3;// 头像
+  string introduceVoice = 4;// 介绍语音的链接
+  string signature = 5;// 介绍(签名)
+  repeated string pictures = 6;// 相册(主页图片)
+}
+
+message ExaminePartnerRequest{
+  string partnerId = 1;// 接待员ID
+  bool isPass = 2;// 是否审核通过
+}
+
 message PartnerGetRoomBalanceAndTodayBalanceReply{
   int64 todayProfit = 1;// 今日收益
   int64 roomProfit = 2;// 房间收益
@@ -505,7 +544,7 @@ message PartnerInfo{
   int64 partnerId = 14;// 接待员ID
   bool isBlack = 15;// 是否被封号
   string workingStatus = 16;// 工作状态
-  string examineStatus = 17;// 审核状态
+  string registerStatus = 17;// 审核状态
 }
 
 message PartnerMessage{

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

@@ -127,6 +127,12 @@ type PartnerClient interface {
 	PartnerWithdrawRecordList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*PartnerWithdrawRecordListReply, error)
 	// 接待员获取房间收益以及今日收益
 	PartnerGetRoomBalanceAndTodayBalance(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*PartnerGetRoomBalanceAndTodayBalanceReply, error)
+	// 接待员注册
+	PartnerRegister(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 接待员注册
+	FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*FindExamineListReply, error)
+	// 接待员注册
+	ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// ---rpc---
 	// 1、获取用户详情
 	GetPartnerDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error)
@@ -622,6 +628,33 @@ func (c *partnerClient) PartnerGetRoomBalanceAndTodayBalance(ctx context.Context
 	return out, nil
 }
 
+func (c *partnerClient) PartnerRegister(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerRegister", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*FindExamineListReply, error) {
+	out := new(FindExamineListReply)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/FindExamineList", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/ExaminePartner", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *partnerClient) GetPartnerDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
 	out := new(common.PersonMsg)
 	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerDBMsg", in, out, opts...)
@@ -803,6 +836,12 @@ type PartnerServer interface {
 	PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error)
 	// 接待员获取房间收益以及今日收益
 	PartnerGetRoomBalanceAndTodayBalance(context.Context, *common.RoomIDRequest) (*PartnerGetRoomBalanceAndTodayBalanceReply, error)
+	// 接待员注册
+	PartnerRegister(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
+	// 接待员注册
+	FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error)
+	// 接待员注册
+	ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error)
 	// ---rpc---
 	// 1、获取用户详情
 	GetPartnerDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
@@ -983,6 +1022,15 @@ func (UnimplementedPartnerServer) PartnerWithdrawRecordList(context.Context, *co
 func (UnimplementedPartnerServer) PartnerGetRoomBalanceAndTodayBalance(context.Context, *common.RoomIDRequest) (*PartnerGetRoomBalanceAndTodayBalanceReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method PartnerGetRoomBalanceAndTodayBalance not implemented")
 }
+func (UnimplementedPartnerServer) PartnerRegister(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PartnerRegister not implemented")
+}
+func (UnimplementedPartnerServer) FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindExamineList not implemented")
+}
+func (UnimplementedPartnerServer) ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method ExaminePartner not implemented")
+}
 func (UnimplementedPartnerServer) GetPartnerDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerDBMsg not implemented")
 }
@@ -1956,6 +2004,60 @@ func _Partner_PartnerGetRoomBalanceAndTodayBalance_Handler(srv interface{}, ctx
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_PartnerRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.UpdateInformationRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).PartnerRegister(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/PartnerRegister",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).PartnerRegister(ctx, req.(*common.UpdateInformationRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_FindExamineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.ListPage2Request)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).FindExamineList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/FindExamineList",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).FindExamineList(ctx, req.(*common.ListPage2Request))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_ExaminePartner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(ExaminePartnerRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).ExaminePartner(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/ExaminePartner",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).ExaminePartner(ctx, req.(*ExaminePartnerRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _Partner_GetPartnerDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(common.PersonIDParam)
 	if err := dec(in); err != nil {
@@ -2315,6 +2417,18 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "PartnerGetRoomBalanceAndTodayBalance",
 			Handler:    _Partner_PartnerGetRoomBalanceAndTodayBalance_Handler,
 		},
+		{
+			MethodName: "PartnerRegister",
+			Handler:    _Partner_PartnerRegister_Handler,
+		},
+		{
+			MethodName: "FindExamineList",
+			Handler:    _Partner_FindExamineList_Handler,
+		},
+		{
+			MethodName: "ExaminePartner",
+			Handler:    _Partner_ExaminePartner_Handler,
+		},
 		{
 			MethodName: "GetPartnerDBMsg",
 			Handler:    _Partner_GetPartnerDBMsg_Handler,

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

@@ -34,11 +34,13 @@ type PartnerHTTPServer interface {
 	CreateScrip(context.Context, *CreateScripRequest) (*common.ScripID, error)
 	CreateUserPartnerRoom(context.Context, *common.CreateChatRoomParam) (*chat.RoomReply, error)
 	DeleteScrip(context.Context, *common.ScripIdRequest) (*emptypb.Empty, error)
+	ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error)
 	FindChatCollectList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
 	FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
 	FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
 	FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error)
 	FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
+	FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error)
 	FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
 	FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
 	FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
@@ -68,6 +70,7 @@ type PartnerHTTPServer interface {
 	PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
 	PartnerGetRoomBalanceAndTodayBalance(context.Context, *common.RoomIDRequest) (*PartnerGetRoomBalanceAndTodayBalanceReply, error)
 	PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
+	PartnerRegister(context.Context, *common.UpdateInformationRequest) (*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)
@@ -138,6 +141,9 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/withdraw/template/list", _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv))
 	r.POST("/api/partner/withdraw/record/list", _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv))
 	r.POST("/api/partner/balance/room", _Partner_PartnerGetRoomBalanceAndTodayBalance0_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", _Partner_ExaminePartner0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -1544,16 +1550,99 @@ func _Partner_PartnerGetRoomBalanceAndTodayBalance0_HTTP_Handler(srv PartnerHTTP
 	}
 }
 
+func _Partner_PartnerRegister0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.UpdateInformationRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/PartnerRegister")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.PartnerRegister(ctx, req.(*common.UpdateInformationRequest))
+		})
+		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_FindExamineList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.ListPage2Request
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/FindExamineList")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.FindExamineList(ctx, req.(*common.ListPage2Request))
+		})
+		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_ExaminePartner0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in ExaminePartnerRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/ExaminePartner")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.ExaminePartner(ctx, req.(*ExaminePartnerRequest))
+		})
+		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)
 	CreateScrip(ctx context.Context, req *CreateScripRequest, opts ...http.CallOption) (rsp *common.ScripID, err error)
 	CreateUserPartnerRoom(ctx context.Context, req *common.CreateChatRoomParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
 	DeleteScrip(ctx context.Context, req *common.ScripIdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
+	ExaminePartner(ctx context.Context, req *ExaminePartnerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	FindChatCollectList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
 	FindChatRecordList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
 	FindChatRoomMsg(ctx context.Context, req *common.FindChatRoomMsgRequest, opts ...http.CallOption) (rsp *common.ChatRoomMsg, err error)
 	FindChatTopic(ctx context.Context, req *common.FindChatTopicRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
 	FindChatTopicTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
+	FindExamineList(ctx context.Context, req *common.ListPage2Request, opts ...http.CallOption) (rsp *FindExamineListReply, err error)
 	FindLookList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *statistics.LookAndLikeListReply, err error)
 	FindMemeByType(ctx context.Context, req *common.MemeRequest, opts ...http.CallOption) (rsp *common.MemeList, err error)
 	FindMemeTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
@@ -1583,6 +1672,7 @@ type PartnerHTTPClient interface {
 	PartnerGetPersonLikedAndLooked(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.LookedAndLikedNum, err error)
 	PartnerGetRoomBalanceAndTodayBalance(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *PartnerGetRoomBalanceAndTodayBalanceReply, err error)
 	PartnerLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
+	PartnerRegister(ctx context.Context, req *common.UpdateInformationRequest, 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)
@@ -1659,6 +1749,19 @@ func (c *PartnerHTTPClientImpl) DeleteScrip(ctx context.Context, in *common.Scri
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/partner/register/examine"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/ExaminePartner"))
+	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) FindChatCollectList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
 	var out common.ChatRecordListReply
 	pattern := "/api/partner/collect/list"
@@ -1724,6 +1827,19 @@ func (c *PartnerHTTPClientImpl) FindChatTopicTitle(ctx context.Context, in *empt
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...http.CallOption) (*FindExamineListReply, error) {
+	var out FindExamineListReply
+	pattern := "/api/partner/register/examine/list"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/FindExamineList"))
+	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) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*statistics.LookAndLikeListReply, error) {
 	var out statistics.LookAndLikeListReply
 	pattern := "/api/partner/list/look"
@@ -2101,6 +2217,19 @@ func (c *PartnerHTTPClientImpl) PartnerLike(ctx context.Context, in *common.Pers
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) PartnerRegister(ctx context.Context, in *common.UpdateInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/partner/register"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/PartnerRegister"))
+	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) PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/partner/unlike"

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

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {PartnerInfo,PartnerBalance,CreateScripRequest,ReplyScripRequest,PartnerCollectIDsRequest,PartnerCollectRequest,PartnerMessage,LevelTable,PartnerGetAwardRequest,PartnerUpdateWorkingStatusRequest,PartnerApplyWithdrawRequest,PartnerWithdrawTemplateListReply,PartnerWithdrawRecordListReply,PartnerGetRoomBalanceAndTodayBalanceReply,PartnerDBBalance,AddPartnerBalanceRequest} from "./partner_pb";
+import {PartnerInfo,PartnerBalance,CreateScripRequest,ReplyScripRequest,PartnerCollectIDsRequest,PartnerCollectRequest,PartnerMessage,LevelTable,PartnerGetAwardRequest,PartnerUpdateWorkingStatusRequest,PartnerApplyWithdrawRequest,PartnerWithdrawTemplateListReply,PartnerWithdrawRecordListReply,PartnerGetRoomBalanceAndTodayBalanceReply,FindExamineListReply,ExaminePartnerRequest,PartnerDBBalance,AddPartnerBalanceRequest} from "./partner_pb";
 import {SendPhoneCodeRequest,CheckPhoneCodeRequest,UpdateInformationRequest,CreateChatRoomParam,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,PartnerChatCardInfo,ReportChatRequest,FindOverSevenDayAvatarReply,UpdateLastScripIDRequest,ScripID,ScripIdRequest,ScripReply,FindScripRequest,ScripInfo,ChatRecordInfo,RoomIDRequest,PersonIDParam,PersonMsg,PersonIDList,PersonDBReply,UpdateLastScripIDDBRequest,FindRecommendRequest,PartnerIDParam,AddFriendMessageInfo} from "../common/common_pb";
 import {RoomReply,PartnerFindRoomListReply,FindNotReplyNumReply} from "../chat/chat_pb";
 import {LookAndLikeListReply,LookMessageReply} from "../statistics/statistics_pb";
@@ -267,6 +267,21 @@ const PartnerService = {
 	const res = await request.post<{ data: PartnerGetRoomBalanceAndTodayBalanceReply, code: string, message: string }>('/api/partner/balance/room', req);
     return res.data.data;
   },
+  /**  接待员注册 */
+  PartnerRegister: async (req?: UpdateInformationRequest) => {
+	const res = await request.post('/api/partner/register', req);
+    return res.data.data;
+  },
+  /**  接待员注册 */
+  FindExamineList: async (req?: ListPage2Request) => {
+	const res = await request.post<{ data: FindExamineListReply, code: string, message: string }>('/api/partner/register/examine/list', req);
+    return res.data.data;
+  },
+  /**  接待员注册 */
+  ExaminePartner: async (req?: ExaminePartnerRequest) => {
+	const res = await request.post('/api/partner/register/examine', req);
+    return res.data.data;
+  },
 
 };
 

+ 25 - 1
js/api/partner/partner_pb.ts

@@ -1,5 +1,29 @@
 import {Message} from "../common/common_pb";
 
+export interface FindExamineListReply{
+    nextId?:string;
+    list?:Array<ExamineInfo>;
+}
+export interface ExamineInfo{
+    /**  接待员ID */
+    partnerId?:string;
+    /**  昵称 */
+    nickname?:string;
+    /**  头像 */
+    avatarUrl?:string;
+    /**  介绍语音的链接 */
+    introduceVoice?:string;
+    /**  介绍(签名) */
+    signature?:string;
+    /**  相册(主页图片) */
+    pictures?:Array<string>;
+}
+export interface ExaminePartnerRequest{
+    /**  接待员ID */
+    partnerId?:string;
+    /**  是否审核通过 */
+    isPass?:boolean;
+}
 export interface PartnerGetRoomBalanceAndTodayBalanceReply{
     /**  今日收益 */
     todayProfit?:number;
@@ -124,7 +148,7 @@ export interface PartnerInfo{
     /**  工作状态 */
     workingStatus?:string;
     /**  审核状态 */
-    examineStatus?:string;
+    registerStatus?:string;
 }
 export interface PartnerMessage{
     /**  id */

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно