account_grpc.pb.go 46 KB

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