account_grpc.pb.go 29 KB

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