account_grpc.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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. // 通过微信下载语音并上传到七牛
  27. UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error)
  28. // 统计订阅消息
  29. StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  30. // 检查文本-百度云
  31. CheckText(ctx context.Context, in *CheckTextRequest, opts ...grpc.CallOption) (*CheckTextReply, error)
  32. // 通过openID和appID查询
  33. GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
  34. // 通过openID和appID查询 未查到就创建
  35. GetIdentityByOpenIDAndAppIDAndCreate(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
  36. // 通过accountID获取Identify信息
  37. GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error)
  38. // 通过accountID获取Identify信息
  39. GetIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error)
  40. // 通过accountID获取Identify信息
  41. GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error)
  42. // 通过accountID获取Identify信息
  43. FindIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *FindIdentifyByAccountIDAndIsSubscribeRequest, opts ...grpc.CallOption) (*FindIdentifyByAccountIDAndIsSubscribeReply, error)
  44. // 用户关注
  45. UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  46. // 用户取关
  47. UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  48. }
  49. type accountClient struct {
  50. cc grpc.ClientConnInterface
  51. }
  52. func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {
  53. return &accountClient{cc}
  54. }
  55. func (c *accountClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error) {
  56. out := new(TokenReply)
  57. err := c.cc.Invoke(ctx, "/api.account.Account/DebugLogin", in, out, opts...)
  58. if err != nil {
  59. return nil, err
  60. }
  61. return out, nil
  62. }
  63. func (c *accountClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {
  64. out := new(TokenReply)
  65. err := c.cc.Invoke(ctx, "/api.account.Account/Authorization", in, out, opts...)
  66. if err != nil {
  67. return nil, err
  68. }
  69. return out, nil
  70. }
  71. func (c *accountClient) AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*MiniProgramTokenReply, error) {
  72. out := new(MiniProgramTokenReply)
  73. err := c.cc.Invoke(ctx, "/api.account.Account/AuthorizationMiniProgram", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *accountClient) GetUserLoginConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error) {
  80. out := new(common.GetLoginConfigReply)
  81. err := c.cc.Invoke(ctx, "/api.account.Account/GetUserLoginConfig", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *accountClient) GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, error) {
  88. out := new(GetGetGzhConfigReply)
  89. err := c.cc.Invoke(ctx, "/api.account.Account/GetGetGzhConfig", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *accountClient) UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error) {
  96. out := new(MaterialLink)
  97. err := c.cc.Invoke(ctx, "/api.account.Account/UploadMaterialVoice", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *accountClient) StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  104. out := new(emptypb.Empty)
  105. err := c.cc.Invoke(ctx, "/api.account.Account/StatisticsSubscribeMessage", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *accountClient) CheckText(ctx context.Context, in *CheckTextRequest, opts ...grpc.CallOption) (*CheckTextReply, error) {
  112. out := new(CheckTextReply)
  113. err := c.cc.Invoke(ctx, "/api.account.Account/CheckText", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *accountClient) GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
  120. out := new(IdentityInfo)
  121. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenIDAndAppID", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *accountClient) GetIdentityByOpenIDAndAppIDAndCreate(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
  128. out := new(IdentityInfo)
  129. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenIDAndAppIDAndCreate", in, out, opts...)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return out, nil
  134. }
  135. func (c *accountClient) GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) {
  136. out := new(GetIdentifyByAccountIDReply)
  137. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentifyByAccountID", in, out, opts...)
  138. if err != nil {
  139. return nil, err
  140. }
  141. return out, nil
  142. }
  143. func (c *accountClient) GetIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) {
  144. out := new(GetIdentifyByAccountIDReply)
  145. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribe", in, out, opts...)
  146. if err != nil {
  147. return nil, err
  148. }
  149. return out, nil
  150. }
  151. func (c *accountClient) GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) {
  152. out := new(GetIdentifyByAccountIDReply)
  153. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribeByMiniProgram", in, out, opts...)
  154. if err != nil {
  155. return nil, err
  156. }
  157. return out, nil
  158. }
  159. func (c *accountClient) FindIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *FindIdentifyByAccountIDAndIsSubscribeRequest, opts ...grpc.CallOption) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) {
  160. out := new(FindIdentifyByAccountIDAndIsSubscribeReply)
  161. err := c.cc.Invoke(ctx, "/api.account.Account/FindIdentifyByAccountIDAndIsSubscribe", in, out, opts...)
  162. if err != nil {
  163. return nil, err
  164. }
  165. return out, nil
  166. }
  167. func (c *accountClient) UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  168. out := new(emptypb.Empty)
  169. err := c.cc.Invoke(ctx, "/api.account.Account/UserSubscribe", in, out, opts...)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return out, nil
  174. }
  175. func (c *accountClient) UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  176. out := new(emptypb.Empty)
  177. err := c.cc.Invoke(ctx, "/api.account.Account/UserUnsubscribe", in, out, opts...)
  178. if err != nil {
  179. return nil, err
  180. }
  181. return out, nil
  182. }
  183. // AccountServer is the server API for Account service.
  184. // All implementations must embed UnimplementedAccountServer
  185. // for forward compatibility
  186. type AccountServer interface {
  187. DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
  188. Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
  189. AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*MiniProgramTokenReply, error)
  190. // 获取用户登录配置
  191. GetUserLoginConfig(context.Context, *emptypb.Empty) (*common.GetLoginConfigReply, error)
  192. // 获取公众号配置
  193. GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error)
  194. // 通过微信下载语音并上传到七牛
  195. UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error)
  196. // 统计订阅消息
  197. StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error)
  198. // 检查文本-百度云
  199. CheckText(context.Context, *CheckTextRequest) (*CheckTextReply, error)
  200. // 通过openID和appID查询
  201. GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
  202. // 通过openID和appID查询 未查到就创建
  203. GetIdentityByOpenIDAndAppIDAndCreate(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
  204. // 通过accountID获取Identify信息
  205. GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
  206. // 通过accountID获取Identify信息
  207. GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
  208. // 通过accountID获取Identify信息
  209. GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
  210. // 通过accountID获取Identify信息
  211. FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error)
  212. // 用户关注
  213. UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error)
  214. // 用户取关
  215. UserUnsubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error)
  216. mustEmbedUnimplementedAccountServer()
  217. }
  218. // UnimplementedAccountServer must be embedded to have forward compatible implementations.
  219. type UnimplementedAccountServer struct {
  220. }
  221. func (UnimplementedAccountServer) DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) {
  222. return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")
  223. }
  224. func (UnimplementedAccountServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
  225. return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
  226. }
  227. func (UnimplementedAccountServer) AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*MiniProgramTokenReply, error) {
  228. return nil, status.Errorf(codes.Unimplemented, "method AuthorizationMiniProgram not implemented")
  229. }
  230. func (UnimplementedAccountServer) GetUserLoginConfig(context.Context, *emptypb.Empty) (*common.GetLoginConfigReply, error) {
  231. return nil, status.Errorf(codes.Unimplemented, "method GetUserLoginConfig not implemented")
  232. }
  233. func (UnimplementedAccountServer) GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method GetGetGzhConfig not implemented")
  235. }
  236. func (UnimplementedAccountServer) UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error) {
  237. return nil, status.Errorf(codes.Unimplemented, "method UploadMaterialVoice not implemented")
  238. }
  239. func (UnimplementedAccountServer) StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error) {
  240. return nil, status.Errorf(codes.Unimplemented, "method StatisticsSubscribeMessage not implemented")
  241. }
  242. func (UnimplementedAccountServer) CheckText(context.Context, *CheckTextRequest) (*CheckTextReply, error) {
  243. return nil, status.Errorf(codes.Unimplemented, "method CheckText not implemented")
  244. }
  245. func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
  246. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppID not implemented")
  247. }
  248. func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppIDAndCreate(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
  249. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppIDAndCreate not implemented")
  250. }
  251. func (UnimplementedAccountServer) GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
  252. return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountID not implemented")
  253. }
  254. func (UnimplementedAccountServer) GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
  255. return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountIDAndIsSubscribe not implemented")
  256. }
  257. func (UnimplementedAccountServer) GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
  258. return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountIDAndIsSubscribeByMiniProgram not implemented")
  259. }
  260. func (UnimplementedAccountServer) FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) {
  261. return nil, status.Errorf(codes.Unimplemented, "method FindIdentifyByAccountIDAndIsSubscribe not implemented")
  262. }
  263. func (UnimplementedAccountServer) UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) {
  264. return nil, status.Errorf(codes.Unimplemented, "method UserSubscribe not implemented")
  265. }
  266. func (UnimplementedAccountServer) UserUnsubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) {
  267. return nil, status.Errorf(codes.Unimplemented, "method UserUnsubscribe not implemented")
  268. }
  269. func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
  270. // UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
  271. // Use of this interface is not recommended, as added methods to AccountServer will
  272. // result in compilation errors.
  273. type UnsafeAccountServer interface {
  274. mustEmbedUnimplementedAccountServer()
  275. }
  276. func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {
  277. s.RegisterService(&Account_ServiceDesc, srv)
  278. }
  279. func _Account_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  280. in := new(DebugLoginRequest)
  281. if err := dec(in); err != nil {
  282. return nil, err
  283. }
  284. if interceptor == nil {
  285. return srv.(AccountServer).DebugLogin(ctx, in)
  286. }
  287. info := &grpc.UnaryServerInfo{
  288. Server: srv,
  289. FullMethod: "/api.account.Account/DebugLogin",
  290. }
  291. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  292. return srv.(AccountServer).DebugLogin(ctx, req.(*DebugLoginRequest))
  293. }
  294. return interceptor(ctx, in, info, handler)
  295. }
  296. func _Account_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  297. in := new(AuthorizationRequest)
  298. if err := dec(in); err != nil {
  299. return nil, err
  300. }
  301. if interceptor == nil {
  302. return srv.(AccountServer).Authorization(ctx, in)
  303. }
  304. info := &grpc.UnaryServerInfo{
  305. Server: srv,
  306. FullMethod: "/api.account.Account/Authorization",
  307. }
  308. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  309. return srv.(AccountServer).Authorization(ctx, req.(*AuthorizationRequest))
  310. }
  311. return interceptor(ctx, in, info, handler)
  312. }
  313. func _Account_AuthorizationMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  314. in := new(AuthorizationMiniProgramRequest)
  315. if err := dec(in); err != nil {
  316. return nil, err
  317. }
  318. if interceptor == nil {
  319. return srv.(AccountServer).AuthorizationMiniProgram(ctx, in)
  320. }
  321. info := &grpc.UnaryServerInfo{
  322. Server: srv,
  323. FullMethod: "/api.account.Account/AuthorizationMiniProgram",
  324. }
  325. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  326. return srv.(AccountServer).AuthorizationMiniProgram(ctx, req.(*AuthorizationMiniProgramRequest))
  327. }
  328. return interceptor(ctx, in, info, handler)
  329. }
  330. func _Account_GetUserLoginConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  331. in := new(emptypb.Empty)
  332. if err := dec(in); err != nil {
  333. return nil, err
  334. }
  335. if interceptor == nil {
  336. return srv.(AccountServer).GetUserLoginConfig(ctx, in)
  337. }
  338. info := &grpc.UnaryServerInfo{
  339. Server: srv,
  340. FullMethod: "/api.account.Account/GetUserLoginConfig",
  341. }
  342. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  343. return srv.(AccountServer).GetUserLoginConfig(ctx, req.(*emptypb.Empty))
  344. }
  345. return interceptor(ctx, in, info, handler)
  346. }
  347. func _Account_GetGetGzhConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  348. in := new(emptypb.Empty)
  349. if err := dec(in); err != nil {
  350. return nil, err
  351. }
  352. if interceptor == nil {
  353. return srv.(AccountServer).GetGetGzhConfig(ctx, in)
  354. }
  355. info := &grpc.UnaryServerInfo{
  356. Server: srv,
  357. FullMethod: "/api.account.Account/GetGetGzhConfig",
  358. }
  359. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  360. return srv.(AccountServer).GetGetGzhConfig(ctx, req.(*emptypb.Empty))
  361. }
  362. return interceptor(ctx, in, info, handler)
  363. }
  364. func _Account_UploadMaterialVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  365. in := new(MediaID)
  366. if err := dec(in); err != nil {
  367. return nil, err
  368. }
  369. if interceptor == nil {
  370. return srv.(AccountServer).UploadMaterialVoice(ctx, in)
  371. }
  372. info := &grpc.UnaryServerInfo{
  373. Server: srv,
  374. FullMethod: "/api.account.Account/UploadMaterialVoice",
  375. }
  376. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  377. return srv.(AccountServer).UploadMaterialVoice(ctx, req.(*MediaID))
  378. }
  379. return interceptor(ctx, in, info, handler)
  380. }
  381. func _Account_StatisticsSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  382. in := new(StatisticsSubscribeMessageRequest)
  383. if err := dec(in); err != nil {
  384. return nil, err
  385. }
  386. if interceptor == nil {
  387. return srv.(AccountServer).StatisticsSubscribeMessage(ctx, in)
  388. }
  389. info := &grpc.UnaryServerInfo{
  390. Server: srv,
  391. FullMethod: "/api.account.Account/StatisticsSubscribeMessage",
  392. }
  393. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  394. return srv.(AccountServer).StatisticsSubscribeMessage(ctx, req.(*StatisticsSubscribeMessageRequest))
  395. }
  396. return interceptor(ctx, in, info, handler)
  397. }
  398. func _Account_CheckText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  399. in := new(CheckTextRequest)
  400. if err := dec(in); err != nil {
  401. return nil, err
  402. }
  403. if interceptor == nil {
  404. return srv.(AccountServer).CheckText(ctx, in)
  405. }
  406. info := &grpc.UnaryServerInfo{
  407. Server: srv,
  408. FullMethod: "/api.account.Account/CheckText",
  409. }
  410. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  411. return srv.(AccountServer).CheckText(ctx, req.(*CheckTextRequest))
  412. }
  413. return interceptor(ctx, in, info, handler)
  414. }
  415. func _Account_GetIdentityByOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  416. in := new(OpenIDAndAppIDRequest)
  417. if err := dec(in); err != nil {
  418. return nil, err
  419. }
  420. if interceptor == nil {
  421. return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, in)
  422. }
  423. info := &grpc.UnaryServerInfo{
  424. Server: srv,
  425. FullMethod: "/api.account.Account/GetIdentityByOpenIDAndAppID",
  426. }
  427. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  428. return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
  429. }
  430. return interceptor(ctx, in, info, handler)
  431. }
  432. func _Account_GetIdentityByOpenIDAndAppIDAndCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  433. in := new(OpenIDAndAppIDRequest)
  434. if err := dec(in); err != nil {
  435. return nil, err
  436. }
  437. if interceptor == nil {
  438. return srv.(AccountServer).GetIdentityByOpenIDAndAppIDAndCreate(ctx, in)
  439. }
  440. info := &grpc.UnaryServerInfo{
  441. Server: srv,
  442. FullMethod: "/api.account.Account/GetIdentityByOpenIDAndAppIDAndCreate",
  443. }
  444. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  445. return srv.(AccountServer).GetIdentityByOpenIDAndAppIDAndCreate(ctx, req.(*OpenIDAndAppIDRequest))
  446. }
  447. return interceptor(ctx, in, info, handler)
  448. }
  449. func _Account_GetIdentifyByAccountID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  450. in := new(GetIdentifyByAccountIDRequest)
  451. if err := dec(in); err != nil {
  452. return nil, err
  453. }
  454. if interceptor == nil {
  455. return srv.(AccountServer).GetIdentifyByAccountID(ctx, in)
  456. }
  457. info := &grpc.UnaryServerInfo{
  458. Server: srv,
  459. FullMethod: "/api.account.Account/GetIdentifyByAccountID",
  460. }
  461. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  462. return srv.(AccountServer).GetIdentifyByAccountID(ctx, req.(*GetIdentifyByAccountIDRequest))
  463. }
  464. return interceptor(ctx, in, info, handler)
  465. }
  466. func _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  467. in := new(GetIdentifyByAccountIDRequest)
  468. if err := dec(in); err != nil {
  469. return nil, err
  470. }
  471. if interceptor == nil {
  472. return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribe(ctx, in)
  473. }
  474. info := &grpc.UnaryServerInfo{
  475. Server: srv,
  476. FullMethod: "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribe",
  477. }
  478. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  479. return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribe(ctx, req.(*GetIdentifyByAccountIDRequest))
  480. }
  481. return interceptor(ctx, in, info, handler)
  482. }
  483. func _Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  484. in := new(GetIdentifyByAccountIDRequest)
  485. if err := dec(in); err != nil {
  486. return nil, err
  487. }
  488. if interceptor == nil {
  489. return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx, in)
  490. }
  491. info := &grpc.UnaryServerInfo{
  492. Server: srv,
  493. FullMethod: "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribeByMiniProgram",
  494. }
  495. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  496. return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx, req.(*GetIdentifyByAccountIDRequest))
  497. }
  498. return interceptor(ctx, in, info, handler)
  499. }
  500. func _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  501. in := new(FindIdentifyByAccountIDAndIsSubscribeRequest)
  502. if err := dec(in); err != nil {
  503. return nil, err
  504. }
  505. if interceptor == nil {
  506. return srv.(AccountServer).FindIdentifyByAccountIDAndIsSubscribe(ctx, in)
  507. }
  508. info := &grpc.UnaryServerInfo{
  509. Server: srv,
  510. FullMethod: "/api.account.Account/FindIdentifyByAccountIDAndIsSubscribe",
  511. }
  512. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  513. return srv.(AccountServer).FindIdentifyByAccountIDAndIsSubscribe(ctx, req.(*FindIdentifyByAccountIDAndIsSubscribeRequest))
  514. }
  515. return interceptor(ctx, in, info, handler)
  516. }
  517. func _Account_UserSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  518. in := new(OpenIDAndAppIDRequest)
  519. if err := dec(in); err != nil {
  520. return nil, err
  521. }
  522. if interceptor == nil {
  523. return srv.(AccountServer).UserSubscribe(ctx, in)
  524. }
  525. info := &grpc.UnaryServerInfo{
  526. Server: srv,
  527. FullMethod: "/api.account.Account/UserSubscribe",
  528. }
  529. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  530. return srv.(AccountServer).UserSubscribe(ctx, req.(*OpenIDAndAppIDRequest))
  531. }
  532. return interceptor(ctx, in, info, handler)
  533. }
  534. func _Account_UserUnsubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  535. in := new(OpenIDAndAppIDRequest)
  536. if err := dec(in); err != nil {
  537. return nil, err
  538. }
  539. if interceptor == nil {
  540. return srv.(AccountServer).UserUnsubscribe(ctx, in)
  541. }
  542. info := &grpc.UnaryServerInfo{
  543. Server: srv,
  544. FullMethod: "/api.account.Account/UserUnsubscribe",
  545. }
  546. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  547. return srv.(AccountServer).UserUnsubscribe(ctx, req.(*OpenIDAndAppIDRequest))
  548. }
  549. return interceptor(ctx, in, info, handler)
  550. }
  551. // Account_ServiceDesc is the grpc.ServiceDesc for Account service.
  552. // It's only intended for direct use with grpc.RegisterService,
  553. // and not to be introspected or modified (even as a copy)
  554. var Account_ServiceDesc = grpc.ServiceDesc{
  555. ServiceName: "api.account.Account",
  556. HandlerType: (*AccountServer)(nil),
  557. Methods: []grpc.MethodDesc{
  558. {
  559. MethodName: "DebugLogin",
  560. Handler: _Account_DebugLogin_Handler,
  561. },
  562. {
  563. MethodName: "Authorization",
  564. Handler: _Account_Authorization_Handler,
  565. },
  566. {
  567. MethodName: "AuthorizationMiniProgram",
  568. Handler: _Account_AuthorizationMiniProgram_Handler,
  569. },
  570. {
  571. MethodName: "GetUserLoginConfig",
  572. Handler: _Account_GetUserLoginConfig_Handler,
  573. },
  574. {
  575. MethodName: "GetGetGzhConfig",
  576. Handler: _Account_GetGetGzhConfig_Handler,
  577. },
  578. {
  579. MethodName: "UploadMaterialVoice",
  580. Handler: _Account_UploadMaterialVoice_Handler,
  581. },
  582. {
  583. MethodName: "StatisticsSubscribeMessage",
  584. Handler: _Account_StatisticsSubscribeMessage_Handler,
  585. },
  586. {
  587. MethodName: "CheckText",
  588. Handler: _Account_CheckText_Handler,
  589. },
  590. {
  591. MethodName: "GetIdentityByOpenIDAndAppID",
  592. Handler: _Account_GetIdentityByOpenIDAndAppID_Handler,
  593. },
  594. {
  595. MethodName: "GetIdentityByOpenIDAndAppIDAndCreate",
  596. Handler: _Account_GetIdentityByOpenIDAndAppIDAndCreate_Handler,
  597. },
  598. {
  599. MethodName: "GetIdentifyByAccountID",
  600. Handler: _Account_GetIdentifyByAccountID_Handler,
  601. },
  602. {
  603. MethodName: "GetIdentifyByAccountIDAndIsSubscribe",
  604. Handler: _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler,
  605. },
  606. {
  607. MethodName: "GetIdentifyByAccountIDAndIsSubscribeByMiniProgram",
  608. Handler: _Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_Handler,
  609. },
  610. {
  611. MethodName: "FindIdentifyByAccountIDAndIsSubscribe",
  612. Handler: _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler,
  613. },
  614. {
  615. MethodName: "UserSubscribe",
  616. Handler: _Account_UserSubscribe_Handler,
  617. },
  618. {
  619. MethodName: "UserUnsubscribe",
  620. Handler: _Account_UserUnsubscribe_Handler,
  621. },
  622. },
  623. Streams: []grpc.StreamDesc{},
  624. Metadata: "account.proto",
  625. }