account_grpc.pb.go 46 KB

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