| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- package chat
- import (
- context "context"
- common "git.ikuban.com/server/pw-protobuf/api/common"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- // ChatClient is the client API for Chat service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
- type ChatClient interface {
- // 检查用户是否与接待员聊天
- CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error)
- // 创建聊天房间
- CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error)
- // 查询在线人的列表
- FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
- // 查询推荐人的列表
- FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
- // 接待员查询房间列表
- PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error)
- // 用户查询房间列表
- UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error)
- // websocket调用
- Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error)
- // 查询聊天记录
- FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
- // 房间信息
- FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
- // 拉黑
- SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 删除房间
- DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 拉黑
- Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 房间信息
- FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error)
- // 获取假弹窗
- GetWindowInfo(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*WindowInfo, error)
- // 随机匹配
- GetRandomMatching(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*GetRandomMatchingReply, error)
- // 随机匹配接待员
- GetMatchingPartnerInfo(ctx context.Context, in *GetMatchingPartnerInfoRequest, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error)
- // 精确匹配用户
- AccurateMatchingUserInfo(ctx context.Context, in *AccurateMatchingUserInfoRequest, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error)
- // 接待员收藏某条记录
- PartnerCollect(ctx context.Context, in *PartnerCollectIDsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 接待员取消收藏某条记录
- PartnerDeleteCollect(ctx context.Context, in *PartnerCollectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 查询接待员在本房间的收藏列表
- FindChatCollectList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
- // 用户解锁语音
- UserUnlockVoice(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 用户解锁图片
- UserUnlockPicture(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 获取房间的接待员收益
- GetRoomProfit(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*GetRoomProfitReply, error)
- // 获取在线人数
- GetOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetOnlinePersonNumReply, error)
- // 查询用户全部的未读数
- FindUserAllUnreadNum(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*UnreadNumReply, error)
- // 用户查询与某人的房间
- GetUserRoomByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserRoomInfo, error)
- // 用户查询对某人是否是超级喜欢
- GetSuperLoveByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserSuperLoveInfo, error)
- // 管理员查询房间列表
- ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error)
- // 管理员查询聊天记录
- ManagerFindChatRecordList(ctx context.Context, in *common.ManagerFindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
- // 管理员查询举报列表
- ManagerFindReportList(ctx context.Context, in *common.ManagerFindReportListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportListReply, error)
- // 管理员查询某个举报者的举报详情列表
- ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error)
- // 发送消息
- SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*common.SendMessageReply, error)
- // 小纸条创建房间
- ScripCreateRoom(ctx context.Context, in *ScripCreateRoomRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error)
- // 清除用户的未读数
- CleanUserUnReadNum(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
- }
- type chatClient struct {
- cc grpc.ClientConnInterface
- }
- func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
- return &chatClient{cc}
- }
- func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
- out := new(CheckUserPartnerIsRelationshipReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) {
- out := new(RoomReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateChatRoom", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
- out := new(common.RecommendPersonListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOnlinePersonList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
- out := new(common.RecommendPersonListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendPersonList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) {
- out := new(PartnerFindRoomListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerFindRoomList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) {
- out := new(UserFindRoomListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/UserFindRoomList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) {
- out := new(ReceiveReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/Receive", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
- out := new(common.ChatRecordListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRecordList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
- out := new(common.ChatRoomMsg)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRoomMsg", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/SetBlackChat", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteChat", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) {
- out := new(common.RoomChatMsg)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRoomCardMsg", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetWindowInfo(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*WindowInfo, error) {
- out := new(WindowInfo)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetWindowInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetRandomMatching(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*GetRandomMatchingReply, error) {
- out := new(GetRandomMatchingReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetRandomMatching", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetMatchingPartnerInfo(ctx context.Context, in *GetMatchingPartnerInfoRequest, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error) {
- out := new(common.GetMatchingPartnerInfoReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetMatchingPartnerInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) AccurateMatchingUserInfo(ctx context.Context, in *AccurateMatchingUserInfoRequest, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error) {
- out := new(common.GetMatchingPartnerInfoReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/AccurateMatchingUserInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) PartnerCollect(ctx context.Context, in *PartnerCollectIDsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerCollect", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) PartnerDeleteCollect(ctx context.Context, in *PartnerCollectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerDeleteCollect", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindChatCollectList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
- out := new(common.ChatRecordListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatCollectList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) UserUnlockVoice(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/UserUnlockVoice", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) UserUnlockPicture(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/UserUnlockPicture", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetRoomProfit(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*GetRoomProfitReply, error) {
- out := new(GetRoomProfitReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetRoomProfit", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetOnlinePersonNumReply, error) {
- out := new(GetOnlinePersonNumReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetOnlinePersonNum", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindUserAllUnreadNum(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*UnreadNumReply, error) {
- out := new(UnreadNumReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindUserAllUnreadNum", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetUserRoomByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserRoomInfo, error) {
- out := new(UserRoomInfo)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetUserRoomByPerson", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) GetSuperLoveByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserSuperLoveInfo, error) {
- out := new(UserSuperLoveInfo)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/GetSuperLoveByPerson", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error) {
- out := new(common.ManagerFindRoomListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/ManagerFindRoomList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) ManagerFindChatRecordList(ctx context.Context, in *common.ManagerFindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
- out := new(common.ChatRecordListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/ManagerFindChatRecordList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) ManagerFindReportList(ctx context.Context, in *common.ManagerFindReportListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportListReply, error) {
- out := new(common.ManagerFindReportListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/ManagerFindReportList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error) {
- out := new(common.ManagerFindReportDetailsListReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/ManagerFindReportDetailsList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*common.SendMessageReply, error) {
- out := new(common.SendMessageReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/SendMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) ScripCreateRoom(ctx context.Context, in *ScripCreateRoomRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error) {
- out := new(common.ChatRecordInfo)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/ScripCreateRoom", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) CleanUserUnReadNum(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/CleanUserUnReadNum", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // ChatServer is the server API for Chat service.
- // All implementations must embed UnimplementedChatServer
- // for forward compatibility
- type ChatServer interface {
- // 检查用户是否与接待员聊天
- CheckUserPartnerIsRelationship(context.Context, *common.UserIDsParam) (*CheckUserPartnerIsRelationshipReply, error)
- // 创建聊天房间
- CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error)
- // 查询在线人的列表
- FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error)
- // 查询推荐人的列表
- FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
- // 接待员查询房间列表
- PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error)
- // 用户查询房间列表
- UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error)
- // websocket调用
- Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error)
- // 查询聊天记录
- FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
- // 房间信息
- FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
- // 拉黑
- SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
- // 删除房间
- DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
- // 拉黑
- Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error)
- // 房间信息
- FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error)
- // 获取假弹窗
- GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error)
- // 随机匹配
- GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error)
- // 随机匹配接待员
- GetMatchingPartnerInfo(context.Context, *GetMatchingPartnerInfoRequest) (*common.GetMatchingPartnerInfoReply, error)
- // 精确匹配用户
- AccurateMatchingUserInfo(context.Context, *AccurateMatchingUserInfoRequest) (*common.GetMatchingPartnerInfoReply, error)
- // 接待员收藏某条记录
- PartnerCollect(context.Context, *PartnerCollectIDsRequest) (*emptypb.Empty, error)
- // 接待员取消收藏某条记录
- PartnerDeleteCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error)
- // 查询接待员在本房间的收藏列表
- FindChatCollectList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
- // 用户解锁语音
- UserUnlockVoice(context.Context, *UserUnlockRequest) (*emptypb.Empty, error)
- // 用户解锁图片
- UserUnlockPicture(context.Context, *UserUnlockRequest) (*emptypb.Empty, error)
- // 获取房间的接待员收益
- GetRoomProfit(context.Context, *common.RoomIDRequest) (*GetRoomProfitReply, error)
- // 获取在线人数
- GetOnlinePersonNum(context.Context, *emptypb.Empty) (*GetOnlinePersonNumReply, error)
- // 查询用户全部的未读数
- FindUserAllUnreadNum(context.Context, *common.PersonIDParam) (*UnreadNumReply, error)
- // 用户查询与某人的房间
- GetUserRoomByPerson(context.Context, *common.UserIDsParam) (*UserRoomInfo, error)
- // 用户查询对某人是否是超级喜欢
- GetSuperLoveByPerson(context.Context, *common.UserIDsParam) (*UserSuperLoveInfo, error)
- // 管理员查询房间列表
- ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error)
- // 管理员查询聊天记录
- ManagerFindChatRecordList(context.Context, *common.ManagerFindChatRecordListRequest) (*common.ChatRecordListReply, error)
- // 管理员查询举报列表
- ManagerFindReportList(context.Context, *common.ManagerFindReportListRequest) (*common.ManagerFindReportListReply, error)
- // 管理员查询某个举报者的举报详情列表
- ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error)
- // 发送消息
- SendMessage(context.Context, *SendMessageRequest) (*common.SendMessageReply, error)
- // 小纸条创建房间
- ScripCreateRoom(context.Context, *ScripCreateRoomRequest) (*common.ChatRecordInfo, error)
- // 清除用户的未读数
- CleanUserUnReadNum(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
- mustEmbedUnimplementedChatServer()
- }
- // UnimplementedChatServer must be embedded to have forward compatible implementations.
- type UnimplementedChatServer struct {
- }
- func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserIDsParam) (*CheckUserPartnerIsRelationshipReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
- }
- func (UnimplementedChatServer) CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateChatRoom not implemented")
- }
- func (UnimplementedChatServer) FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonList not implemented")
- }
- func (UnimplementedChatServer) FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented")
- }
- func (UnimplementedChatServer) PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PartnerFindRoomList not implemented")
- }
- func (UnimplementedChatServer) UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserFindRoomList not implemented")
- }
- func (UnimplementedChatServer) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Receive not implemented")
- }
- func (UnimplementedChatServer) FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
- }
- func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
- }
- func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented")
- }
- func (UnimplementedChatServer) DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteChat not implemented")
- }
- func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
- }
- func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented")
- }
- func (UnimplementedChatServer) GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetWindowInfo not implemented")
- }
- func (UnimplementedChatServer) GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetRandomMatching not implemented")
- }
- func (UnimplementedChatServer) GetMatchingPartnerInfo(context.Context, *GetMatchingPartnerInfoRequest) (*common.GetMatchingPartnerInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetMatchingPartnerInfo not implemented")
- }
- func (UnimplementedChatServer) AccurateMatchingUserInfo(context.Context, *AccurateMatchingUserInfoRequest) (*common.GetMatchingPartnerInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method AccurateMatchingUserInfo not implemented")
- }
- func (UnimplementedChatServer) PartnerCollect(context.Context, *PartnerCollectIDsRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PartnerCollect not implemented")
- }
- func (UnimplementedChatServer) PartnerDeleteCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PartnerDeleteCollect not implemented")
- }
- func (UnimplementedChatServer) FindChatCollectList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindChatCollectList not implemented")
- }
- func (UnimplementedChatServer) UserUnlockVoice(context.Context, *UserUnlockRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserUnlockVoice not implemented")
- }
- func (UnimplementedChatServer) UserUnlockPicture(context.Context, *UserUnlockRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserUnlockPicture not implemented")
- }
- func (UnimplementedChatServer) GetRoomProfit(context.Context, *common.RoomIDRequest) (*GetRoomProfitReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetRoomProfit not implemented")
- }
- func (UnimplementedChatServer) GetOnlinePersonNum(context.Context, *emptypb.Empty) (*GetOnlinePersonNumReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetOnlinePersonNum not implemented")
- }
- func (UnimplementedChatServer) FindUserAllUnreadNum(context.Context, *common.PersonIDParam) (*UnreadNumReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindUserAllUnreadNum not implemented")
- }
- func (UnimplementedChatServer) GetUserRoomByPerson(context.Context, *common.UserIDsParam) (*UserRoomInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserRoomByPerson not implemented")
- }
- func (UnimplementedChatServer) GetSuperLoveByPerson(context.Context, *common.UserIDsParam) (*UserSuperLoveInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetSuperLoveByPerson not implemented")
- }
- func (UnimplementedChatServer) ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindRoomList not implemented")
- }
- func (UnimplementedChatServer) ManagerFindChatRecordList(context.Context, *common.ManagerFindChatRecordListRequest) (*common.ChatRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindChatRecordList not implemented")
- }
- func (UnimplementedChatServer) ManagerFindReportList(context.Context, *common.ManagerFindReportListRequest) (*common.ManagerFindReportListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportList not implemented")
- }
- func (UnimplementedChatServer) ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportDetailsList not implemented")
- }
- func (UnimplementedChatServer) SendMessage(context.Context, *SendMessageRequest) (*common.SendMessageReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SendMessage not implemented")
- }
- func (UnimplementedChatServer) ScripCreateRoom(context.Context, *ScripCreateRoomRequest) (*common.ChatRecordInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ScripCreateRoom not implemented")
- }
- func (UnimplementedChatServer) CleanUserUnReadNum(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CleanUserUnReadNum not implemented")
- }
- func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
- // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to ChatServer will
- // result in compilation errors.
- type UnsafeChatServer interface {
- mustEmbedUnimplementedChatServer()
- }
- func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
- s.RegisterService(&Chat_ServiceDesc, srv)
- }
- func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.UserIDsParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserIDsParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_CreateChatRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateChatRoomParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).CreateChatRoom(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/CreateChatRoom",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).CreateChatRoom(ctx, req.(*CreateChatRoomParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindOnlinePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ListPageAndPersonRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindOnlinePersonList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindOnlinePersonList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindOnlinePersonList(ctx, req.(*common.ListPageAndPersonRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindRecommendPersonListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindRecommendPersonList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindRecommendPersonList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindRecommendPersonList(ctx, req.(*FindRecommendPersonListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_PartnerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PartnerFindRoomListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PartnerFindRoomList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PartnerFindRoomList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PartnerFindRoomList(ctx, req.(*PartnerFindRoomListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_UserFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserFindRoomListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).UserFindRoomList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/UserFindRoomList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).UserFindRoomList(ctx, req.(*UserFindRoomListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_Receive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReceiveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).Receive(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/Receive",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).Receive(ctx, req.(*ReceiveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindChatRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindChatRecordList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindChatRecordList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindChatRecordList(ctx, req.(*FindChatRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindChatRoomMsgRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindChatRoomMsg(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindChatRoomMsg",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindChatRoomMsg(ctx, req.(*FindChatRoomMsgRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetBlackChatParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).SetBlackChat(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/SetBlackChat",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).SetBlackChat(ctx, req.(*SetBlackChatParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_DeleteChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetBlackChatParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).DeleteChat(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/DeleteChat",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).DeleteChat(ctx, req.(*SetBlackChatParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ReportRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).Report(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/Report",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindRoomCardMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindRoomCardMsgRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindRoomCardMsg(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindRoomCardMsg",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindRoomCardMsg(ctx, req.(*FindRoomCardMsgRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.MatchingRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetWindowInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetWindowInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetWindowInfo(ctx, req.(*common.MatchingRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetRandomMatching_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.MatchingRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetRandomMatching(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetRandomMatching",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetRandomMatching(ctx, req.(*common.MatchingRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetMatchingPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetMatchingPartnerInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetMatchingPartnerInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetMatchingPartnerInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetMatchingPartnerInfo(ctx, req.(*GetMatchingPartnerInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_AccurateMatchingUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AccurateMatchingUserInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).AccurateMatchingUserInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/AccurateMatchingUserInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).AccurateMatchingUserInfo(ctx, req.(*AccurateMatchingUserInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_PartnerCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PartnerCollectIDsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PartnerCollect(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PartnerCollect",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PartnerCollect(ctx, req.(*PartnerCollectIDsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_PartnerDeleteCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PartnerCollectRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PartnerDeleteCollect(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PartnerDeleteCollect",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PartnerDeleteCollect(ctx, req.(*PartnerCollectRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindChatCollectList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindChatRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindChatCollectList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindChatCollectList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindChatCollectList(ctx, req.(*FindChatRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_UserUnlockVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserUnlockRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).UserUnlockVoice(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/UserUnlockVoice",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).UserUnlockVoice(ctx, req.(*UserUnlockRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_UserUnlockPicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserUnlockRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).UserUnlockPicture(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/UserUnlockPicture",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).UserUnlockPicture(ctx, req.(*UserUnlockRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetRoomProfit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.RoomIDRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetRoomProfit(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetRoomProfit",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetRoomProfit(ctx, req.(*common.RoomIDRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetOnlinePersonNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(emptypb.Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetOnlinePersonNum(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetOnlinePersonNum",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetOnlinePersonNum(ctx, req.(*emptypb.Empty))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindUserAllUnreadNum_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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindUserAllUnreadNum(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindUserAllUnreadNum",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindUserAllUnreadNum(ctx, req.(*common.PersonIDParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetUserRoomByPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.UserIDsParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetUserRoomByPerson(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetUserRoomByPerson",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetUserRoomByPerson(ctx, req.(*common.UserIDsParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_GetSuperLoveByPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.UserIDsParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).GetSuperLoveByPerson(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/GetSuperLoveByPerson",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).GetSuperLoveByPerson(ctx, req.(*common.UserIDsParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_ManagerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindRoomListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).ManagerFindRoomList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/ManagerFindRoomList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).ManagerFindRoomList(ctx, req.(*common.ManagerFindRoomListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_ManagerFindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindChatRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).ManagerFindChatRecordList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/ManagerFindChatRecordList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).ManagerFindChatRecordList(ctx, req.(*common.ManagerFindChatRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_ManagerFindReportList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindReportListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).ManagerFindReportList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/ManagerFindReportList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).ManagerFindReportList(ctx, req.(*common.ManagerFindReportListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_ManagerFindReportDetailsList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindReportDetailsListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).ManagerFindReportDetailsList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/ManagerFindReportDetailsList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).ManagerFindReportDetailsList(ctx, req.(*common.ManagerFindReportDetailsListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_SendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SendMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).SendMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/SendMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).SendMessage(ctx, req.(*SendMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_ScripCreateRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ScripCreateRoomRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).ScripCreateRoom(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/ScripCreateRoom",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).ScripCreateRoom(ctx, req.(*ScripCreateRoomRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_CleanUserUnReadNum_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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).CleanUserUnReadNum(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/CleanUserUnReadNum",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).CleanUserUnReadNum(ctx, req.(*common.PersonIDParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var Chat_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "api.chat.Chat",
- HandlerType: (*ChatServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CheckUserPartnerIsRelationship",
- Handler: _Chat_CheckUserPartnerIsRelationship_Handler,
- },
- {
- MethodName: "CreateChatRoom",
- Handler: _Chat_CreateChatRoom_Handler,
- },
- {
- MethodName: "FindOnlinePersonList",
- Handler: _Chat_FindOnlinePersonList_Handler,
- },
- {
- MethodName: "FindRecommendPersonList",
- Handler: _Chat_FindRecommendPersonList_Handler,
- },
- {
- MethodName: "PartnerFindRoomList",
- Handler: _Chat_PartnerFindRoomList_Handler,
- },
- {
- MethodName: "UserFindRoomList",
- Handler: _Chat_UserFindRoomList_Handler,
- },
- {
- MethodName: "Receive",
- Handler: _Chat_Receive_Handler,
- },
- {
- MethodName: "FindChatRecordList",
- Handler: _Chat_FindChatRecordList_Handler,
- },
- {
- MethodName: "FindChatRoomMsg",
- Handler: _Chat_FindChatRoomMsg_Handler,
- },
- {
- MethodName: "SetBlackChat",
- Handler: _Chat_SetBlackChat_Handler,
- },
- {
- MethodName: "DeleteChat",
- Handler: _Chat_DeleteChat_Handler,
- },
- {
- MethodName: "Report",
- Handler: _Chat_Report_Handler,
- },
- {
- MethodName: "FindRoomCardMsg",
- Handler: _Chat_FindRoomCardMsg_Handler,
- },
- {
- MethodName: "GetWindowInfo",
- Handler: _Chat_GetWindowInfo_Handler,
- },
- {
- MethodName: "GetRandomMatching",
- Handler: _Chat_GetRandomMatching_Handler,
- },
- {
- MethodName: "GetMatchingPartnerInfo",
- Handler: _Chat_GetMatchingPartnerInfo_Handler,
- },
- {
- MethodName: "AccurateMatchingUserInfo",
- Handler: _Chat_AccurateMatchingUserInfo_Handler,
- },
- {
- MethodName: "PartnerCollect",
- Handler: _Chat_PartnerCollect_Handler,
- },
- {
- MethodName: "PartnerDeleteCollect",
- Handler: _Chat_PartnerDeleteCollect_Handler,
- },
- {
- MethodName: "FindChatCollectList",
- Handler: _Chat_FindChatCollectList_Handler,
- },
- {
- MethodName: "UserUnlockVoice",
- Handler: _Chat_UserUnlockVoice_Handler,
- },
- {
- MethodName: "UserUnlockPicture",
- Handler: _Chat_UserUnlockPicture_Handler,
- },
- {
- MethodName: "GetRoomProfit",
- Handler: _Chat_GetRoomProfit_Handler,
- },
- {
- MethodName: "GetOnlinePersonNum",
- Handler: _Chat_GetOnlinePersonNum_Handler,
- },
- {
- MethodName: "FindUserAllUnreadNum",
- Handler: _Chat_FindUserAllUnreadNum_Handler,
- },
- {
- MethodName: "GetUserRoomByPerson",
- Handler: _Chat_GetUserRoomByPerson_Handler,
- },
- {
- MethodName: "GetSuperLoveByPerson",
- Handler: _Chat_GetSuperLoveByPerson_Handler,
- },
- {
- MethodName: "ManagerFindRoomList",
- Handler: _Chat_ManagerFindRoomList_Handler,
- },
- {
- MethodName: "ManagerFindChatRecordList",
- Handler: _Chat_ManagerFindChatRecordList_Handler,
- },
- {
- MethodName: "ManagerFindReportList",
- Handler: _Chat_ManagerFindReportList_Handler,
- },
- {
- MethodName: "ManagerFindReportDetailsList",
- Handler: _Chat_ManagerFindReportDetailsList_Handler,
- },
- {
- MethodName: "SendMessage",
- Handler: _Chat_SendMessage_Handler,
- },
- {
- MethodName: "ScripCreateRoom",
- Handler: _Chat_ScripCreateRoom_Handler,
- },
- {
- MethodName: "CleanUserUnReadNum",
- Handler: _Chat_CleanUserUnReadNum_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "chat.proto",
- }
|