account_grpc.pb.go 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  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. RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error)
  22. RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error)
  23. RandomAvatarList(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarListReply, error)
  24. // 通过openID和appID查询
  25. GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
  26. // 通过type和PID查询
  27. GetIdentityByTypeAndPID(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*IdentityInfo, error)
  28. // 通过原公众号openID和appID查询
  29. GetIdentityByFromOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
  30. // 通过分组名和性别查询标签
  31. FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
  32. // 通过标签IDs查询标签
  33. FindTagsByIDs(ctx context.Context, in *common.Ids, opts ...grpc.CallOption) (*common.TagListReply, error)
  34. // 随机介绍接口
  35. RandomIntroduce(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.RandomIntroduceReply, error)
  36. // 通过微信下载语音并上传到七牛
  37. UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error)
  38. // 通过类型获取表情包列表
  39. FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error)
  40. // 获取对方性别的聊天话题
  41. FindChatTopic(ctx context.Context, in *common.FindChatTopicRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error)
  42. // 随机表情包
  43. RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error)
  44. // 随机打招呼
  45. RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error)
  46. // 创建纸条
  47. CreateScrip(ctx context.Context, in *CreateScripRequest, opts ...grpc.CallOption) (*ScripID, error)
  48. // 删除纸条
  49. DeleteScrip(ctx context.Context, in *DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  50. // 查询自己的小纸条
  51. FindMyScrip(ctx context.Context, in *FindScripRequest, opts ...grpc.CallOption) (*ScripReply, error)
  52. // 查询随机纸条列表
  53. FindRecommendScrip(ctx context.Context, in *FindScripRequest, opts ...grpc.CallOption) (*ScripReply, error)
  54. // 用户查看纸条
  55. PersonLookScrip(ctx context.Context, in *PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  56. // 用户点击回看
  57. PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*ScripInfo, error)
  58. }
  59. type accountClient struct {
  60. cc grpc.ClientConnInterface
  61. }
  62. func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {
  63. return &accountClient{cc}
  64. }
  65. func (c *accountClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error) {
  66. out := new(TokenReply)
  67. err := c.cc.Invoke(ctx, "/api.account.Account/DebugLogin", in, out, opts...)
  68. if err != nil {
  69. return nil, err
  70. }
  71. return out, nil
  72. }
  73. func (c *accountClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {
  74. out := new(TokenReply)
  75. err := c.cc.Invoke(ctx, "/api.account.Account/Authorization", in, out, opts...)
  76. if err != nil {
  77. return nil, err
  78. }
  79. return out, nil
  80. }
  81. func (c *accountClient) RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error) {
  82. out := new(RandomNicknameReply)
  83. err := c.cc.Invoke(ctx, "/api.account.Account/RandomNickname", in, out, opts...)
  84. if err != nil {
  85. return nil, err
  86. }
  87. return out, nil
  88. }
  89. func (c *accountClient) RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error) {
  90. out := new(RandomAvatarReply)
  91. err := c.cc.Invoke(ctx, "/api.account.Account/RandomAvatar", in, out, opts...)
  92. if err != nil {
  93. return nil, err
  94. }
  95. return out, nil
  96. }
  97. func (c *accountClient) RandomAvatarList(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarListReply, error) {
  98. out := new(RandomAvatarListReply)
  99. err := c.cc.Invoke(ctx, "/api.account.Account/RandomAvatarList", in, out, opts...)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return out, nil
  104. }
  105. func (c *accountClient) GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
  106. out := new(IdentityInfo)
  107. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenIDAndAppID", in, out, opts...)
  108. if err != nil {
  109. return nil, err
  110. }
  111. return out, nil
  112. }
  113. func (c *accountClient) GetIdentityByTypeAndPID(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*IdentityInfo, error) {
  114. out := new(IdentityInfo)
  115. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByTypeAndPID", in, out, opts...)
  116. if err != nil {
  117. return nil, err
  118. }
  119. return out, nil
  120. }
  121. func (c *accountClient) GetIdentityByFromOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
  122. out := new(IdentityInfo)
  123. err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByFromOpenIDAndAppID", in, out, opts...)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return out, nil
  128. }
  129. func (c *accountClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  130. out := new(common.TagListReply)
  131. err := c.cc.Invoke(ctx, "/api.account.Account/FindTagListBySex", in, out, opts...)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return out, nil
  136. }
  137. func (c *accountClient) FindTagsByIDs(ctx context.Context, in *common.Ids, opts ...grpc.CallOption) (*common.TagListReply, error) {
  138. out := new(common.TagListReply)
  139. err := c.cc.Invoke(ctx, "/api.account.Account/FindTagsByIDs", in, out, opts...)
  140. if err != nil {
  141. return nil, err
  142. }
  143. return out, nil
  144. }
  145. func (c *accountClient) RandomIntroduce(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.RandomIntroduceReply, error) {
  146. out := new(common.RandomIntroduceReply)
  147. err := c.cc.Invoke(ctx, "/api.account.Account/RandomIntroduce", in, out, opts...)
  148. if err != nil {
  149. return nil, err
  150. }
  151. return out, nil
  152. }
  153. func (c *accountClient) UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error) {
  154. out := new(MaterialLink)
  155. err := c.cc.Invoke(ctx, "/api.account.Account/UploadMaterialVoice", in, out, opts...)
  156. if err != nil {
  157. return nil, err
  158. }
  159. return out, nil
  160. }
  161. func (c *accountClient) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error) {
  162. out := new(common.MemeList)
  163. err := c.cc.Invoke(ctx, "/api.account.Account/FindMemeByType", in, out, opts...)
  164. if err != nil {
  165. return nil, err
  166. }
  167. return out, nil
  168. }
  169. func (c *accountClient) FindChatTopic(ctx context.Context, in *common.FindChatTopicRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error) {
  170. out := new(common.ChatTopicList)
  171. err := c.cc.Invoke(ctx, "/api.account.Account/FindChatTopic", in, out, opts...)
  172. if err != nil {
  173. return nil, err
  174. }
  175. return out, nil
  176. }
  177. func (c *accountClient) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error) {
  178. out := new(common.CommonTextList)
  179. err := c.cc.Invoke(ctx, "/api.account.Account/RandomMeme", in, out, opts...)
  180. if err != nil {
  181. return nil, err
  182. }
  183. return out, nil
  184. }
  185. func (c *accountClient) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error) {
  186. out := new(common.CommonTextList)
  187. err := c.cc.Invoke(ctx, "/api.account.Account/RandomSwiftMessage", in, out, opts...)
  188. if err != nil {
  189. return nil, err
  190. }
  191. return out, nil
  192. }
  193. func (c *accountClient) CreateScrip(ctx context.Context, in *CreateScripRequest, opts ...grpc.CallOption) (*ScripID, error) {
  194. out := new(ScripID)
  195. err := c.cc.Invoke(ctx, "/api.account.Account/CreateScrip", in, out, opts...)
  196. if err != nil {
  197. return nil, err
  198. }
  199. return out, nil
  200. }
  201. func (c *accountClient) DeleteScrip(ctx context.Context, in *DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  202. out := new(emptypb.Empty)
  203. err := c.cc.Invoke(ctx, "/api.account.Account/DeleteScrip", in, out, opts...)
  204. if err != nil {
  205. return nil, err
  206. }
  207. return out, nil
  208. }
  209. func (c *accountClient) FindMyScrip(ctx context.Context, in *FindScripRequest, opts ...grpc.CallOption) (*ScripReply, error) {
  210. out := new(ScripReply)
  211. err := c.cc.Invoke(ctx, "/api.account.Account/FindMyScrip", in, out, opts...)
  212. if err != nil {
  213. return nil, err
  214. }
  215. return out, nil
  216. }
  217. func (c *accountClient) FindRecommendScrip(ctx context.Context, in *FindScripRequest, opts ...grpc.CallOption) (*ScripReply, error) {
  218. out := new(ScripReply)
  219. err := c.cc.Invoke(ctx, "/api.account.Account/FindRecommendScrip", in, out, opts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. func (c *accountClient) PersonLookScrip(ctx context.Context, in *PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  226. out := new(emptypb.Empty)
  227. err := c.cc.Invoke(ctx, "/api.account.Account/PersonLookScrip", in, out, opts...)
  228. if err != nil {
  229. return nil, err
  230. }
  231. return out, nil
  232. }
  233. func (c *accountClient) PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*ScripInfo, error) {
  234. out := new(ScripInfo)
  235. err := c.cc.Invoke(ctx, "/api.account.Account/PersonClickLookBack", in, out, opts...)
  236. if err != nil {
  237. return nil, err
  238. }
  239. return out, nil
  240. }
  241. // AccountServer is the server API for Account service.
  242. // All implementations must embed UnimplementedAccountServer
  243. // for forward compatibility
  244. type AccountServer interface {
  245. DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
  246. Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
  247. RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
  248. RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
  249. RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error)
  250. // 通过openID和appID查询
  251. GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
  252. // 通过type和PID查询
  253. GetIdentityByTypeAndPID(context.Context, *common.PersonParam) (*IdentityInfo, error)
  254. // 通过原公众号openID和appID查询
  255. GetIdentityByFromOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
  256. // 通过分组名和性别查询标签
  257. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  258. // 通过标签IDs查询标签
  259. FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, error)
  260. // 随机介绍接口
  261. RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error)
  262. // 通过微信下载语音并上传到七牛
  263. UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error)
  264. // 通过类型获取表情包列表
  265. FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
  266. // 获取对方性别的聊天话题
  267. FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error)
  268. // 随机表情包
  269. RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
  270. // 随机打招呼
  271. RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
  272. // 创建纸条
  273. CreateScrip(context.Context, *CreateScripRequest) (*ScripID, error)
  274. // 删除纸条
  275. DeleteScrip(context.Context, *DeleteScripRequest) (*emptypb.Empty, error)
  276. // 查询自己的小纸条
  277. FindMyScrip(context.Context, *FindScripRequest) (*ScripReply, error)
  278. // 查询随机纸条列表
  279. FindRecommendScrip(context.Context, *FindScripRequest) (*ScripReply, error)
  280. // 用户查看纸条
  281. PersonLookScrip(context.Context, *PersonLookScripRequest) (*emptypb.Empty, error)
  282. // 用户点击回看
  283. PersonClickLookBack(context.Context, *common.PersonParam) (*ScripInfo, error)
  284. mustEmbedUnimplementedAccountServer()
  285. }
  286. // UnimplementedAccountServer must be embedded to have forward compatible implementations.
  287. type UnimplementedAccountServer struct {
  288. }
  289. func (UnimplementedAccountServer) DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) {
  290. return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")
  291. }
  292. func (UnimplementedAccountServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
  293. return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
  294. }
  295. func (UnimplementedAccountServer) RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error) {
  296. return nil, status.Errorf(codes.Unimplemented, "method RandomNickname not implemented")
  297. }
  298. func (UnimplementedAccountServer) RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error) {
  299. return nil, status.Errorf(codes.Unimplemented, "method RandomAvatar not implemented")
  300. }
  301. func (UnimplementedAccountServer) RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error) {
  302. return nil, status.Errorf(codes.Unimplemented, "method RandomAvatarList not implemented")
  303. }
  304. func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
  305. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppID not implemented")
  306. }
  307. func (UnimplementedAccountServer) GetIdentityByTypeAndPID(context.Context, *common.PersonParam) (*IdentityInfo, error) {
  308. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByTypeAndPID not implemented")
  309. }
  310. func (UnimplementedAccountServer) GetIdentityByFromOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
  311. return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByFromOpenIDAndAppID not implemented")
  312. }
  313. func (UnimplementedAccountServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  314. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  315. }
  316. func (UnimplementedAccountServer) FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, error) {
  317. return nil, status.Errorf(codes.Unimplemented, "method FindTagsByIDs not implemented")
  318. }
  319. func (UnimplementedAccountServer) RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error) {
  320. return nil, status.Errorf(codes.Unimplemented, "method RandomIntroduce not implemented")
  321. }
  322. func (UnimplementedAccountServer) UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error) {
  323. return nil, status.Errorf(codes.Unimplemented, "method UploadMaterialVoice not implemented")
  324. }
  325. func (UnimplementedAccountServer) FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error) {
  326. return nil, status.Errorf(codes.Unimplemented, "method FindMemeByType not implemented")
  327. }
  328. func (UnimplementedAccountServer) FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error) {
  329. return nil, status.Errorf(codes.Unimplemented, "method FindChatTopic not implemented")
  330. }
  331. func (UnimplementedAccountServer) RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method RandomMeme not implemented")
  333. }
  334. func (UnimplementedAccountServer) RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error) {
  335. return nil, status.Errorf(codes.Unimplemented, "method RandomSwiftMessage not implemented")
  336. }
  337. func (UnimplementedAccountServer) CreateScrip(context.Context, *CreateScripRequest) (*ScripID, error) {
  338. return nil, status.Errorf(codes.Unimplemented, "method CreateScrip not implemented")
  339. }
  340. func (UnimplementedAccountServer) DeleteScrip(context.Context, *DeleteScripRequest) (*emptypb.Empty, error) {
  341. return nil, status.Errorf(codes.Unimplemented, "method DeleteScrip not implemented")
  342. }
  343. func (UnimplementedAccountServer) FindMyScrip(context.Context, *FindScripRequest) (*ScripReply, error) {
  344. return nil, status.Errorf(codes.Unimplemented, "method FindMyScrip not implemented")
  345. }
  346. func (UnimplementedAccountServer) FindRecommendScrip(context.Context, *FindScripRequest) (*ScripReply, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendScrip not implemented")
  348. }
  349. func (UnimplementedAccountServer) PersonLookScrip(context.Context, *PersonLookScripRequest) (*emptypb.Empty, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method PersonLookScrip not implemented")
  351. }
  352. func (UnimplementedAccountServer) PersonClickLookBack(context.Context, *common.PersonParam) (*ScripInfo, error) {
  353. return nil, status.Errorf(codes.Unimplemented, "method PersonClickLookBack not implemented")
  354. }
  355. func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
  356. // UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
  357. // Use of this interface is not recommended, as added methods to AccountServer will
  358. // result in compilation errors.
  359. type UnsafeAccountServer interface {
  360. mustEmbedUnimplementedAccountServer()
  361. }
  362. func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {
  363. s.RegisterService(&Account_ServiceDesc, srv)
  364. }
  365. func _Account_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  366. in := new(DebugLoginRequest)
  367. if err := dec(in); err != nil {
  368. return nil, err
  369. }
  370. if interceptor == nil {
  371. return srv.(AccountServer).DebugLogin(ctx, in)
  372. }
  373. info := &grpc.UnaryServerInfo{
  374. Server: srv,
  375. FullMethod: "/api.account.Account/DebugLogin",
  376. }
  377. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  378. return srv.(AccountServer).DebugLogin(ctx, req.(*DebugLoginRequest))
  379. }
  380. return interceptor(ctx, in, info, handler)
  381. }
  382. func _Account_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  383. in := new(AuthorizationRequest)
  384. if err := dec(in); err != nil {
  385. return nil, err
  386. }
  387. if interceptor == nil {
  388. return srv.(AccountServer).Authorization(ctx, in)
  389. }
  390. info := &grpc.UnaryServerInfo{
  391. Server: srv,
  392. FullMethod: "/api.account.Account/Authorization",
  393. }
  394. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  395. return srv.(AccountServer).Authorization(ctx, req.(*AuthorizationRequest))
  396. }
  397. return interceptor(ctx, in, info, handler)
  398. }
  399. func _Account_RandomNickname_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  400. in := new(common.SexReq)
  401. if err := dec(in); err != nil {
  402. return nil, err
  403. }
  404. if interceptor == nil {
  405. return srv.(AccountServer).RandomNickname(ctx, in)
  406. }
  407. info := &grpc.UnaryServerInfo{
  408. Server: srv,
  409. FullMethod: "/api.account.Account/RandomNickname",
  410. }
  411. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  412. return srv.(AccountServer).RandomNickname(ctx, req.(*common.SexReq))
  413. }
  414. return interceptor(ctx, in, info, handler)
  415. }
  416. func _Account_RandomAvatar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  417. in := new(common.SexReq)
  418. if err := dec(in); err != nil {
  419. return nil, err
  420. }
  421. if interceptor == nil {
  422. return srv.(AccountServer).RandomAvatar(ctx, in)
  423. }
  424. info := &grpc.UnaryServerInfo{
  425. Server: srv,
  426. FullMethod: "/api.account.Account/RandomAvatar",
  427. }
  428. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  429. return srv.(AccountServer).RandomAvatar(ctx, req.(*common.SexReq))
  430. }
  431. return interceptor(ctx, in, info, handler)
  432. }
  433. func _Account_RandomAvatarList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  434. in := new(common.SexReq)
  435. if err := dec(in); err != nil {
  436. return nil, err
  437. }
  438. if interceptor == nil {
  439. return srv.(AccountServer).RandomAvatarList(ctx, in)
  440. }
  441. info := &grpc.UnaryServerInfo{
  442. Server: srv,
  443. FullMethod: "/api.account.Account/RandomAvatarList",
  444. }
  445. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  446. return srv.(AccountServer).RandomAvatarList(ctx, req.(*common.SexReq))
  447. }
  448. return interceptor(ctx, in, info, handler)
  449. }
  450. func _Account_GetIdentityByOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  451. in := new(OpenIDAndAppIDRequest)
  452. if err := dec(in); err != nil {
  453. return nil, err
  454. }
  455. if interceptor == nil {
  456. return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, in)
  457. }
  458. info := &grpc.UnaryServerInfo{
  459. Server: srv,
  460. FullMethod: "/api.account.Account/GetIdentityByOpenIDAndAppID",
  461. }
  462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  463. return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
  464. }
  465. return interceptor(ctx, in, info, handler)
  466. }
  467. func _Account_GetIdentityByTypeAndPID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  468. in := new(common.PersonParam)
  469. if err := dec(in); err != nil {
  470. return nil, err
  471. }
  472. if interceptor == nil {
  473. return srv.(AccountServer).GetIdentityByTypeAndPID(ctx, in)
  474. }
  475. info := &grpc.UnaryServerInfo{
  476. Server: srv,
  477. FullMethod: "/api.account.Account/GetIdentityByTypeAndPID",
  478. }
  479. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  480. return srv.(AccountServer).GetIdentityByTypeAndPID(ctx, req.(*common.PersonParam))
  481. }
  482. return interceptor(ctx, in, info, handler)
  483. }
  484. func _Account_GetIdentityByFromOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  485. in := new(OpenIDAndAppIDRequest)
  486. if err := dec(in); err != nil {
  487. return nil, err
  488. }
  489. if interceptor == nil {
  490. return srv.(AccountServer).GetIdentityByFromOpenIDAndAppID(ctx, in)
  491. }
  492. info := &grpc.UnaryServerInfo{
  493. Server: srv,
  494. FullMethod: "/api.account.Account/GetIdentityByFromOpenIDAndAppID",
  495. }
  496. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  497. return srv.(AccountServer).GetIdentityByFromOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
  498. }
  499. return interceptor(ctx, in, info, handler)
  500. }
  501. func _Account_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  502. in := new(common.SexReq)
  503. if err := dec(in); err != nil {
  504. return nil, err
  505. }
  506. if interceptor == nil {
  507. return srv.(AccountServer).FindTagListBySex(ctx, in)
  508. }
  509. info := &grpc.UnaryServerInfo{
  510. Server: srv,
  511. FullMethod: "/api.account.Account/FindTagListBySex",
  512. }
  513. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  514. return srv.(AccountServer).FindTagListBySex(ctx, req.(*common.SexReq))
  515. }
  516. return interceptor(ctx, in, info, handler)
  517. }
  518. func _Account_FindTagsByIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  519. in := new(common.Ids)
  520. if err := dec(in); err != nil {
  521. return nil, err
  522. }
  523. if interceptor == nil {
  524. return srv.(AccountServer).FindTagsByIDs(ctx, in)
  525. }
  526. info := &grpc.UnaryServerInfo{
  527. Server: srv,
  528. FullMethod: "/api.account.Account/FindTagsByIDs",
  529. }
  530. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  531. return srv.(AccountServer).FindTagsByIDs(ctx, req.(*common.Ids))
  532. }
  533. return interceptor(ctx, in, info, handler)
  534. }
  535. func _Account_RandomIntroduce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  536. in := new(common.SexReq)
  537. if err := dec(in); err != nil {
  538. return nil, err
  539. }
  540. if interceptor == nil {
  541. return srv.(AccountServer).RandomIntroduce(ctx, in)
  542. }
  543. info := &grpc.UnaryServerInfo{
  544. Server: srv,
  545. FullMethod: "/api.account.Account/RandomIntroduce",
  546. }
  547. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  548. return srv.(AccountServer).RandomIntroduce(ctx, req.(*common.SexReq))
  549. }
  550. return interceptor(ctx, in, info, handler)
  551. }
  552. func _Account_UploadMaterialVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  553. in := new(MediaID)
  554. if err := dec(in); err != nil {
  555. return nil, err
  556. }
  557. if interceptor == nil {
  558. return srv.(AccountServer).UploadMaterialVoice(ctx, in)
  559. }
  560. info := &grpc.UnaryServerInfo{
  561. Server: srv,
  562. FullMethod: "/api.account.Account/UploadMaterialVoice",
  563. }
  564. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  565. return srv.(AccountServer).UploadMaterialVoice(ctx, req.(*MediaID))
  566. }
  567. return interceptor(ctx, in, info, handler)
  568. }
  569. func _Account_FindMemeByType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  570. in := new(common.MemeRequest)
  571. if err := dec(in); err != nil {
  572. return nil, err
  573. }
  574. if interceptor == nil {
  575. return srv.(AccountServer).FindMemeByType(ctx, in)
  576. }
  577. info := &grpc.UnaryServerInfo{
  578. Server: srv,
  579. FullMethod: "/api.account.Account/FindMemeByType",
  580. }
  581. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  582. return srv.(AccountServer).FindMemeByType(ctx, req.(*common.MemeRequest))
  583. }
  584. return interceptor(ctx, in, info, handler)
  585. }
  586. func _Account_FindChatTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  587. in := new(common.FindChatTopicRequest)
  588. if err := dec(in); err != nil {
  589. return nil, err
  590. }
  591. if interceptor == nil {
  592. return srv.(AccountServer).FindChatTopic(ctx, in)
  593. }
  594. info := &grpc.UnaryServerInfo{
  595. Server: srv,
  596. FullMethod: "/api.account.Account/FindChatTopic",
  597. }
  598. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  599. return srv.(AccountServer).FindChatTopic(ctx, req.(*common.FindChatTopicRequest))
  600. }
  601. return interceptor(ctx, in, info, handler)
  602. }
  603. func _Account_RandomMeme_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  604. in := new(common.RandomNum)
  605. if err := dec(in); err != nil {
  606. return nil, err
  607. }
  608. if interceptor == nil {
  609. return srv.(AccountServer).RandomMeme(ctx, in)
  610. }
  611. info := &grpc.UnaryServerInfo{
  612. Server: srv,
  613. FullMethod: "/api.account.Account/RandomMeme",
  614. }
  615. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  616. return srv.(AccountServer).RandomMeme(ctx, req.(*common.RandomNum))
  617. }
  618. return interceptor(ctx, in, info, handler)
  619. }
  620. func _Account_RandomSwiftMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  621. in := new(common.RandomNumAndSex)
  622. if err := dec(in); err != nil {
  623. return nil, err
  624. }
  625. if interceptor == nil {
  626. return srv.(AccountServer).RandomSwiftMessage(ctx, in)
  627. }
  628. info := &grpc.UnaryServerInfo{
  629. Server: srv,
  630. FullMethod: "/api.account.Account/RandomSwiftMessage",
  631. }
  632. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  633. return srv.(AccountServer).RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
  634. }
  635. return interceptor(ctx, in, info, handler)
  636. }
  637. func _Account_CreateScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  638. in := new(CreateScripRequest)
  639. if err := dec(in); err != nil {
  640. return nil, err
  641. }
  642. if interceptor == nil {
  643. return srv.(AccountServer).CreateScrip(ctx, in)
  644. }
  645. info := &grpc.UnaryServerInfo{
  646. Server: srv,
  647. FullMethod: "/api.account.Account/CreateScrip",
  648. }
  649. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  650. return srv.(AccountServer).CreateScrip(ctx, req.(*CreateScripRequest))
  651. }
  652. return interceptor(ctx, in, info, handler)
  653. }
  654. func _Account_DeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  655. in := new(DeleteScripRequest)
  656. if err := dec(in); err != nil {
  657. return nil, err
  658. }
  659. if interceptor == nil {
  660. return srv.(AccountServer).DeleteScrip(ctx, in)
  661. }
  662. info := &grpc.UnaryServerInfo{
  663. Server: srv,
  664. FullMethod: "/api.account.Account/DeleteScrip",
  665. }
  666. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  667. return srv.(AccountServer).DeleteScrip(ctx, req.(*DeleteScripRequest))
  668. }
  669. return interceptor(ctx, in, info, handler)
  670. }
  671. func _Account_FindMyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  672. in := new(FindScripRequest)
  673. if err := dec(in); err != nil {
  674. return nil, err
  675. }
  676. if interceptor == nil {
  677. return srv.(AccountServer).FindMyScrip(ctx, in)
  678. }
  679. info := &grpc.UnaryServerInfo{
  680. Server: srv,
  681. FullMethod: "/api.account.Account/FindMyScrip",
  682. }
  683. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  684. return srv.(AccountServer).FindMyScrip(ctx, req.(*FindScripRequest))
  685. }
  686. return interceptor(ctx, in, info, handler)
  687. }
  688. func _Account_FindRecommendScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  689. in := new(FindScripRequest)
  690. if err := dec(in); err != nil {
  691. return nil, err
  692. }
  693. if interceptor == nil {
  694. return srv.(AccountServer).FindRecommendScrip(ctx, in)
  695. }
  696. info := &grpc.UnaryServerInfo{
  697. Server: srv,
  698. FullMethod: "/api.account.Account/FindRecommendScrip",
  699. }
  700. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  701. return srv.(AccountServer).FindRecommendScrip(ctx, req.(*FindScripRequest))
  702. }
  703. return interceptor(ctx, in, info, handler)
  704. }
  705. func _Account_PersonLookScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  706. in := new(PersonLookScripRequest)
  707. if err := dec(in); err != nil {
  708. return nil, err
  709. }
  710. if interceptor == nil {
  711. return srv.(AccountServer).PersonLookScrip(ctx, in)
  712. }
  713. info := &grpc.UnaryServerInfo{
  714. Server: srv,
  715. FullMethod: "/api.account.Account/PersonLookScrip",
  716. }
  717. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  718. return srv.(AccountServer).PersonLookScrip(ctx, req.(*PersonLookScripRequest))
  719. }
  720. return interceptor(ctx, in, info, handler)
  721. }
  722. func _Account_PersonClickLookBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  723. in := new(common.PersonParam)
  724. if err := dec(in); err != nil {
  725. return nil, err
  726. }
  727. if interceptor == nil {
  728. return srv.(AccountServer).PersonClickLookBack(ctx, in)
  729. }
  730. info := &grpc.UnaryServerInfo{
  731. Server: srv,
  732. FullMethod: "/api.account.Account/PersonClickLookBack",
  733. }
  734. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  735. return srv.(AccountServer).PersonClickLookBack(ctx, req.(*common.PersonParam))
  736. }
  737. return interceptor(ctx, in, info, handler)
  738. }
  739. // Account_ServiceDesc is the grpc.ServiceDesc for Account service.
  740. // It's only intended for direct use with grpc.RegisterService,
  741. // and not to be introspected or modified (even as a copy)
  742. var Account_ServiceDesc = grpc.ServiceDesc{
  743. ServiceName: "api.account.Account",
  744. HandlerType: (*AccountServer)(nil),
  745. Methods: []grpc.MethodDesc{
  746. {
  747. MethodName: "DebugLogin",
  748. Handler: _Account_DebugLogin_Handler,
  749. },
  750. {
  751. MethodName: "Authorization",
  752. Handler: _Account_Authorization_Handler,
  753. },
  754. {
  755. MethodName: "RandomNickname",
  756. Handler: _Account_RandomNickname_Handler,
  757. },
  758. {
  759. MethodName: "RandomAvatar",
  760. Handler: _Account_RandomAvatar_Handler,
  761. },
  762. {
  763. MethodName: "RandomAvatarList",
  764. Handler: _Account_RandomAvatarList_Handler,
  765. },
  766. {
  767. MethodName: "GetIdentityByOpenIDAndAppID",
  768. Handler: _Account_GetIdentityByOpenIDAndAppID_Handler,
  769. },
  770. {
  771. MethodName: "GetIdentityByTypeAndPID",
  772. Handler: _Account_GetIdentityByTypeAndPID_Handler,
  773. },
  774. {
  775. MethodName: "GetIdentityByFromOpenIDAndAppID",
  776. Handler: _Account_GetIdentityByFromOpenIDAndAppID_Handler,
  777. },
  778. {
  779. MethodName: "FindTagListBySex",
  780. Handler: _Account_FindTagListBySex_Handler,
  781. },
  782. {
  783. MethodName: "FindTagsByIDs",
  784. Handler: _Account_FindTagsByIDs_Handler,
  785. },
  786. {
  787. MethodName: "RandomIntroduce",
  788. Handler: _Account_RandomIntroduce_Handler,
  789. },
  790. {
  791. MethodName: "UploadMaterialVoice",
  792. Handler: _Account_UploadMaterialVoice_Handler,
  793. },
  794. {
  795. MethodName: "FindMemeByType",
  796. Handler: _Account_FindMemeByType_Handler,
  797. },
  798. {
  799. MethodName: "FindChatTopic",
  800. Handler: _Account_FindChatTopic_Handler,
  801. },
  802. {
  803. MethodName: "RandomMeme",
  804. Handler: _Account_RandomMeme_Handler,
  805. },
  806. {
  807. MethodName: "RandomSwiftMessage",
  808. Handler: _Account_RandomSwiftMessage_Handler,
  809. },
  810. {
  811. MethodName: "CreateScrip",
  812. Handler: _Account_CreateScrip_Handler,
  813. },
  814. {
  815. MethodName: "DeleteScrip",
  816. Handler: _Account_DeleteScrip_Handler,
  817. },
  818. {
  819. MethodName: "FindMyScrip",
  820. Handler: _Account_FindMyScrip_Handler,
  821. },
  822. {
  823. MethodName: "FindRecommendScrip",
  824. Handler: _Account_FindRecommendScrip_Handler,
  825. },
  826. {
  827. MethodName: "PersonLookScrip",
  828. Handler: _Account_PersonLookScrip_Handler,
  829. },
  830. {
  831. MethodName: "PersonClickLookBack",
  832. Handler: _Account_PersonClickLookBack_Handler,
  833. },
  834. },
  835. Streams: []grpc.StreamDesc{},
  836. Metadata: "account.proto",
  837. }