account_grpc.pb.go 29 KB

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