account_grpc.pb.go 23 KB

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