account_grpc.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package account
  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. )
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the grpc package it is being compiled against.
  12. // Requires gRPC-Go v1.32.0 or later.
  13. const _ = grpc.SupportPackageIsVersion7
  14. // AccountClient is the client API for Account service.
  15. //
  16. // 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.
  17. type AccountClient interface {
  18. DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error)
  19. Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error)
  20. RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error)
  21. RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error)
  22. // 通过openID和appID查询
  23. GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
  24. // 通过type和PID查询
  25. GetIdentityByTypeAndPID(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*IdentityInfo, error)
  26. // 通过原公众号openID和appID查询
  27. GetIdentityByFromOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
  28. // 通过分组名和性别查询标签
  29. FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
  30. // 通过标签IDs查询标签
  31. FindTagsByIDs(ctx context.Context, in *common.Ids, opts ...grpc.CallOption) (*common.TagListReply, error)
  32. // 随机介绍接口
  33. RandomIntroduce(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.RandomIntroduceReply, error)
  34. // 通过微信下载语音并上传到七牛
  35. UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error)
  36. // 通过类型获取表情包列表
  37. FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error)
  38. // 获取聊天话题
  39. FindChatTopic(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error)
  40. // 随机表情包
  41. RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error)
  42. // 随机打招呼
  43. RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error)
  44. }
  45. type accountClient struct {
  46. cc grpc.ClientConnInterface
  47. }
  48. func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {
  49. return &accountClient{cc}
  50. }
  51. func (c *accountClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error) {
  52. out := new(TokenReply)
  53. err := c.cc.Invoke(ctx, "/api.account.Account/DebugLogin", in, out, opts...)
  54. if err != nil {
  55. return nil, err
  56. }
  57. return out, nil
  58. }
  59. func (c *accountClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {
  60. out := new(TokenReply)
  61. err := c.cc.Invoke(ctx, "/api.account.Account/Authorization", in, out, opts...)
  62. if err != nil {
  63. return nil, err
  64. }
  65. return out, nil
  66. }
  67. func (c *accountClient) RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error) {
  68. out := new(RandomNicknameReply)
  69. err := c.cc.Invoke(ctx, "/api.account.Account/RandomNickname", in, out, opts...)
  70. if err != nil {
  71. return nil, err
  72. }
  73. return out, nil
  74. }
  75. func (c *accountClient) RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error) {
  76. out := new(RandomAvatarReply)
  77. err := c.cc.Invoke(ctx, "/api.account.Account/RandomAvatar", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *accountClient) GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
  84. out := new(IdentityInfo)
  85. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenIDAndAppID", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *accountClient) GetIdentityByTypeAndPID(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*IdentityInfo, error) {
  92. out := new(IdentityInfo)
  93. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByTypeAndPID", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *accountClient) GetIdentityByFromOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
  100. out := new(IdentityInfo)
  101. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByFromOpenIDAndAppID", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *accountClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  108. out := new(common.TagListReply)
  109. err := c.cc.Invoke(ctx, "/api.account.Account/FindTagListBySex", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *accountClient) FindTagsByIDs(ctx context.Context, in *common.Ids, opts ...grpc.CallOption) (*common.TagListReply, error) {
  116. out := new(common.TagListReply)
  117. err := c.cc.Invoke(ctx, "/api.account.Account/FindTagsByIDs", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *accountClient) RandomIntroduce(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.RandomIntroduceReply, error) {
  124. out := new(common.RandomIntroduceReply)
  125. err := c.cc.Invoke(ctx, "/api.account.Account/RandomIntroduce", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *accountClient) UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error) {
  132. out := new(MaterialLink)
  133. err := c.cc.Invoke(ctx, "/api.account.Account/UploadMaterialVoice", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *accountClient) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error) {
  140. out := new(common.MemeList)
  141. err := c.cc.Invoke(ctx, "/api.account.Account/FindMemeByType", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. func (c *accountClient) FindChatTopic(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error) {
  148. out := new(common.ChatTopicList)
  149. err := c.cc.Invoke(ctx, "/api.account.Account/FindChatTopic", in, out, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *accountClient) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error) {
  156. out := new(common.CommonTextList)
  157. err := c.cc.Invoke(ctx, "/api.account.Account/RandomMeme", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *accountClient) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error) {
  164. out := new(common.CommonTextList)
  165. err := c.cc.Invoke(ctx, "/api.account.Account/RandomSwiftMessage", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. // AccountServer is the server API for Account service.
  172. // All implementations must embed UnimplementedAccountServer
  173. // for forward compatibility
  174. type AccountServer interface {
  175. DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
  176. Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
  177. RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
  178. RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
  179. // 通过openID和appID查询
  180. GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
  181. // 通过type和PID查询
  182. GetIdentityByTypeAndPID(context.Context, *common.PersonParam) (*IdentityInfo, error)
  183. // 通过原公众号openID和appID查询
  184. GetIdentityByFromOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
  185. // 通过分组名和性别查询标签
  186. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  187. // 通过标签IDs查询标签
  188. FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, error)
  189. // 随机介绍接口
  190. RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error)
  191. // 通过微信下载语音并上传到七牛
  192. UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error)
  193. // 通过类型获取表情包列表
  194. FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
  195. // 获取聊天话题
  196. FindChatTopic(context.Context, *common.ListPageRequest) (*common.ChatTopicList, error)
  197. // 随机表情包
  198. RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
  199. // 随机打招呼
  200. RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
  201. mustEmbedUnimplementedAccountServer()
  202. }
  203. // UnimplementedAccountServer must be embedded to have forward compatible implementations.
  204. type UnimplementedAccountServer struct {
  205. }
  206. func (UnimplementedAccountServer) DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) {
  207. return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")
  208. }
  209. func (UnimplementedAccountServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
  210. return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
  211. }
  212. func (UnimplementedAccountServer) RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error) {
  213. return nil, status.Errorf(codes.Unimplemented, "method RandomNickname not implemented")
  214. }
  215. func (UnimplementedAccountServer) RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error) {
  216. return nil, status.Errorf(codes.Unimplemented, "method RandomAvatar not implemented")
  217. }
  218. func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
  219. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppID not implemented")
  220. }
  221. func (UnimplementedAccountServer) GetIdentityByTypeAndPID(context.Context, *common.PersonParam) (*IdentityInfo, error) {
  222. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByTypeAndPID not implemented")
  223. }
  224. func (UnimplementedAccountServer) GetIdentityByFromOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
  225. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByFromOpenIDAndAppID not implemented")
  226. }
  227. func (UnimplementedAccountServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  228. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  229. }
  230. func (UnimplementedAccountServer) FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, error) {
  231. return nil, status.Errorf(codes.Unimplemented, "method FindTagsByIDs not implemented")
  232. }
  233. func (UnimplementedAccountServer) RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method RandomIntroduce not implemented")
  235. }
  236. func (UnimplementedAccountServer) UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error) {
  237. return nil, status.Errorf(codes.Unimplemented, "method UploadMaterialVoice not implemented")
  238. }
  239. func (UnimplementedAccountServer) FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error) {
  240. return nil, status.Errorf(codes.Unimplemented, "method FindMemeByType not implemented")
  241. }
  242. func (UnimplementedAccountServer) FindChatTopic(context.Context, *common.ListPageRequest) (*common.ChatTopicList, error) {
  243. return nil, status.Errorf(codes.Unimplemented, "method FindChatTopic not implemented")
  244. }
  245. func (UnimplementedAccountServer) RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error) {
  246. return nil, status.Errorf(codes.Unimplemented, "method RandomMeme not implemented")
  247. }
  248. func (UnimplementedAccountServer) RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error) {
  249. return nil, status.Errorf(codes.Unimplemented, "method RandomSwiftMessage not implemented")
  250. }
  251. func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
  252. // UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
  253. // Use of this interface is not recommended, as added methods to AccountServer will
  254. // result in compilation errors.
  255. type UnsafeAccountServer interface {
  256. mustEmbedUnimplementedAccountServer()
  257. }
  258. func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {
  259. s.RegisterService(&Account_ServiceDesc, srv)
  260. }
  261. func _Account_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  262. in := new(DebugLoginRequest)
  263. if err := dec(in); err != nil {
  264. return nil, err
  265. }
  266. if interceptor == nil {
  267. return srv.(AccountServer).DebugLogin(ctx, in)
  268. }
  269. info := &grpc.UnaryServerInfo{
  270. Server: srv,
  271. FullMethod: "/api.account.Account/DebugLogin",
  272. }
  273. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  274. return srv.(AccountServer).DebugLogin(ctx, req.(*DebugLoginRequest))
  275. }
  276. return interceptor(ctx, in, info, handler)
  277. }
  278. func _Account_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  279. in := new(AuthorizationRequest)
  280. if err := dec(in); err != nil {
  281. return nil, err
  282. }
  283. if interceptor == nil {
  284. return srv.(AccountServer).Authorization(ctx, in)
  285. }
  286. info := &grpc.UnaryServerInfo{
  287. Server: srv,
  288. FullMethod: "/api.account.Account/Authorization",
  289. }
  290. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  291. return srv.(AccountServer).Authorization(ctx, req.(*AuthorizationRequest))
  292. }
  293. return interceptor(ctx, in, info, handler)
  294. }
  295. func _Account_RandomNickname_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  296. in := new(common.SexReq)
  297. if err := dec(in); err != nil {
  298. return nil, err
  299. }
  300. if interceptor == nil {
  301. return srv.(AccountServer).RandomNickname(ctx, in)
  302. }
  303. info := &grpc.UnaryServerInfo{
  304. Server: srv,
  305. FullMethod: "/api.account.Account/RandomNickname",
  306. }
  307. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  308. return srv.(AccountServer).RandomNickname(ctx, req.(*common.SexReq))
  309. }
  310. return interceptor(ctx, in, info, handler)
  311. }
  312. func _Account_RandomAvatar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  313. in := new(common.SexReq)
  314. if err := dec(in); err != nil {
  315. return nil, err
  316. }
  317. if interceptor == nil {
  318. return srv.(AccountServer).RandomAvatar(ctx, in)
  319. }
  320. info := &grpc.UnaryServerInfo{
  321. Server: srv,
  322. FullMethod: "/api.account.Account/RandomAvatar",
  323. }
  324. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  325. return srv.(AccountServer).RandomAvatar(ctx, req.(*common.SexReq))
  326. }
  327. return interceptor(ctx, in, info, handler)
  328. }
  329. func _Account_GetIdentityByOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  330. in := new(OpenIDAndAppIDRequest)
  331. if err := dec(in); err != nil {
  332. return nil, err
  333. }
  334. if interceptor == nil {
  335. return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, in)
  336. }
  337. info := &grpc.UnaryServerInfo{
  338. Server: srv,
  339. FullMethod: "/api.account.Account/GetIdentityByOpenIDAndAppID",
  340. }
  341. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  342. return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
  343. }
  344. return interceptor(ctx, in, info, handler)
  345. }
  346. func _Account_GetIdentityByTypeAndPID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  347. in := new(common.PersonParam)
  348. if err := dec(in); err != nil {
  349. return nil, err
  350. }
  351. if interceptor == nil {
  352. return srv.(AccountServer).GetIdentityByTypeAndPID(ctx, in)
  353. }
  354. info := &grpc.UnaryServerInfo{
  355. Server: srv,
  356. FullMethod: "/api.account.Account/GetIdentityByTypeAndPID",
  357. }
  358. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  359. return srv.(AccountServer).GetIdentityByTypeAndPID(ctx, req.(*common.PersonParam))
  360. }
  361. return interceptor(ctx, in, info, handler)
  362. }
  363. func _Account_GetIdentityByFromOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  364. in := new(OpenIDAndAppIDRequest)
  365. if err := dec(in); err != nil {
  366. return nil, err
  367. }
  368. if interceptor == nil {
  369. return srv.(AccountServer).GetIdentityByFromOpenIDAndAppID(ctx, in)
  370. }
  371. info := &grpc.UnaryServerInfo{
  372. Server: srv,
  373. FullMethod: "/api.account.Account/GetIdentityByFromOpenIDAndAppID",
  374. }
  375. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  376. return srv.(AccountServer).GetIdentityByFromOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
  377. }
  378. return interceptor(ctx, in, info, handler)
  379. }
  380. func _Account_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  381. in := new(common.SexReq)
  382. if err := dec(in); err != nil {
  383. return nil, err
  384. }
  385. if interceptor == nil {
  386. return srv.(AccountServer).FindTagListBySex(ctx, in)
  387. }
  388. info := &grpc.UnaryServerInfo{
  389. Server: srv,
  390. FullMethod: "/api.account.Account/FindTagListBySex",
  391. }
  392. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  393. return srv.(AccountServer).FindTagListBySex(ctx, req.(*common.SexReq))
  394. }
  395. return interceptor(ctx, in, info, handler)
  396. }
  397. func _Account_FindTagsByIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  398. in := new(common.Ids)
  399. if err := dec(in); err != nil {
  400. return nil, err
  401. }
  402. if interceptor == nil {
  403. return srv.(AccountServer).FindTagsByIDs(ctx, in)
  404. }
  405. info := &grpc.UnaryServerInfo{
  406. Server: srv,
  407. FullMethod: "/api.account.Account/FindTagsByIDs",
  408. }
  409. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  410. return srv.(AccountServer).FindTagsByIDs(ctx, req.(*common.Ids))
  411. }
  412. return interceptor(ctx, in, info, handler)
  413. }
  414. func _Account_RandomIntroduce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  415. in := new(common.SexReq)
  416. if err := dec(in); err != nil {
  417. return nil, err
  418. }
  419. if interceptor == nil {
  420. return srv.(AccountServer).RandomIntroduce(ctx, in)
  421. }
  422. info := &grpc.UnaryServerInfo{
  423. Server: srv,
  424. FullMethod: "/api.account.Account/RandomIntroduce",
  425. }
  426. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  427. return srv.(AccountServer).RandomIntroduce(ctx, req.(*common.SexReq))
  428. }
  429. return interceptor(ctx, in, info, handler)
  430. }
  431. func _Account_UploadMaterialVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  432. in := new(MediaID)
  433. if err := dec(in); err != nil {
  434. return nil, err
  435. }
  436. if interceptor == nil {
  437. return srv.(AccountServer).UploadMaterialVoice(ctx, in)
  438. }
  439. info := &grpc.UnaryServerInfo{
  440. Server: srv,
  441. FullMethod: "/api.account.Account/UploadMaterialVoice",
  442. }
  443. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  444. return srv.(AccountServer).UploadMaterialVoice(ctx, req.(*MediaID))
  445. }
  446. return interceptor(ctx, in, info, handler)
  447. }
  448. func _Account_FindMemeByType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  449. in := new(common.MemeRequest)
  450. if err := dec(in); err != nil {
  451. return nil, err
  452. }
  453. if interceptor == nil {
  454. return srv.(AccountServer).FindMemeByType(ctx, in)
  455. }
  456. info := &grpc.UnaryServerInfo{
  457. Server: srv,
  458. FullMethod: "/api.account.Account/FindMemeByType",
  459. }
  460. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  461. return srv.(AccountServer).FindMemeByType(ctx, req.(*common.MemeRequest))
  462. }
  463. return interceptor(ctx, in, info, handler)
  464. }
  465. func _Account_FindChatTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  466. in := new(common.ListPageRequest)
  467. if err := dec(in); err != nil {
  468. return nil, err
  469. }
  470. if interceptor == nil {
  471. return srv.(AccountServer).FindChatTopic(ctx, in)
  472. }
  473. info := &grpc.UnaryServerInfo{
  474. Server: srv,
  475. FullMethod: "/api.account.Account/FindChatTopic",
  476. }
  477. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  478. return srv.(AccountServer).FindChatTopic(ctx, req.(*common.ListPageRequest))
  479. }
  480. return interceptor(ctx, in, info, handler)
  481. }
  482. func _Account_RandomMeme_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  483. in := new(common.RandomNum)
  484. if err := dec(in); err != nil {
  485. return nil, err
  486. }
  487. if interceptor == nil {
  488. return srv.(AccountServer).RandomMeme(ctx, in)
  489. }
  490. info := &grpc.UnaryServerInfo{
  491. Server: srv,
  492. FullMethod: "/api.account.Account/RandomMeme",
  493. }
  494. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  495. return srv.(AccountServer).RandomMeme(ctx, req.(*common.RandomNum))
  496. }
  497. return interceptor(ctx, in, info, handler)
  498. }
  499. func _Account_RandomSwiftMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  500. in := new(common.RandomNumAndSex)
  501. if err := dec(in); err != nil {
  502. return nil, err
  503. }
  504. if interceptor == nil {
  505. return srv.(AccountServer).RandomSwiftMessage(ctx, in)
  506. }
  507. info := &grpc.UnaryServerInfo{
  508. Server: srv,
  509. FullMethod: "/api.account.Account/RandomSwiftMessage",
  510. }
  511. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  512. return srv.(AccountServer).RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
  513. }
  514. return interceptor(ctx, in, info, handler)
  515. }
  516. // Account_ServiceDesc is the grpc.ServiceDesc for Account service.
  517. // It's only intended for direct use with grpc.RegisterService,
  518. // and not to be introspected or modified (even as a copy)
  519. var Account_ServiceDesc = grpc.ServiceDesc{
  520. ServiceName: "api.account.Account",
  521. HandlerType: (*AccountServer)(nil),
  522. Methods: []grpc.MethodDesc{
  523. {
  524. MethodName: "DebugLogin",
  525. Handler: _Account_DebugLogin_Handler,
  526. },
  527. {
  528. MethodName: "Authorization",
  529. Handler: _Account_Authorization_Handler,
  530. },
  531. {
  532. MethodName: "RandomNickname",
  533. Handler: _Account_RandomNickname_Handler,
  534. },
  535. {
  536. MethodName: "RandomAvatar",
  537. Handler: _Account_RandomAvatar_Handler,
  538. },
  539. {
  540. MethodName: "GetIdentityByOpenIDAndAppID",
  541. Handler: _Account_GetIdentityByOpenIDAndAppID_Handler,
  542. },
  543. {
  544. MethodName: "GetIdentityByTypeAndPID",
  545. Handler: _Account_GetIdentityByTypeAndPID_Handler,
  546. },
  547. {
  548. MethodName: "GetIdentityByFromOpenIDAndAppID",
  549. Handler: _Account_GetIdentityByFromOpenIDAndAppID_Handler,
  550. },
  551. {
  552. MethodName: "FindTagListBySex",
  553. Handler: _Account_FindTagListBySex_Handler,
  554. },
  555. {
  556. MethodName: "FindTagsByIDs",
  557. Handler: _Account_FindTagsByIDs_Handler,
  558. },
  559. {
  560. MethodName: "RandomIntroduce",
  561. Handler: _Account_RandomIntroduce_Handler,
  562. },
  563. {
  564. MethodName: "UploadMaterialVoice",
  565. Handler: _Account_UploadMaterialVoice_Handler,
  566. },
  567. {
  568. MethodName: "FindMemeByType",
  569. Handler: _Account_FindMemeByType_Handler,
  570. },
  571. {
  572. MethodName: "FindChatTopic",
  573. Handler: _Account_FindChatTopic_Handler,
  574. },
  575. {
  576. MethodName: "RandomMeme",
  577. Handler: _Account_RandomMeme_Handler,
  578. },
  579. {
  580. MethodName: "RandomSwiftMessage",
  581. Handler: _Account_RandomSwiftMessage_Handler,
  582. },
  583. },
  584. Streams: []grpc.StreamDesc{},
  585. Metadata: "account.proto",
  586. }