| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v4.22.3
- // source: chat.proto
- 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
- const (
- Chat_CheckUserPartnerIsRelationship_FullMethodName = "/api.chat.Chat/CheckUserPartnerIsRelationship"
- Chat_CreateChatRoom_FullMethodName = "/api.chat.Chat/CreateChatRoom"
- Chat_FindOnlinePersonList_FullMethodName = "/api.chat.Chat/FindOnlinePersonList"
- Chat_FindRecommendPersonList_FullMethodName = "/api.chat.Chat/FindRecommendPersonList"
- Chat_PartnerFindRoomList_FullMethodName = "/api.chat.Chat/PartnerFindRoomList"
- Chat_UserFindRoomList_FullMethodName = "/api.chat.Chat/UserFindRoomList"
- Chat_Receive_FullMethodName = "/api.chat.Chat/Receive"
- Chat_FindChatRecordList_FullMethodName = "/api.chat.Chat/FindChatRecordList"
- Chat_FindChatRoomMsg_FullMethodName = "/api.chat.Chat/FindChatRoomMsg"
- Chat_SetBlackChat_FullMethodName = "/api.chat.Chat/SetBlackChat"
- Chat_DeleteChat_FullMethodName = "/api.chat.Chat/DeleteChat"
- Chat_Report_FullMethodName = "/api.chat.Chat/Report"
- Chat_FindRoomCardMsg_FullMethodName = "/api.chat.Chat/FindRoomCardMsg"
- Chat_GetWindowInfo_FullMethodName = "/api.chat.Chat/GetWindowInfo"
- Chat_GetRandomMatching_FullMethodName = "/api.chat.Chat/GetRandomMatching"
- Chat_GetMatchingPartnerInfo_FullMethodName = "/api.chat.Chat/GetMatchingPartnerInfo"
- Chat_AccurateMatchingUserInfo_FullMethodName = "/api.chat.Chat/AccurateMatchingUserInfo"
- Chat_PartnerCollect_FullMethodName = "/api.chat.Chat/PartnerCollect"
- Chat_PartnerDeleteCollect_FullMethodName = "/api.chat.Chat/PartnerDeleteCollect"
- Chat_FindChatCollectList_FullMethodName = "/api.chat.Chat/FindChatCollectList"
- Chat_UserUnlockVoice_FullMethodName = "/api.chat.Chat/UserUnlockVoice"
- Chat_UserUnlockPicture_FullMethodName = "/api.chat.Chat/UserUnlockPicture"
- Chat_GetRoomProfit_FullMethodName = "/api.chat.Chat/GetRoomProfit"
- Chat_GetOnlinePersonNum_FullMethodName = "/api.chat.Chat/GetOnlinePersonNum"
- Chat_FindUserAllUnreadNum_FullMethodName = "/api.chat.Chat/FindUserAllUnreadNum"
- Chat_GetUserRoomByPerson_FullMethodName = "/api.chat.Chat/GetUserRoomByPerson"
- Chat_GetSuperLoveByPerson_FullMethodName = "/api.chat.Chat/GetSuperLoveByPerson"
- Chat_ManagerFindRoomList_FullMethodName = "/api.chat.Chat/ManagerFindRoomList"
- Chat_ManagerFindChatRecordList_FullMethodName = "/api.chat.Chat/ManagerFindChatRecordList"
- Chat_ManagerFindReportList_FullMethodName = "/api.chat.Chat/ManagerFindReportList"
- Chat_ManagerFindReportDetailsList_FullMethodName = "/api.chat.Chat/ManagerFindReportDetailsList"
- Chat_SendMessage_FullMethodName = "/api.chat.Chat/SendMessage"
- Chat_ScripCreateRoom_FullMethodName = "/api.chat.Chat/ScripCreateRoom"
- Chat_CleanUserUnReadNum_FullMethodName = "/api.chat.Chat/CleanUserUnReadNum"
- )
- // 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, Chat_CheckUserPartnerIsRelationship_FullMethodName, 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, Chat_CreateChatRoom_FullMethodName, 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, Chat_FindOnlinePersonList_FullMethodName, 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, Chat_FindRecommendPersonList_FullMethodName, 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, Chat_PartnerFindRoomList_FullMethodName, 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, Chat_UserFindRoomList_FullMethodName, 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, Chat_Receive_FullMethodName, 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, Chat_FindChatRecordList_FullMethodName, 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, Chat_FindChatRoomMsg_FullMethodName, 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, Chat_SetBlackChat_FullMethodName, 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, Chat_DeleteChat_FullMethodName, 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, Chat_Report_FullMethodName, 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, Chat_FindRoomCardMsg_FullMethodName, 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, Chat_GetWindowInfo_FullMethodName, 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, Chat_GetRandomMatching_FullMethodName, 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, Chat_GetMatchingPartnerInfo_FullMethodName, 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, Chat_AccurateMatchingUserInfo_FullMethodName, 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, Chat_PartnerCollect_FullMethodName, 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, Chat_PartnerDeleteCollect_FullMethodName, 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, Chat_FindChatCollectList_FullMethodName, 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, Chat_UserUnlockVoice_FullMethodName, 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, Chat_UserUnlockPicture_FullMethodName, 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, Chat_GetRoomProfit_FullMethodName, 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, Chat_GetOnlinePersonNum_FullMethodName, 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, Chat_FindUserAllUnreadNum_FullMethodName, 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, Chat_GetUserRoomByPerson_FullMethodName, 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, Chat_GetSuperLoveByPerson_FullMethodName, 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, Chat_ManagerFindRoomList_FullMethodName, 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, Chat_ManagerFindChatRecordList_FullMethodName, 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, Chat_ManagerFindReportList_FullMethodName, 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, Chat_ManagerFindReportDetailsList_FullMethodName, 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, Chat_SendMessage_FullMethodName, 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, Chat_ScripCreateRoom_FullMethodName, 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, Chat_CleanUserUnReadNum_FullMethodName, 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: Chat_CheckUserPartnerIsRelationship_FullMethodName,
- }
- 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: Chat_CreateChatRoom_FullMethodName,
- }
- 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: Chat_FindOnlinePersonList_FullMethodName,
- }
- 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: Chat_FindRecommendPersonList_FullMethodName,
- }
- 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: Chat_PartnerFindRoomList_FullMethodName,
- }
- 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: Chat_UserFindRoomList_FullMethodName,
- }
- 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: Chat_Receive_FullMethodName,
- }
- 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: Chat_FindChatRecordList_FullMethodName,
- }
- 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: Chat_FindChatRoomMsg_FullMethodName,
- }
- 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: Chat_SetBlackChat_FullMethodName,
- }
- 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: Chat_DeleteChat_FullMethodName,
- }
- 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: Chat_Report_FullMethodName,
- }
- 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: Chat_FindRoomCardMsg_FullMethodName,
- }
- 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: Chat_GetWindowInfo_FullMethodName,
- }
- 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: Chat_GetRandomMatching_FullMethodName,
- }
- 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: Chat_GetMatchingPartnerInfo_FullMethodName,
- }
- 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: Chat_AccurateMatchingUserInfo_FullMethodName,
- }
- 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: Chat_PartnerCollect_FullMethodName,
- }
- 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: Chat_PartnerDeleteCollect_FullMethodName,
- }
- 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: Chat_FindChatCollectList_FullMethodName,
- }
- 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: Chat_UserUnlockVoice_FullMethodName,
- }
- 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: Chat_UserUnlockPicture_FullMethodName,
- }
- 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: Chat_GetRoomProfit_FullMethodName,
- }
- 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: Chat_GetOnlinePersonNum_FullMethodName,
- }
- 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: Chat_FindUserAllUnreadNum_FullMethodName,
- }
- 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: Chat_GetUserRoomByPerson_FullMethodName,
- }
- 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: Chat_GetSuperLoveByPerson_FullMethodName,
- }
- 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: Chat_ManagerFindRoomList_FullMethodName,
- }
- 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: Chat_ManagerFindChatRecordList_FullMethodName,
- }
- 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: Chat_ManagerFindReportList_FullMethodName,
- }
- 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: Chat_ManagerFindReportDetailsList_FullMethodName,
- }
- 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: Chat_SendMessage_FullMethodName,
- }
- 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: Chat_ScripCreateRoom_FullMethodName,
- }
- 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: Chat_CleanUserUnReadNum_FullMethodName,
- }
- 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",
- }
|