account_grpc.pb.go 33 KB

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