account_grpc.pb.go 27 KB

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