account_grpc.pb.go 26 KB

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