account_grpc.pb.go 26 KB

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