account_grpc.pb.go 41 KB

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