account_grpc.pb.go 31 KB

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