chat_grpc.pb.go 35 KB

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