| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243 |
- // 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.UserAndPartnerIdentifyIdParam, 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)
- 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)
- // 接待员领取开通奖励
- PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error)
- // 房间信息
- FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error)
- // 查询未处理的数据
- FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error)
- // 创建纸条
- CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error)
- // 删除纸条
- DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 查询自己的小纸条
- FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
- // 查询别人的小纸条
- FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
- // 查询随机纸条列表
- FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
- // 用户查看纸条
- PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 用户点击回看
- PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error)
- // 回复小纸条
- PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, 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 *common.SexReq, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error)
- // 接待员收藏某条记录
- PartnerCollect(ctx context.Context, in *PartnerCollectRequest, 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)
- }
- type chatClient struct {
- cc grpc.ClientConnInterface
- }
- func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
- return &chatClient{cc}
- }
- func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, 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) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) {
- out := new(PartnerGetAwardReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerGetAward", 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) FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error) {
- out := new(FindNotReplyNumReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindNotReplyNum", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error) {
- out := new(common.ScripID)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateScrip", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteScrip", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
- out := new(common.ScripReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindMyScrip", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
- out := new(common.ScripReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOtherScrip", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
- out := new(common.ScripReply)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendScrip", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonLookScrip", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error) {
- out := new(common.ScripInfo)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonClickLookBack", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *chatClient) PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error) {
- out := new(common.ChatRecordInfo)
- err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonReplyScrip", 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 *common.SexReq, 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) PartnerCollect(ctx context.Context, in *PartnerCollectRequest, 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
- }
- // ChatServer is the server API for Chat service.
- // All implementations must embed UnimplementedChatServer
- // for forward compatibility
- type ChatServer interface {
- // 检查用户是否与接待员聊天
- CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*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)
- 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)
- // 接待员领取开通奖励
- PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error)
- // 房间信息
- FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error)
- // 查询未处理的数据
- FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error)
- // 创建纸条
- CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error)
- // 删除纸条
- DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error)
- // 查询自己的小纸条
- FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
- // 查询别人的小纸条
- FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error)
- // 查询随机纸条列表
- FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
- // 用户查看纸条
- PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error)
- // 用户点击回看
- PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error)
- // 回复小纸条
- PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
- // 获取假弹窗
- GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error)
- // 随机匹配
- GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error)
- // 随机匹配接待员
- GetMatchingPartnerInfo(context.Context, *common.SexReq) (*common.GetMatchingPartnerInfoReply, error)
- // 接待员收藏某条记录
- PartnerCollect(context.Context, *PartnerCollectRequest) (*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)
- mustEmbedUnimplementedChatServer()
- }
- // UnimplementedChatServer must be embedded to have forward compatible implementations.
- type UnimplementedChatServer struct {
- }
- func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*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) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented")
- }
- func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented")
- }
- func (UnimplementedChatServer) FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindNotReplyNum not implemented")
- }
- func (UnimplementedChatServer) CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateScrip not implemented")
- }
- func (UnimplementedChatServer) DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteScrip not implemented")
- }
- func (UnimplementedChatServer) FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindMyScrip not implemented")
- }
- func (UnimplementedChatServer) FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindOtherScrip not implemented")
- }
- func (UnimplementedChatServer) FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindRecommendScrip not implemented")
- }
- func (UnimplementedChatServer) PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PersonLookScrip not implemented")
- }
- func (UnimplementedChatServer) PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PersonClickLookBack not implemented")
- }
- func (UnimplementedChatServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip 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, *common.SexReq) (*common.GetMatchingPartnerInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetMatchingPartnerInfo not implemented")
- }
- func (UnimplementedChatServer) PartnerCollect(context.Context, *PartnerCollectRequest) (*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) 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.UserAndPartnerIdentifyIdParam)
- 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.UserAndPartnerIdentifyIdParam))
- }
- 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_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PartnerGetAwardRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PartnerGetAward(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PartnerGetAward",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
- }
- 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_FindNotReplyNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.IdentifyIdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindNotReplyNum(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindNotReplyNum",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindNotReplyNum(ctx, req.(*common.IdentifyIdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_CreateScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.CreateScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).CreateScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/CreateScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).CreateScrip(ctx, req.(*common.CreateScripRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_DeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.DeleteScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).DeleteScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/DeleteScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).DeleteScrip(ctx, req.(*common.DeleteScripRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindMyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.FindScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindMyScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindMyScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindMyScrip(ctx, req.(*common.FindScripRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindOtherScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.FindOtherScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindOtherScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindOtherScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindOtherScrip(ctx, req.(*common.FindOtherScripRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_FindRecommendScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.FindScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).FindRecommendScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/FindRecommendScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).FindRecommendScrip(ctx, req.(*common.FindScripRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_PersonLookScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.PersonLookScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PersonLookScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PersonLookScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PersonLookScrip(ctx, req.(*common.PersonLookScripRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_PersonClickLookBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.PersonParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PersonClickLookBack(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PersonClickLookBack",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PersonClickLookBack(ctx, req.(*common.PersonParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Chat_PersonReplyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ReplyScripRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ChatServer).PersonReplyScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.chat.Chat/PersonReplyScrip",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ChatServer).PersonReplyScrip(ctx, req.(*common.ReplyScripRequest))
- }
- 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(common.SexReq)
- 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.(*common.SexReq))
- }
- 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(PartnerCollectRequest)
- 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.(*PartnerCollectRequest))
- }
- 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)
- }
- // 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: "PartnerGetAward",
- Handler: _Chat_PartnerGetAward_Handler,
- },
- {
- MethodName: "FindRoomCardMsg",
- Handler: _Chat_FindRoomCardMsg_Handler,
- },
- {
- MethodName: "FindNotReplyNum",
- Handler: _Chat_FindNotReplyNum_Handler,
- },
- {
- MethodName: "CreateScrip",
- Handler: _Chat_CreateScrip_Handler,
- },
- {
- MethodName: "DeleteScrip",
- Handler: _Chat_DeleteScrip_Handler,
- },
- {
- MethodName: "FindMyScrip",
- Handler: _Chat_FindMyScrip_Handler,
- },
- {
- MethodName: "FindOtherScrip",
- Handler: _Chat_FindOtherScrip_Handler,
- },
- {
- MethodName: "FindRecommendScrip",
- Handler: _Chat_FindRecommendScrip_Handler,
- },
- {
- MethodName: "PersonLookScrip",
- Handler: _Chat_PersonLookScrip_Handler,
- },
- {
- MethodName: "PersonClickLookBack",
- Handler: _Chat_PersonClickLookBack_Handler,
- },
- {
- MethodName: "PersonReplyScrip",
- Handler: _Chat_PersonReplyScrip_Handler,
- },
- {
- MethodName: "GetWindowInfo",
- Handler: _Chat_GetWindowInfo_Handler,
- },
- {
- MethodName: "GetRandomMatching",
- Handler: _Chat_GetRandomMatching_Handler,
- },
- {
- MethodName: "GetMatchingPartnerInfo",
- Handler: _Chat_GetMatchingPartnerInfo_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,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "chat.proto",
- }
|