account_grpc.pb.go 32 KB

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