chat_grpc.pb.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package chat
  3. import (
  4. context "context"
  5. common "git.ikuban.com/server/pw-protobuf/api/common"
  6. grpc "google.golang.org/grpc"
  7. codes "google.golang.org/grpc/codes"
  8. status "google.golang.org/grpc/status"
  9. emptypb "google.golang.org/protobuf/types/known/emptypb"
  10. )
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the grpc package it is being compiled against.
  13. // Requires gRPC-Go v1.32.0 or later.
  14. const _ = grpc.SupportPackageIsVersion7
  15. // ChatClient is the client API for Chat service.
  16. //
  17. // 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.
  18. type ChatClient interface {
  19. // 检查用户是否与接待员聊天
  20. CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error)
  21. // 创建聊天房间
  22. CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error)
  23. // 查询在线人的列表
  24. FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
  25. // 查询推荐人的列表
  26. FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
  27. // 接待员查询房间列表
  28. PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error)
  29. // 用户查询房间列表
  30. UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error)
  31. Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error)
  32. // 查询聊天记录
  33. FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
  34. // 房间信息
  35. FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
  36. // 拉黑
  37. SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  38. // 删除房间
  39. DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. // 拉黑
  41. Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  42. // 接待员领取开通奖励
  43. PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error)
  44. // 房间信息
  45. FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error)
  46. // 查询未处理的数据
  47. FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error)
  48. // 创建纸条
  49. CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error)
  50. // 删除纸条
  51. DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  52. // 查询自己的小纸条
  53. FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
  54. // 查询随机纸条列表
  55. FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
  56. // 用户查看纸条
  57. PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  58. // 用户点击回看
  59. PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error)
  60. }
  61. type chatClient struct {
  62. cc grpc.ClientConnInterface
  63. }
  64. func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
  65. return &chatClient{cc}
  66. }
  67. func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
  68. out := new(CheckUserPartnerIsRelationshipReply)
  69. err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
  70. if err != nil {
  71. return nil, err
  72. }
  73. return out, nil
  74. }
  75. func (c *chatClient) CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) {
  76. out := new(RoomReply)
  77. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateChatRoom", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *chatClient) FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  84. out := new(common.RecommendPersonListReply)
  85. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOnlinePersonList", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *chatClient) FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  92. out := new(common.RecommendPersonListReply)
  93. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendPersonList", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *chatClient) PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) {
  100. out := new(PartnerFindRoomListReply)
  101. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerFindRoomList", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *chatClient) UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) {
  108. out := new(UserFindRoomListReply)
  109. err := c.cc.Invoke(ctx, "/api.chat.Chat/UserFindRoomList", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *chatClient) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) {
  116. out := new(ReceiveReply)
  117. err := c.cc.Invoke(ctx, "/api.chat.Chat/Receive", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *chatClient) FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  124. out := new(common.ChatRecordListReply)
  125. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRecordList", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *chatClient) FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  132. out := new(common.ChatRoomMsg)
  133. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRoomMsg", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  140. out := new(emptypb.Empty)
  141. err := c.cc.Invoke(ctx, "/api.chat.Chat/SetBlackChat", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. func (c *chatClient) DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  148. out := new(emptypb.Empty)
  149. err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteChat", in, out, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  156. out := new(emptypb.Empty)
  157. err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *chatClient) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) {
  164. out := new(PartnerGetAwardReply)
  165. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerGetAward", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. func (c *chatClient) FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) {
  172. out := new(common.RoomChatMsg)
  173. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRoomCardMsg", in, out, opts...)
  174. if err != nil {
  175. return nil, err
  176. }
  177. return out, nil
  178. }
  179. func (c *chatClient) FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error) {
  180. out := new(FindNotReplyNumReply)
  181. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindNotReplyNum", in, out, opts...)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return out, nil
  186. }
  187. func (c *chatClient) CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error) {
  188. out := new(common.ScripID)
  189. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateScrip", in, out, opts...)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return out, nil
  194. }
  195. func (c *chatClient) DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  196. out := new(emptypb.Empty)
  197. err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteScrip", in, out, opts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. func (c *chatClient) FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  204. out := new(common.ScripReply)
  205. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindMyScrip", in, out, opts...)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return out, nil
  210. }
  211. func (c *chatClient) FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  212. out := new(common.ScripReply)
  213. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendScrip", in, out, opts...)
  214. if err != nil {
  215. return nil, err
  216. }
  217. return out, nil
  218. }
  219. func (c *chatClient) PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  220. out := new(emptypb.Empty)
  221. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonLookScrip", in, out, opts...)
  222. if err != nil {
  223. return nil, err
  224. }
  225. return out, nil
  226. }
  227. func (c *chatClient) PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error) {
  228. out := new(common.ScripInfo)
  229. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonClickLookBack", in, out, opts...)
  230. if err != nil {
  231. return nil, err
  232. }
  233. return out, nil
  234. }
  235. // ChatServer is the server API for Chat service.
  236. // All implementations must embed UnimplementedChatServer
  237. // for forward compatibility
  238. type ChatServer interface {
  239. // 检查用户是否与接待员聊天
  240. CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error)
  241. // 创建聊天房间
  242. CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error)
  243. // 查询在线人的列表
  244. FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error)
  245. // 查询推荐人的列表
  246. FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
  247. // 接待员查询房间列表
  248. PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error)
  249. // 用户查询房间列表
  250. UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error)
  251. Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error)
  252. // 查询聊天记录
  253. FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  254. // 房间信息
  255. FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  256. // 拉黑
  257. SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  258. // 删除房间
  259. DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  260. // 拉黑
  261. Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error)
  262. // 接待员领取开通奖励
  263. PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error)
  264. // 房间信息
  265. FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error)
  266. // 查询未处理的数据
  267. FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error)
  268. // 创建纸条
  269. CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error)
  270. // 删除纸条
  271. DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error)
  272. // 查询自己的小纸条
  273. FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  274. // 查询随机纸条列表
  275. FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  276. // 用户查看纸条
  277. PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error)
  278. // 用户点击回看
  279. PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error)
  280. mustEmbedUnimplementedChatServer()
  281. }
  282. // UnimplementedChatServer must be embedded to have forward compatible implementations.
  283. type UnimplementedChatServer struct {
  284. }
  285. func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error) {
  286. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  287. }
  288. func (UnimplementedChatServer) CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) {
  289. return nil, status.Errorf(codes.Unimplemented, "method CreateChatRoom not implemented")
  290. }
  291. func (UnimplementedChatServer) FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) {
  292. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonList not implemented")
  293. }
  294. func (UnimplementedChatServer) FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) {
  295. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented")
  296. }
  297. func (UnimplementedChatServer) PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) {
  298. return nil, status.Errorf(codes.Unimplemented, "method PartnerFindRoomList not implemented")
  299. }
  300. func (UnimplementedChatServer) UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) {
  301. return nil, status.Errorf(codes.Unimplemented, "method UserFindRoomList not implemented")
  302. }
  303. func (UnimplementedChatServer) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) {
  304. return nil, status.Errorf(codes.Unimplemented, "method Receive not implemented")
  305. }
  306. func (UnimplementedChatServer) FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  307. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  308. }
  309. func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  310. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  311. }
  312. func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  313. return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented")
  314. }
  315. func (UnimplementedChatServer) DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  316. return nil, status.Errorf(codes.Unimplemented, "method DeleteChat not implemented")
  317. }
  318. func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) {
  319. return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
  320. }
  321. func (UnimplementedChatServer) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) {
  322. return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented")
  323. }
  324. func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) {
  325. return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented")
  326. }
  327. func (UnimplementedChatServer) FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error) {
  328. return nil, status.Errorf(codes.Unimplemented, "method FindNotReplyNum not implemented")
  329. }
  330. func (UnimplementedChatServer) CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error) {
  331. return nil, status.Errorf(codes.Unimplemented, "method CreateScrip not implemented")
  332. }
  333. func (UnimplementedChatServer) DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error) {
  334. return nil, status.Errorf(codes.Unimplemented, "method DeleteScrip not implemented")
  335. }
  336. func (UnimplementedChatServer) FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
  337. return nil, status.Errorf(codes.Unimplemented, "method FindMyScrip not implemented")
  338. }
  339. func (UnimplementedChatServer) FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
  340. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendScrip not implemented")
  341. }
  342. func (UnimplementedChatServer) PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error) {
  343. return nil, status.Errorf(codes.Unimplemented, "method PersonLookScrip not implemented")
  344. }
  345. func (UnimplementedChatServer) PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error) {
  346. return nil, status.Errorf(codes.Unimplemented, "method PersonClickLookBack not implemented")
  347. }
  348. func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
  349. // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
  350. // Use of this interface is not recommended, as added methods to ChatServer will
  351. // result in compilation errors.
  352. type UnsafeChatServer interface {
  353. mustEmbedUnimplementedChatServer()
  354. }
  355. func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
  356. s.RegisterService(&Chat_ServiceDesc, srv)
  357. }
  358. func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  359. in := new(common.UserAndPartnerIdentifyIdParam)
  360. if err := dec(in); err != nil {
  361. return nil, err
  362. }
  363. if interceptor == nil {
  364. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in)
  365. }
  366. info := &grpc.UnaryServerInfo{
  367. Server: srv,
  368. FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
  369. }
  370. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  371. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdentifyIdParam))
  372. }
  373. return interceptor(ctx, in, info, handler)
  374. }
  375. func _Chat_CreateChatRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  376. in := new(CreateChatRoomParam)
  377. if err := dec(in); err != nil {
  378. return nil, err
  379. }
  380. if interceptor == nil {
  381. return srv.(ChatServer).CreateChatRoom(ctx, in)
  382. }
  383. info := &grpc.UnaryServerInfo{
  384. Server: srv,
  385. FullMethod: "/api.chat.Chat/CreateChatRoom",
  386. }
  387. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  388. return srv.(ChatServer).CreateChatRoom(ctx, req.(*CreateChatRoomParam))
  389. }
  390. return interceptor(ctx, in, info, handler)
  391. }
  392. func _Chat_FindOnlinePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  393. in := new(common.ListPageAndPersonRequest)
  394. if err := dec(in); err != nil {
  395. return nil, err
  396. }
  397. if interceptor == nil {
  398. return srv.(ChatServer).FindOnlinePersonList(ctx, in)
  399. }
  400. info := &grpc.UnaryServerInfo{
  401. Server: srv,
  402. FullMethod: "/api.chat.Chat/FindOnlinePersonList",
  403. }
  404. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  405. return srv.(ChatServer).FindOnlinePersonList(ctx, req.(*common.ListPageAndPersonRequest))
  406. }
  407. return interceptor(ctx, in, info, handler)
  408. }
  409. func _Chat_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  410. in := new(FindRecommendPersonListRequest)
  411. if err := dec(in); err != nil {
  412. return nil, err
  413. }
  414. if interceptor == nil {
  415. return srv.(ChatServer).FindRecommendPersonList(ctx, in)
  416. }
  417. info := &grpc.UnaryServerInfo{
  418. Server: srv,
  419. FullMethod: "/api.chat.Chat/FindRecommendPersonList",
  420. }
  421. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  422. return srv.(ChatServer).FindRecommendPersonList(ctx, req.(*FindRecommendPersonListRequest))
  423. }
  424. return interceptor(ctx, in, info, handler)
  425. }
  426. func _Chat_PartnerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  427. in := new(PartnerFindRoomListRequest)
  428. if err := dec(in); err != nil {
  429. return nil, err
  430. }
  431. if interceptor == nil {
  432. return srv.(ChatServer).PartnerFindRoomList(ctx, in)
  433. }
  434. info := &grpc.UnaryServerInfo{
  435. Server: srv,
  436. FullMethod: "/api.chat.Chat/PartnerFindRoomList",
  437. }
  438. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  439. return srv.(ChatServer).PartnerFindRoomList(ctx, req.(*PartnerFindRoomListRequest))
  440. }
  441. return interceptor(ctx, in, info, handler)
  442. }
  443. func _Chat_UserFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  444. in := new(UserFindRoomListRequest)
  445. if err := dec(in); err != nil {
  446. return nil, err
  447. }
  448. if interceptor == nil {
  449. return srv.(ChatServer).UserFindRoomList(ctx, in)
  450. }
  451. info := &grpc.UnaryServerInfo{
  452. Server: srv,
  453. FullMethod: "/api.chat.Chat/UserFindRoomList",
  454. }
  455. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  456. return srv.(ChatServer).UserFindRoomList(ctx, req.(*UserFindRoomListRequest))
  457. }
  458. return interceptor(ctx, in, info, handler)
  459. }
  460. func _Chat_Receive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  461. in := new(ReceiveRequest)
  462. if err := dec(in); err != nil {
  463. return nil, err
  464. }
  465. if interceptor == nil {
  466. return srv.(ChatServer).Receive(ctx, in)
  467. }
  468. info := &grpc.UnaryServerInfo{
  469. Server: srv,
  470. FullMethod: "/api.chat.Chat/Receive",
  471. }
  472. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  473. return srv.(ChatServer).Receive(ctx, req.(*ReceiveRequest))
  474. }
  475. return interceptor(ctx, in, info, handler)
  476. }
  477. func _Chat_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  478. in := new(FindChatRecordListRequest)
  479. if err := dec(in); err != nil {
  480. return nil, err
  481. }
  482. if interceptor == nil {
  483. return srv.(ChatServer).FindChatRecordList(ctx, in)
  484. }
  485. info := &grpc.UnaryServerInfo{
  486. Server: srv,
  487. FullMethod: "/api.chat.Chat/FindChatRecordList",
  488. }
  489. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  490. return srv.(ChatServer).FindChatRecordList(ctx, req.(*FindChatRecordListRequest))
  491. }
  492. return interceptor(ctx, in, info, handler)
  493. }
  494. func _Chat_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  495. in := new(FindChatRoomMsgRequest)
  496. if err := dec(in); err != nil {
  497. return nil, err
  498. }
  499. if interceptor == nil {
  500. return srv.(ChatServer).FindChatRoomMsg(ctx, in)
  501. }
  502. info := &grpc.UnaryServerInfo{
  503. Server: srv,
  504. FullMethod: "/api.chat.Chat/FindChatRoomMsg",
  505. }
  506. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  507. return srv.(ChatServer).FindChatRoomMsg(ctx, req.(*FindChatRoomMsgRequest))
  508. }
  509. return interceptor(ctx, in, info, handler)
  510. }
  511. func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  512. in := new(SetBlackChatParam)
  513. if err := dec(in); err != nil {
  514. return nil, err
  515. }
  516. if interceptor == nil {
  517. return srv.(ChatServer).SetBlackChat(ctx, in)
  518. }
  519. info := &grpc.UnaryServerInfo{
  520. Server: srv,
  521. FullMethod: "/api.chat.Chat/SetBlackChat",
  522. }
  523. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  524. return srv.(ChatServer).SetBlackChat(ctx, req.(*SetBlackChatParam))
  525. }
  526. return interceptor(ctx, in, info, handler)
  527. }
  528. func _Chat_DeleteChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  529. in := new(SetBlackChatParam)
  530. if err := dec(in); err != nil {
  531. return nil, err
  532. }
  533. if interceptor == nil {
  534. return srv.(ChatServer).DeleteChat(ctx, in)
  535. }
  536. info := &grpc.UnaryServerInfo{
  537. Server: srv,
  538. FullMethod: "/api.chat.Chat/DeleteChat",
  539. }
  540. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  541. return srv.(ChatServer).DeleteChat(ctx, req.(*SetBlackChatParam))
  542. }
  543. return interceptor(ctx, in, info, handler)
  544. }
  545. func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  546. in := new(common.ReportRequest)
  547. if err := dec(in); err != nil {
  548. return nil, err
  549. }
  550. if interceptor == nil {
  551. return srv.(ChatServer).Report(ctx, in)
  552. }
  553. info := &grpc.UnaryServerInfo{
  554. Server: srv,
  555. FullMethod: "/api.chat.Chat/Report",
  556. }
  557. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  558. return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest))
  559. }
  560. return interceptor(ctx, in, info, handler)
  561. }
  562. func _Chat_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  563. in := new(PartnerGetAwardRequest)
  564. if err := dec(in); err != nil {
  565. return nil, err
  566. }
  567. if interceptor == nil {
  568. return srv.(ChatServer).PartnerGetAward(ctx, in)
  569. }
  570. info := &grpc.UnaryServerInfo{
  571. Server: srv,
  572. FullMethod: "/api.chat.Chat/PartnerGetAward",
  573. }
  574. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  575. return srv.(ChatServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
  576. }
  577. return interceptor(ctx, in, info, handler)
  578. }
  579. func _Chat_FindRoomCardMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  580. in := new(FindRoomCardMsgRequest)
  581. if err := dec(in); err != nil {
  582. return nil, err
  583. }
  584. if interceptor == nil {
  585. return srv.(ChatServer).FindRoomCardMsg(ctx, in)
  586. }
  587. info := &grpc.UnaryServerInfo{
  588. Server: srv,
  589. FullMethod: "/api.chat.Chat/FindRoomCardMsg",
  590. }
  591. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  592. return srv.(ChatServer).FindRoomCardMsg(ctx, req.(*FindRoomCardMsgRequest))
  593. }
  594. return interceptor(ctx, in, info, handler)
  595. }
  596. func _Chat_FindNotReplyNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  597. in := new(common.IdentifyIdRequest)
  598. if err := dec(in); err != nil {
  599. return nil, err
  600. }
  601. if interceptor == nil {
  602. return srv.(ChatServer).FindNotReplyNum(ctx, in)
  603. }
  604. info := &grpc.UnaryServerInfo{
  605. Server: srv,
  606. FullMethod: "/api.chat.Chat/FindNotReplyNum",
  607. }
  608. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  609. return srv.(ChatServer).FindNotReplyNum(ctx, req.(*common.IdentifyIdRequest))
  610. }
  611. return interceptor(ctx, in, info, handler)
  612. }
  613. func _Chat_CreateScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  614. in := new(common.CreateScripRequest)
  615. if err := dec(in); err != nil {
  616. return nil, err
  617. }
  618. if interceptor == nil {
  619. return srv.(ChatServer).CreateScrip(ctx, in)
  620. }
  621. info := &grpc.UnaryServerInfo{
  622. Server: srv,
  623. FullMethod: "/api.chat.Chat/CreateScrip",
  624. }
  625. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  626. return srv.(ChatServer).CreateScrip(ctx, req.(*common.CreateScripRequest))
  627. }
  628. return interceptor(ctx, in, info, handler)
  629. }
  630. func _Chat_DeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  631. in := new(common.DeleteScripRequest)
  632. if err := dec(in); err != nil {
  633. return nil, err
  634. }
  635. if interceptor == nil {
  636. return srv.(ChatServer).DeleteScrip(ctx, in)
  637. }
  638. info := &grpc.UnaryServerInfo{
  639. Server: srv,
  640. FullMethod: "/api.chat.Chat/DeleteScrip",
  641. }
  642. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  643. return srv.(ChatServer).DeleteScrip(ctx, req.(*common.DeleteScripRequest))
  644. }
  645. return interceptor(ctx, in, info, handler)
  646. }
  647. func _Chat_FindMyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  648. in := new(common.FindScripRequest)
  649. if err := dec(in); err != nil {
  650. return nil, err
  651. }
  652. if interceptor == nil {
  653. return srv.(ChatServer).FindMyScrip(ctx, in)
  654. }
  655. info := &grpc.UnaryServerInfo{
  656. Server: srv,
  657. FullMethod: "/api.chat.Chat/FindMyScrip",
  658. }
  659. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  660. return srv.(ChatServer).FindMyScrip(ctx, req.(*common.FindScripRequest))
  661. }
  662. return interceptor(ctx, in, info, handler)
  663. }
  664. func _Chat_FindRecommendScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  665. in := new(common.FindScripRequest)
  666. if err := dec(in); err != nil {
  667. return nil, err
  668. }
  669. if interceptor == nil {
  670. return srv.(ChatServer).FindRecommendScrip(ctx, in)
  671. }
  672. info := &grpc.UnaryServerInfo{
  673. Server: srv,
  674. FullMethod: "/api.chat.Chat/FindRecommendScrip",
  675. }
  676. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  677. return srv.(ChatServer).FindRecommendScrip(ctx, req.(*common.FindScripRequest))
  678. }
  679. return interceptor(ctx, in, info, handler)
  680. }
  681. func _Chat_PersonLookScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  682. in := new(common.PersonLookScripRequest)
  683. if err := dec(in); err != nil {
  684. return nil, err
  685. }
  686. if interceptor == nil {
  687. return srv.(ChatServer).PersonLookScrip(ctx, in)
  688. }
  689. info := &grpc.UnaryServerInfo{
  690. Server: srv,
  691. FullMethod: "/api.chat.Chat/PersonLookScrip",
  692. }
  693. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  694. return srv.(ChatServer).PersonLookScrip(ctx, req.(*common.PersonLookScripRequest))
  695. }
  696. return interceptor(ctx, in, info, handler)
  697. }
  698. func _Chat_PersonClickLookBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  699. in := new(common.PersonParam)
  700. if err := dec(in); err != nil {
  701. return nil, err
  702. }
  703. if interceptor == nil {
  704. return srv.(ChatServer).PersonClickLookBack(ctx, in)
  705. }
  706. info := &grpc.UnaryServerInfo{
  707. Server: srv,
  708. FullMethod: "/api.chat.Chat/PersonClickLookBack",
  709. }
  710. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  711. return srv.(ChatServer).PersonClickLookBack(ctx, req.(*common.PersonParam))
  712. }
  713. return interceptor(ctx, in, info, handler)
  714. }
  715. // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
  716. // It's only intended for direct use with grpc.RegisterService,
  717. // and not to be introspected or modified (even as a copy)
  718. var Chat_ServiceDesc = grpc.ServiceDesc{
  719. ServiceName: "api.chat.Chat",
  720. HandlerType: (*ChatServer)(nil),
  721. Methods: []grpc.MethodDesc{
  722. {
  723. MethodName: "CheckUserPartnerIsRelationship",
  724. Handler: _Chat_CheckUserPartnerIsRelationship_Handler,
  725. },
  726. {
  727. MethodName: "CreateChatRoom",
  728. Handler: _Chat_CreateChatRoom_Handler,
  729. },
  730. {
  731. MethodName: "FindOnlinePersonList",
  732. Handler: _Chat_FindOnlinePersonList_Handler,
  733. },
  734. {
  735. MethodName: "FindRecommendPersonList",
  736. Handler: _Chat_FindRecommendPersonList_Handler,
  737. },
  738. {
  739. MethodName: "PartnerFindRoomList",
  740. Handler: _Chat_PartnerFindRoomList_Handler,
  741. },
  742. {
  743. MethodName: "UserFindRoomList",
  744. Handler: _Chat_UserFindRoomList_Handler,
  745. },
  746. {
  747. MethodName: "Receive",
  748. Handler: _Chat_Receive_Handler,
  749. },
  750. {
  751. MethodName: "FindChatRecordList",
  752. Handler: _Chat_FindChatRecordList_Handler,
  753. },
  754. {
  755. MethodName: "FindChatRoomMsg",
  756. Handler: _Chat_FindChatRoomMsg_Handler,
  757. },
  758. {
  759. MethodName: "SetBlackChat",
  760. Handler: _Chat_SetBlackChat_Handler,
  761. },
  762. {
  763. MethodName: "DeleteChat",
  764. Handler: _Chat_DeleteChat_Handler,
  765. },
  766. {
  767. MethodName: "Report",
  768. Handler: _Chat_Report_Handler,
  769. },
  770. {
  771. MethodName: "PartnerGetAward",
  772. Handler: _Chat_PartnerGetAward_Handler,
  773. },
  774. {
  775. MethodName: "FindRoomCardMsg",
  776. Handler: _Chat_FindRoomCardMsg_Handler,
  777. },
  778. {
  779. MethodName: "FindNotReplyNum",
  780. Handler: _Chat_FindNotReplyNum_Handler,
  781. },
  782. {
  783. MethodName: "CreateScrip",
  784. Handler: _Chat_CreateScrip_Handler,
  785. },
  786. {
  787. MethodName: "DeleteScrip",
  788. Handler: _Chat_DeleteScrip_Handler,
  789. },
  790. {
  791. MethodName: "FindMyScrip",
  792. Handler: _Chat_FindMyScrip_Handler,
  793. },
  794. {
  795. MethodName: "FindRecommendScrip",
  796. Handler: _Chat_FindRecommendScrip_Handler,
  797. },
  798. {
  799. MethodName: "PersonLookScrip",
  800. Handler: _Chat_PersonLookScrip_Handler,
  801. },
  802. {
  803. MethodName: "PersonClickLookBack",
  804. Handler: _Chat_PersonClickLookBack_Handler,
  805. },
  806. },
  807. Streams: []grpc.StreamDesc{},
  808. Metadata: "chat.proto",
  809. }