slowwild_grpc.pb.go 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.3.0
  4. // - protoc v3.21.2
  5. // source: proto/slowwild.proto
  6. package slowwildserver
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. const (
  18. SlowWildServer_Login_FullMethodName = "/slowwildserver.SlowWildServer/Login"
  19. SlowWildServer_Register_FullMethodName = "/slowwildserver.SlowWildServer/Register"
  20. SlowWildServer_GetUserInfo_FullMethodName = "/slowwildserver.SlowWildServer/GetUserInfo"
  21. SlowWildServer_FindUser_FullMethodName = "/slowwildserver.SlowWildServer/FindUser"
  22. SlowWildServer_UserFollow_FullMethodName = "/slowwildserver.SlowWildServer/UserFollow"
  23. SlowWildServer_UnUserFollow_FullMethodName = "/slowwildserver.SlowWildServer/UnUserFollow"
  24. SlowWildServer_GetFans_FullMethodName = "/slowwildserver.SlowWildServer/GetFans"
  25. SlowWildServer_GetFollows_FullMethodName = "/slowwildserver.SlowWildServer/GetFollows"
  26. SlowWildServer_GetUserProfile_FullMethodName = "/slowwildserver.SlowWildServer/GetUserProfile"
  27. SlowWildServer_SearchUsername_FullMethodName = "/slowwildserver.SlowWildServer/SearchUsername"
  28. SlowWildServer_CreatePost_FullMethodName = "/slowwildserver.SlowWildServer/CreatePost"
  29. SlowWildServer_GetTagList_FullMethodName = "/slowwildserver.SlowWildServer/GetTagList"
  30. SlowWildServer_GetTag_FullMethodName = "/slowwildserver.SlowWildServer/GetTag"
  31. SlowWildServer_GetPostList_FullMethodName = "/slowwildserver.SlowWildServer/GetPostList"
  32. SlowWildServer_GetPost_FullMethodName = "/slowwildserver.SlowWildServer/GetPost"
  33. SlowWildServer_PostUpvote_FullMethodName = "/slowwildserver.SlowWildServer/PostUpvote"
  34. SlowWildServer_PostShare_FullMethodName = "/slowwildserver.SlowWildServer/PostShare"
  35. SlowWildServer_PostCollection_FullMethodName = "/slowwildserver.SlowWildServer/PostCollection"
  36. SlowWildServer_PostComment_FullMethodName = "/slowwildserver.SlowWildServer/PostComment"
  37. SlowWildServer_PostReply_FullMethodName = "/slowwildserver.SlowWildServer/PostReply"
  38. SlowWildServer_GetPostCommentList_FullMethodName = "/slowwildserver.SlowWildServer/GetPostCommentList"
  39. SlowWildServer_GetReplyList_FullMethodName = "/slowwildserver.SlowWildServer/GetReplyList"
  40. SlowWildServer_PostCommentUpvote_FullMethodName = "/slowwildserver.SlowWildServer/PostCommentUpvote"
  41. SlowWildServer_PostDelete_FullMethodName = "/slowwildserver.SlowWildServer/PostDelete"
  42. SlowWildServer_CommentDelete_FullMethodName = "/slowwildserver.SlowWildServer/CommentDelete"
  43. SlowWildServer_GetUserPostList_FullMethodName = "/slowwildserver.SlowWildServer/GetUserPostList"
  44. SlowWildServer_GetUserPostCollectionList_FullMethodName = "/slowwildserver.SlowWildServer/GetUserPostCollectionList"
  45. SlowWildServer_GetUserPostLikeList_FullMethodName = "/slowwildserver.SlowWildServer/GetUserPostLikeList"
  46. )
  47. // SlowWildServerClient is the client API for SlowWildServer service.
  48. //
  49. // 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.
  50. type SlowWildServerClient interface {
  51. // 用户登录
  52. Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error)
  53. // 用户注册
  54. Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error)
  55. // 获取用户信息
  56. GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error)
  57. // 查询用户信息
  58. FindUser(ctx context.Context, in *FindUserReq, opts ...grpc.CallOption) (*FindUserResp, error)
  59. // 关注用户
  60. UserFollow(ctx context.Context, in *FollowUserReq, opts ...grpc.CallOption) (*FollowUserRes, error)
  61. // 取消关注用户
  62. UnUserFollow(ctx context.Context, in *UnFollowUserReq, opts ...grpc.CallOption) (*UnFollowUserRes, error)
  63. // 获取我得粉丝
  64. GetFans(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error)
  65. // 查询我的关注
  66. GetFollows(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error)
  67. // 查询用户的详细信息
  68. GetUserProfile(ctx context.Context, in *GetUserProfileReq, opts ...grpc.CallOption) (*GetUserProfileRes, error)
  69. // 搜索用户名称
  70. SearchUsername(ctx context.Context, in *SearchUsernameReq, opts ...grpc.CallOption) (*SearchUsernameRes, error)
  71. // 发布帖子
  72. CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CreatePostRsp, error)
  73. // 获取话题列表
  74. GetTagList(ctx context.Context, in *GetTagListReq, opts ...grpc.CallOption) (*GetTagListRsp, error)
  75. // 获取话题详情
  76. GetTag(ctx context.Context, in *GetTagReq, opts ...grpc.CallOption) (*GetTagRsp, error)
  77. // 获取帖子列表
  78. GetPostList(ctx context.Context, in *GetPostListReq, opts ...grpc.CallOption) (*GetPostListRsp, error)
  79. // 获取帖子详情
  80. GetPost(ctx context.Context, in *GetPostReq, opts ...grpc.CallOption) (*GetPostRsp, error)
  81. // 点赞帖子
  82. PostUpvote(ctx context.Context, in *PostUpvoteReq, opts ...grpc.CallOption) (*PostUpvoteRsp, error)
  83. // 分享帖子
  84. PostShare(ctx context.Context, in *PostShareReq, opts ...grpc.CallOption) (*PostShareRsp, error)
  85. // 收藏帖子
  86. PostCollection(ctx context.Context, in *PostCollectionReq, opts ...grpc.CallOption) (*PostCollectionRsp, error)
  87. // 发布评论
  88. PostComment(ctx context.Context, in *PostCommentReq, opts ...grpc.CallOption) (*PostCommentRsp, error)
  89. // 发布回复
  90. PostReply(ctx context.Context, in *PostReplyReq, opts ...grpc.CallOption) (*PostReplyRsp, error)
  91. // 获取评论列表
  92. GetPostCommentList(ctx context.Context, in *GetPostCommentListReq, opts ...grpc.CallOption) (*GetPostCommentListRsp, error)
  93. // 获取回复列表
  94. GetReplyList(ctx context.Context, in *GetReplyListReq, opts ...grpc.CallOption) (*GetReplyListRsp, error)
  95. // 评论点赞
  96. PostCommentUpvote(ctx context.Context, in *PostCommentUpvoteReq, opts ...grpc.CallOption) (*PostCommentUpvoteRsp, error)
  97. // 删除帖子
  98. PostDelete(ctx context.Context, in *PostDeleteReq, opts ...grpc.CallOption) (*PostDeleteRsp, error)
  99. // 删除回复/评论
  100. CommentDelete(ctx context.Context, in *CommentDeleteReq, opts ...grpc.CallOption) (*CommentDeleteRsp, error)
  101. // 获取用户发布的帖子
  102. GetUserPostList(ctx context.Context, in *GetUserPostListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error)
  103. // 获取用户收藏的帖子
  104. GetUserPostCollectionList(ctx context.Context, in *GetUserPostCollectionListReq, opts ...grpc.CallOption) (*GetUserPostCollectionListRsp, error)
  105. // 获取用户点赞过的帖子
  106. GetUserPostLikeList(ctx context.Context, in *GetUserPostLikeListReq, opts ...grpc.CallOption) (*GetUserPostLikeListRsp, error)
  107. }
  108. type slowWildServerClient struct {
  109. cc grpc.ClientConnInterface
  110. }
  111. func NewSlowWildServerClient(cc grpc.ClientConnInterface) SlowWildServerClient {
  112. return &slowWildServerClient{cc}
  113. }
  114. func (c *slowWildServerClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) {
  115. out := new(LoginAndRegisterRsp)
  116. err := c.cc.Invoke(ctx, SlowWildServer_Login_FullMethodName, in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *slowWildServerClient) Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) {
  123. out := new(LoginAndRegisterRsp)
  124. err := c.cc.Invoke(ctx, SlowWildServer_Register_FullMethodName, in, out, opts...)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return out, nil
  129. }
  130. func (c *slowWildServerClient) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) {
  131. out := new(GetUserInfoResp)
  132. err := c.cc.Invoke(ctx, SlowWildServer_GetUserInfo_FullMethodName, in, out, opts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *slowWildServerClient) FindUser(ctx context.Context, in *FindUserReq, opts ...grpc.CallOption) (*FindUserResp, error) {
  139. out := new(FindUserResp)
  140. err := c.cc.Invoke(ctx, SlowWildServer_FindUser_FullMethodName, in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *slowWildServerClient) UserFollow(ctx context.Context, in *FollowUserReq, opts ...grpc.CallOption) (*FollowUserRes, error) {
  147. out := new(FollowUserRes)
  148. err := c.cc.Invoke(ctx, SlowWildServer_UserFollow_FullMethodName, in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *slowWildServerClient) UnUserFollow(ctx context.Context, in *UnFollowUserReq, opts ...grpc.CallOption) (*UnFollowUserRes, error) {
  155. out := new(UnFollowUserRes)
  156. err := c.cc.Invoke(ctx, SlowWildServer_UnUserFollow_FullMethodName, in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *slowWildServerClient) GetFans(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) {
  163. out := new(GetFollowingRes)
  164. err := c.cc.Invoke(ctx, SlowWildServer_GetFans_FullMethodName, in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *slowWildServerClient) GetFollows(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) {
  171. out := new(GetFollowingRes)
  172. err := c.cc.Invoke(ctx, SlowWildServer_GetFollows_FullMethodName, in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *slowWildServerClient) GetUserProfile(ctx context.Context, in *GetUserProfileReq, opts ...grpc.CallOption) (*GetUserProfileRes, error) {
  179. out := new(GetUserProfileRes)
  180. err := c.cc.Invoke(ctx, SlowWildServer_GetUserProfile_FullMethodName, in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *slowWildServerClient) SearchUsername(ctx context.Context, in *SearchUsernameReq, opts ...grpc.CallOption) (*SearchUsernameRes, error) {
  187. out := new(SearchUsernameRes)
  188. err := c.cc.Invoke(ctx, SlowWildServer_SearchUsername_FullMethodName, in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *slowWildServerClient) CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CreatePostRsp, error) {
  195. out := new(CreatePostRsp)
  196. err := c.cc.Invoke(ctx, SlowWildServer_CreatePost_FullMethodName, in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *slowWildServerClient) GetTagList(ctx context.Context, in *GetTagListReq, opts ...grpc.CallOption) (*GetTagListRsp, error) {
  203. out := new(GetTagListRsp)
  204. err := c.cc.Invoke(ctx, SlowWildServer_GetTagList_FullMethodName, in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *slowWildServerClient) GetTag(ctx context.Context, in *GetTagReq, opts ...grpc.CallOption) (*GetTagRsp, error) {
  211. out := new(GetTagRsp)
  212. err := c.cc.Invoke(ctx, SlowWildServer_GetTag_FullMethodName, in, out, opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. func (c *slowWildServerClient) GetPostList(ctx context.Context, in *GetPostListReq, opts ...grpc.CallOption) (*GetPostListRsp, error) {
  219. out := new(GetPostListRsp)
  220. err := c.cc.Invoke(ctx, SlowWildServer_GetPostList_FullMethodName, in, out, opts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *slowWildServerClient) GetPost(ctx context.Context, in *GetPostReq, opts ...grpc.CallOption) (*GetPostRsp, error) {
  227. out := new(GetPostRsp)
  228. err := c.cc.Invoke(ctx, SlowWildServer_GetPost_FullMethodName, in, out, opts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *slowWildServerClient) PostUpvote(ctx context.Context, in *PostUpvoteReq, opts ...grpc.CallOption) (*PostUpvoteRsp, error) {
  235. out := new(PostUpvoteRsp)
  236. err := c.cc.Invoke(ctx, SlowWildServer_PostUpvote_FullMethodName, in, out, opts...)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return out, nil
  241. }
  242. func (c *slowWildServerClient) PostShare(ctx context.Context, in *PostShareReq, opts ...grpc.CallOption) (*PostShareRsp, error) {
  243. out := new(PostShareRsp)
  244. err := c.cc.Invoke(ctx, SlowWildServer_PostShare_FullMethodName, in, out, opts...)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return out, nil
  249. }
  250. func (c *slowWildServerClient) PostCollection(ctx context.Context, in *PostCollectionReq, opts ...grpc.CallOption) (*PostCollectionRsp, error) {
  251. out := new(PostCollectionRsp)
  252. err := c.cc.Invoke(ctx, SlowWildServer_PostCollection_FullMethodName, in, out, opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return out, nil
  257. }
  258. func (c *slowWildServerClient) PostComment(ctx context.Context, in *PostCommentReq, opts ...grpc.CallOption) (*PostCommentRsp, error) {
  259. out := new(PostCommentRsp)
  260. err := c.cc.Invoke(ctx, SlowWildServer_PostComment_FullMethodName, in, out, opts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *slowWildServerClient) PostReply(ctx context.Context, in *PostReplyReq, opts ...grpc.CallOption) (*PostReplyRsp, error) {
  267. out := new(PostReplyRsp)
  268. err := c.cc.Invoke(ctx, SlowWildServer_PostReply_FullMethodName, in, out, opts...)
  269. if err != nil {
  270. return nil, err
  271. }
  272. return out, nil
  273. }
  274. func (c *slowWildServerClient) GetPostCommentList(ctx context.Context, in *GetPostCommentListReq, opts ...grpc.CallOption) (*GetPostCommentListRsp, error) {
  275. out := new(GetPostCommentListRsp)
  276. err := c.cc.Invoke(ctx, SlowWildServer_GetPostCommentList_FullMethodName, in, out, opts...)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return out, nil
  281. }
  282. func (c *slowWildServerClient) GetReplyList(ctx context.Context, in *GetReplyListReq, opts ...grpc.CallOption) (*GetReplyListRsp, error) {
  283. out := new(GetReplyListRsp)
  284. err := c.cc.Invoke(ctx, SlowWildServer_GetReplyList_FullMethodName, in, out, opts...)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return out, nil
  289. }
  290. func (c *slowWildServerClient) PostCommentUpvote(ctx context.Context, in *PostCommentUpvoteReq, opts ...grpc.CallOption) (*PostCommentUpvoteRsp, error) {
  291. out := new(PostCommentUpvoteRsp)
  292. err := c.cc.Invoke(ctx, SlowWildServer_PostCommentUpvote_FullMethodName, in, out, opts...)
  293. if err != nil {
  294. return nil, err
  295. }
  296. return out, nil
  297. }
  298. func (c *slowWildServerClient) PostDelete(ctx context.Context, in *PostDeleteReq, opts ...grpc.CallOption) (*PostDeleteRsp, error) {
  299. out := new(PostDeleteRsp)
  300. err := c.cc.Invoke(ctx, SlowWildServer_PostDelete_FullMethodName, in, out, opts...)
  301. if err != nil {
  302. return nil, err
  303. }
  304. return out, nil
  305. }
  306. func (c *slowWildServerClient) CommentDelete(ctx context.Context, in *CommentDeleteReq, opts ...grpc.CallOption) (*CommentDeleteRsp, error) {
  307. out := new(CommentDeleteRsp)
  308. err := c.cc.Invoke(ctx, SlowWildServer_CommentDelete_FullMethodName, in, out, opts...)
  309. if err != nil {
  310. return nil, err
  311. }
  312. return out, nil
  313. }
  314. func (c *slowWildServerClient) GetUserPostList(ctx context.Context, in *GetUserPostListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error) {
  315. out := new(GetUserPostListRsp)
  316. err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostList_FullMethodName, in, out, opts...)
  317. if err != nil {
  318. return nil, err
  319. }
  320. return out, nil
  321. }
  322. func (c *slowWildServerClient) GetUserPostCollectionList(ctx context.Context, in *GetUserPostCollectionListReq, opts ...grpc.CallOption) (*GetUserPostCollectionListRsp, error) {
  323. out := new(GetUserPostCollectionListRsp)
  324. err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostCollectionList_FullMethodName, in, out, opts...)
  325. if err != nil {
  326. return nil, err
  327. }
  328. return out, nil
  329. }
  330. func (c *slowWildServerClient) GetUserPostLikeList(ctx context.Context, in *GetUserPostLikeListReq, opts ...grpc.CallOption) (*GetUserPostLikeListRsp, error) {
  331. out := new(GetUserPostLikeListRsp)
  332. err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostLikeList_FullMethodName, in, out, opts...)
  333. if err != nil {
  334. return nil, err
  335. }
  336. return out, nil
  337. }
  338. // SlowWildServerServer is the server API for SlowWildServer service.
  339. // All implementations must embed UnimplementedSlowWildServerServer
  340. // for forward compatibility
  341. type SlowWildServerServer interface {
  342. // 用户登录
  343. Login(context.Context, *LoginReq) (*LoginAndRegisterRsp, error)
  344. // 用户注册
  345. Register(context.Context, *RegisterReq) (*LoginAndRegisterRsp, error)
  346. // 获取用户信息
  347. GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
  348. // 查询用户信息
  349. FindUser(context.Context, *FindUserReq) (*FindUserResp, error)
  350. // 关注用户
  351. UserFollow(context.Context, *FollowUserReq) (*FollowUserRes, error)
  352. // 取消关注用户
  353. UnUserFollow(context.Context, *UnFollowUserReq) (*UnFollowUserRes, error)
  354. // 获取我得粉丝
  355. GetFans(context.Context, *GetFollowingReq) (*GetFollowingRes, error)
  356. // 查询我的关注
  357. GetFollows(context.Context, *GetFollowingReq) (*GetFollowingRes, error)
  358. // 查询用户的详细信息
  359. GetUserProfile(context.Context, *GetUserProfileReq) (*GetUserProfileRes, error)
  360. // 搜索用户名称
  361. SearchUsername(context.Context, *SearchUsernameReq) (*SearchUsernameRes, error)
  362. // 发布帖子
  363. CreatePost(context.Context, *CreatePostReq) (*CreatePostRsp, error)
  364. // 获取话题列表
  365. GetTagList(context.Context, *GetTagListReq) (*GetTagListRsp, error)
  366. // 获取话题详情
  367. GetTag(context.Context, *GetTagReq) (*GetTagRsp, error)
  368. // 获取帖子列表
  369. GetPostList(context.Context, *GetPostListReq) (*GetPostListRsp, error)
  370. // 获取帖子详情
  371. GetPost(context.Context, *GetPostReq) (*GetPostRsp, error)
  372. // 点赞帖子
  373. PostUpvote(context.Context, *PostUpvoteReq) (*PostUpvoteRsp, error)
  374. // 分享帖子
  375. PostShare(context.Context, *PostShareReq) (*PostShareRsp, error)
  376. // 收藏帖子
  377. PostCollection(context.Context, *PostCollectionReq) (*PostCollectionRsp, error)
  378. // 发布评论
  379. PostComment(context.Context, *PostCommentReq) (*PostCommentRsp, error)
  380. // 发布回复
  381. PostReply(context.Context, *PostReplyReq) (*PostReplyRsp, error)
  382. // 获取评论列表
  383. GetPostCommentList(context.Context, *GetPostCommentListReq) (*GetPostCommentListRsp, error)
  384. // 获取回复列表
  385. GetReplyList(context.Context, *GetReplyListReq) (*GetReplyListRsp, error)
  386. // 评论点赞
  387. PostCommentUpvote(context.Context, *PostCommentUpvoteReq) (*PostCommentUpvoteRsp, error)
  388. // 删除帖子
  389. PostDelete(context.Context, *PostDeleteReq) (*PostDeleteRsp, error)
  390. // 删除回复/评论
  391. CommentDelete(context.Context, *CommentDeleteReq) (*CommentDeleteRsp, error)
  392. // 获取用户发布的帖子
  393. GetUserPostList(context.Context, *GetUserPostListReq) (*GetUserPostListRsp, error)
  394. // 获取用户收藏的帖子
  395. GetUserPostCollectionList(context.Context, *GetUserPostCollectionListReq) (*GetUserPostCollectionListRsp, error)
  396. // 获取用户点赞过的帖子
  397. GetUserPostLikeList(context.Context, *GetUserPostLikeListReq) (*GetUserPostLikeListRsp, error)
  398. mustEmbedUnimplementedSlowWildServerServer()
  399. }
  400. // UnimplementedSlowWildServerServer must be embedded to have forward compatible implementations.
  401. type UnimplementedSlowWildServerServer struct {
  402. }
  403. func (UnimplementedSlowWildServerServer) Login(context.Context, *LoginReq) (*LoginAndRegisterRsp, error) {
  404. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  405. }
  406. func (UnimplementedSlowWildServerServer) Register(context.Context, *RegisterReq) (*LoginAndRegisterRsp, error) {
  407. return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
  408. }
  409. func (UnimplementedSlowWildServerServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) {
  410. return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
  411. }
  412. func (UnimplementedSlowWildServerServer) FindUser(context.Context, *FindUserReq) (*FindUserResp, error) {
  413. return nil, status.Errorf(codes.Unimplemented, "method FindUser not implemented")
  414. }
  415. func (UnimplementedSlowWildServerServer) UserFollow(context.Context, *FollowUserReq) (*FollowUserRes, error) {
  416. return nil, status.Errorf(codes.Unimplemented, "method UserFollow not implemented")
  417. }
  418. func (UnimplementedSlowWildServerServer) UnUserFollow(context.Context, *UnFollowUserReq) (*UnFollowUserRes, error) {
  419. return nil, status.Errorf(codes.Unimplemented, "method UnUserFollow not implemented")
  420. }
  421. func (UnimplementedSlowWildServerServer) GetFans(context.Context, *GetFollowingReq) (*GetFollowingRes, error) {
  422. return nil, status.Errorf(codes.Unimplemented, "method GetFans not implemented")
  423. }
  424. func (UnimplementedSlowWildServerServer) GetFollows(context.Context, *GetFollowingReq) (*GetFollowingRes, error) {
  425. return nil, status.Errorf(codes.Unimplemented, "method GetFollows not implemented")
  426. }
  427. func (UnimplementedSlowWildServerServer) GetUserProfile(context.Context, *GetUserProfileReq) (*GetUserProfileRes, error) {
  428. return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented")
  429. }
  430. func (UnimplementedSlowWildServerServer) SearchUsername(context.Context, *SearchUsernameReq) (*SearchUsernameRes, error) {
  431. return nil, status.Errorf(codes.Unimplemented, "method SearchUsername not implemented")
  432. }
  433. func (UnimplementedSlowWildServerServer) CreatePost(context.Context, *CreatePostReq) (*CreatePostRsp, error) {
  434. return nil, status.Errorf(codes.Unimplemented, "method CreatePost not implemented")
  435. }
  436. func (UnimplementedSlowWildServerServer) GetTagList(context.Context, *GetTagListReq) (*GetTagListRsp, error) {
  437. return nil, status.Errorf(codes.Unimplemented, "method GetTagList not implemented")
  438. }
  439. func (UnimplementedSlowWildServerServer) GetTag(context.Context, *GetTagReq) (*GetTagRsp, error) {
  440. return nil, status.Errorf(codes.Unimplemented, "method GetTag not implemented")
  441. }
  442. func (UnimplementedSlowWildServerServer) GetPostList(context.Context, *GetPostListReq) (*GetPostListRsp, error) {
  443. return nil, status.Errorf(codes.Unimplemented, "method GetPostList not implemented")
  444. }
  445. func (UnimplementedSlowWildServerServer) GetPost(context.Context, *GetPostReq) (*GetPostRsp, error) {
  446. return nil, status.Errorf(codes.Unimplemented, "method GetPost not implemented")
  447. }
  448. func (UnimplementedSlowWildServerServer) PostUpvote(context.Context, *PostUpvoteReq) (*PostUpvoteRsp, error) {
  449. return nil, status.Errorf(codes.Unimplemented, "method PostUpvote not implemented")
  450. }
  451. func (UnimplementedSlowWildServerServer) PostShare(context.Context, *PostShareReq) (*PostShareRsp, error) {
  452. return nil, status.Errorf(codes.Unimplemented, "method PostShare not implemented")
  453. }
  454. func (UnimplementedSlowWildServerServer) PostCollection(context.Context, *PostCollectionReq) (*PostCollectionRsp, error) {
  455. return nil, status.Errorf(codes.Unimplemented, "method PostCollection not implemented")
  456. }
  457. func (UnimplementedSlowWildServerServer) PostComment(context.Context, *PostCommentReq) (*PostCommentRsp, error) {
  458. return nil, status.Errorf(codes.Unimplemented, "method PostComment not implemented")
  459. }
  460. func (UnimplementedSlowWildServerServer) PostReply(context.Context, *PostReplyReq) (*PostReplyRsp, error) {
  461. return nil, status.Errorf(codes.Unimplemented, "method PostReply not implemented")
  462. }
  463. func (UnimplementedSlowWildServerServer) GetPostCommentList(context.Context, *GetPostCommentListReq) (*GetPostCommentListRsp, error) {
  464. return nil, status.Errorf(codes.Unimplemented, "method GetPostCommentList not implemented")
  465. }
  466. func (UnimplementedSlowWildServerServer) GetReplyList(context.Context, *GetReplyListReq) (*GetReplyListRsp, error) {
  467. return nil, status.Errorf(codes.Unimplemented, "method GetReplyList not implemented")
  468. }
  469. func (UnimplementedSlowWildServerServer) PostCommentUpvote(context.Context, *PostCommentUpvoteReq) (*PostCommentUpvoteRsp, error) {
  470. return nil, status.Errorf(codes.Unimplemented, "method PostCommentUpvote not implemented")
  471. }
  472. func (UnimplementedSlowWildServerServer) PostDelete(context.Context, *PostDeleteReq) (*PostDeleteRsp, error) {
  473. return nil, status.Errorf(codes.Unimplemented, "method PostDelete not implemented")
  474. }
  475. func (UnimplementedSlowWildServerServer) CommentDelete(context.Context, *CommentDeleteReq) (*CommentDeleteRsp, error) {
  476. return nil, status.Errorf(codes.Unimplemented, "method CommentDelete not implemented")
  477. }
  478. func (UnimplementedSlowWildServerServer) GetUserPostList(context.Context, *GetUserPostListReq) (*GetUserPostListRsp, error) {
  479. return nil, status.Errorf(codes.Unimplemented, "method GetUserPostList not implemented")
  480. }
  481. func (UnimplementedSlowWildServerServer) GetUserPostCollectionList(context.Context, *GetUserPostCollectionListReq) (*GetUserPostCollectionListRsp, error) {
  482. return nil, status.Errorf(codes.Unimplemented, "method GetUserPostCollectionList not implemented")
  483. }
  484. func (UnimplementedSlowWildServerServer) GetUserPostLikeList(context.Context, *GetUserPostLikeListReq) (*GetUserPostLikeListRsp, error) {
  485. return nil, status.Errorf(codes.Unimplemented, "method GetUserPostLikeList not implemented")
  486. }
  487. func (UnimplementedSlowWildServerServer) mustEmbedUnimplementedSlowWildServerServer() {}
  488. // UnsafeSlowWildServerServer may be embedded to opt out of forward compatibility for this service.
  489. // Use of this interface is not recommended, as added methods to SlowWildServerServer will
  490. // result in compilation errors.
  491. type UnsafeSlowWildServerServer interface {
  492. mustEmbedUnimplementedSlowWildServerServer()
  493. }
  494. func RegisterSlowWildServerServer(s grpc.ServiceRegistrar, srv SlowWildServerServer) {
  495. s.RegisterService(&SlowWildServer_ServiceDesc, srv)
  496. }
  497. func _SlowWildServer_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  498. in := new(LoginReq)
  499. if err := dec(in); err != nil {
  500. return nil, err
  501. }
  502. if interceptor == nil {
  503. return srv.(SlowWildServerServer).Login(ctx, in)
  504. }
  505. info := &grpc.UnaryServerInfo{
  506. Server: srv,
  507. FullMethod: SlowWildServer_Login_FullMethodName,
  508. }
  509. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  510. return srv.(SlowWildServerServer).Login(ctx, req.(*LoginReq))
  511. }
  512. return interceptor(ctx, in, info, handler)
  513. }
  514. func _SlowWildServer_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  515. in := new(RegisterReq)
  516. if err := dec(in); err != nil {
  517. return nil, err
  518. }
  519. if interceptor == nil {
  520. return srv.(SlowWildServerServer).Register(ctx, in)
  521. }
  522. info := &grpc.UnaryServerInfo{
  523. Server: srv,
  524. FullMethod: SlowWildServer_Register_FullMethodName,
  525. }
  526. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  527. return srv.(SlowWildServerServer).Register(ctx, req.(*RegisterReq))
  528. }
  529. return interceptor(ctx, in, info, handler)
  530. }
  531. func _SlowWildServer_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  532. in := new(GetUserInfoReq)
  533. if err := dec(in); err != nil {
  534. return nil, err
  535. }
  536. if interceptor == nil {
  537. return srv.(SlowWildServerServer).GetUserInfo(ctx, in)
  538. }
  539. info := &grpc.UnaryServerInfo{
  540. Server: srv,
  541. FullMethod: SlowWildServer_GetUserInfo_FullMethodName,
  542. }
  543. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  544. return srv.(SlowWildServerServer).GetUserInfo(ctx, req.(*GetUserInfoReq))
  545. }
  546. return interceptor(ctx, in, info, handler)
  547. }
  548. func _SlowWildServer_FindUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  549. in := new(FindUserReq)
  550. if err := dec(in); err != nil {
  551. return nil, err
  552. }
  553. if interceptor == nil {
  554. return srv.(SlowWildServerServer).FindUser(ctx, in)
  555. }
  556. info := &grpc.UnaryServerInfo{
  557. Server: srv,
  558. FullMethod: SlowWildServer_FindUser_FullMethodName,
  559. }
  560. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  561. return srv.(SlowWildServerServer).FindUser(ctx, req.(*FindUserReq))
  562. }
  563. return interceptor(ctx, in, info, handler)
  564. }
  565. func _SlowWildServer_UserFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  566. in := new(FollowUserReq)
  567. if err := dec(in); err != nil {
  568. return nil, err
  569. }
  570. if interceptor == nil {
  571. return srv.(SlowWildServerServer).UserFollow(ctx, in)
  572. }
  573. info := &grpc.UnaryServerInfo{
  574. Server: srv,
  575. FullMethod: SlowWildServer_UserFollow_FullMethodName,
  576. }
  577. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  578. return srv.(SlowWildServerServer).UserFollow(ctx, req.(*FollowUserReq))
  579. }
  580. return interceptor(ctx, in, info, handler)
  581. }
  582. func _SlowWildServer_UnUserFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  583. in := new(UnFollowUserReq)
  584. if err := dec(in); err != nil {
  585. return nil, err
  586. }
  587. if interceptor == nil {
  588. return srv.(SlowWildServerServer).UnUserFollow(ctx, in)
  589. }
  590. info := &grpc.UnaryServerInfo{
  591. Server: srv,
  592. FullMethod: SlowWildServer_UnUserFollow_FullMethodName,
  593. }
  594. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  595. return srv.(SlowWildServerServer).UnUserFollow(ctx, req.(*UnFollowUserReq))
  596. }
  597. return interceptor(ctx, in, info, handler)
  598. }
  599. func _SlowWildServer_GetFans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  600. in := new(GetFollowingReq)
  601. if err := dec(in); err != nil {
  602. return nil, err
  603. }
  604. if interceptor == nil {
  605. return srv.(SlowWildServerServer).GetFans(ctx, in)
  606. }
  607. info := &grpc.UnaryServerInfo{
  608. Server: srv,
  609. FullMethod: SlowWildServer_GetFans_FullMethodName,
  610. }
  611. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  612. return srv.(SlowWildServerServer).GetFans(ctx, req.(*GetFollowingReq))
  613. }
  614. return interceptor(ctx, in, info, handler)
  615. }
  616. func _SlowWildServer_GetFollows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  617. in := new(GetFollowingReq)
  618. if err := dec(in); err != nil {
  619. return nil, err
  620. }
  621. if interceptor == nil {
  622. return srv.(SlowWildServerServer).GetFollows(ctx, in)
  623. }
  624. info := &grpc.UnaryServerInfo{
  625. Server: srv,
  626. FullMethod: SlowWildServer_GetFollows_FullMethodName,
  627. }
  628. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  629. return srv.(SlowWildServerServer).GetFollows(ctx, req.(*GetFollowingReq))
  630. }
  631. return interceptor(ctx, in, info, handler)
  632. }
  633. func _SlowWildServer_GetUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  634. in := new(GetUserProfileReq)
  635. if err := dec(in); err != nil {
  636. return nil, err
  637. }
  638. if interceptor == nil {
  639. return srv.(SlowWildServerServer).GetUserProfile(ctx, in)
  640. }
  641. info := &grpc.UnaryServerInfo{
  642. Server: srv,
  643. FullMethod: SlowWildServer_GetUserProfile_FullMethodName,
  644. }
  645. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  646. return srv.(SlowWildServerServer).GetUserProfile(ctx, req.(*GetUserProfileReq))
  647. }
  648. return interceptor(ctx, in, info, handler)
  649. }
  650. func _SlowWildServer_SearchUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  651. in := new(SearchUsernameReq)
  652. if err := dec(in); err != nil {
  653. return nil, err
  654. }
  655. if interceptor == nil {
  656. return srv.(SlowWildServerServer).SearchUsername(ctx, in)
  657. }
  658. info := &grpc.UnaryServerInfo{
  659. Server: srv,
  660. FullMethod: SlowWildServer_SearchUsername_FullMethodName,
  661. }
  662. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  663. return srv.(SlowWildServerServer).SearchUsername(ctx, req.(*SearchUsernameReq))
  664. }
  665. return interceptor(ctx, in, info, handler)
  666. }
  667. func _SlowWildServer_CreatePost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  668. in := new(CreatePostReq)
  669. if err := dec(in); err != nil {
  670. return nil, err
  671. }
  672. if interceptor == nil {
  673. return srv.(SlowWildServerServer).CreatePost(ctx, in)
  674. }
  675. info := &grpc.UnaryServerInfo{
  676. Server: srv,
  677. FullMethod: SlowWildServer_CreatePost_FullMethodName,
  678. }
  679. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  680. return srv.(SlowWildServerServer).CreatePost(ctx, req.(*CreatePostReq))
  681. }
  682. return interceptor(ctx, in, info, handler)
  683. }
  684. func _SlowWildServer_GetTagList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  685. in := new(GetTagListReq)
  686. if err := dec(in); err != nil {
  687. return nil, err
  688. }
  689. if interceptor == nil {
  690. return srv.(SlowWildServerServer).GetTagList(ctx, in)
  691. }
  692. info := &grpc.UnaryServerInfo{
  693. Server: srv,
  694. FullMethod: SlowWildServer_GetTagList_FullMethodName,
  695. }
  696. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  697. return srv.(SlowWildServerServer).GetTagList(ctx, req.(*GetTagListReq))
  698. }
  699. return interceptor(ctx, in, info, handler)
  700. }
  701. func _SlowWildServer_GetTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  702. in := new(GetTagReq)
  703. if err := dec(in); err != nil {
  704. return nil, err
  705. }
  706. if interceptor == nil {
  707. return srv.(SlowWildServerServer).GetTag(ctx, in)
  708. }
  709. info := &grpc.UnaryServerInfo{
  710. Server: srv,
  711. FullMethod: SlowWildServer_GetTag_FullMethodName,
  712. }
  713. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  714. return srv.(SlowWildServerServer).GetTag(ctx, req.(*GetTagReq))
  715. }
  716. return interceptor(ctx, in, info, handler)
  717. }
  718. func _SlowWildServer_GetPostList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  719. in := new(GetPostListReq)
  720. if err := dec(in); err != nil {
  721. return nil, err
  722. }
  723. if interceptor == nil {
  724. return srv.(SlowWildServerServer).GetPostList(ctx, in)
  725. }
  726. info := &grpc.UnaryServerInfo{
  727. Server: srv,
  728. FullMethod: SlowWildServer_GetPostList_FullMethodName,
  729. }
  730. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  731. return srv.(SlowWildServerServer).GetPostList(ctx, req.(*GetPostListReq))
  732. }
  733. return interceptor(ctx, in, info, handler)
  734. }
  735. func _SlowWildServer_GetPost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  736. in := new(GetPostReq)
  737. if err := dec(in); err != nil {
  738. return nil, err
  739. }
  740. if interceptor == nil {
  741. return srv.(SlowWildServerServer).GetPost(ctx, in)
  742. }
  743. info := &grpc.UnaryServerInfo{
  744. Server: srv,
  745. FullMethod: SlowWildServer_GetPost_FullMethodName,
  746. }
  747. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  748. return srv.(SlowWildServerServer).GetPost(ctx, req.(*GetPostReq))
  749. }
  750. return interceptor(ctx, in, info, handler)
  751. }
  752. func _SlowWildServer_PostUpvote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  753. in := new(PostUpvoteReq)
  754. if err := dec(in); err != nil {
  755. return nil, err
  756. }
  757. if interceptor == nil {
  758. return srv.(SlowWildServerServer).PostUpvote(ctx, in)
  759. }
  760. info := &grpc.UnaryServerInfo{
  761. Server: srv,
  762. FullMethod: SlowWildServer_PostUpvote_FullMethodName,
  763. }
  764. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  765. return srv.(SlowWildServerServer).PostUpvote(ctx, req.(*PostUpvoteReq))
  766. }
  767. return interceptor(ctx, in, info, handler)
  768. }
  769. func _SlowWildServer_PostShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  770. in := new(PostShareReq)
  771. if err := dec(in); err != nil {
  772. return nil, err
  773. }
  774. if interceptor == nil {
  775. return srv.(SlowWildServerServer).PostShare(ctx, in)
  776. }
  777. info := &grpc.UnaryServerInfo{
  778. Server: srv,
  779. FullMethod: SlowWildServer_PostShare_FullMethodName,
  780. }
  781. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  782. return srv.(SlowWildServerServer).PostShare(ctx, req.(*PostShareReq))
  783. }
  784. return interceptor(ctx, in, info, handler)
  785. }
  786. func _SlowWildServer_PostCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  787. in := new(PostCollectionReq)
  788. if err := dec(in); err != nil {
  789. return nil, err
  790. }
  791. if interceptor == nil {
  792. return srv.(SlowWildServerServer).PostCollection(ctx, in)
  793. }
  794. info := &grpc.UnaryServerInfo{
  795. Server: srv,
  796. FullMethod: SlowWildServer_PostCollection_FullMethodName,
  797. }
  798. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  799. return srv.(SlowWildServerServer).PostCollection(ctx, req.(*PostCollectionReq))
  800. }
  801. return interceptor(ctx, in, info, handler)
  802. }
  803. func _SlowWildServer_PostComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  804. in := new(PostCommentReq)
  805. if err := dec(in); err != nil {
  806. return nil, err
  807. }
  808. if interceptor == nil {
  809. return srv.(SlowWildServerServer).PostComment(ctx, in)
  810. }
  811. info := &grpc.UnaryServerInfo{
  812. Server: srv,
  813. FullMethod: SlowWildServer_PostComment_FullMethodName,
  814. }
  815. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  816. return srv.(SlowWildServerServer).PostComment(ctx, req.(*PostCommentReq))
  817. }
  818. return interceptor(ctx, in, info, handler)
  819. }
  820. func _SlowWildServer_PostReply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  821. in := new(PostReplyReq)
  822. if err := dec(in); err != nil {
  823. return nil, err
  824. }
  825. if interceptor == nil {
  826. return srv.(SlowWildServerServer).PostReply(ctx, in)
  827. }
  828. info := &grpc.UnaryServerInfo{
  829. Server: srv,
  830. FullMethod: SlowWildServer_PostReply_FullMethodName,
  831. }
  832. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  833. return srv.(SlowWildServerServer).PostReply(ctx, req.(*PostReplyReq))
  834. }
  835. return interceptor(ctx, in, info, handler)
  836. }
  837. func _SlowWildServer_GetPostCommentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  838. in := new(GetPostCommentListReq)
  839. if err := dec(in); err != nil {
  840. return nil, err
  841. }
  842. if interceptor == nil {
  843. return srv.(SlowWildServerServer).GetPostCommentList(ctx, in)
  844. }
  845. info := &grpc.UnaryServerInfo{
  846. Server: srv,
  847. FullMethod: SlowWildServer_GetPostCommentList_FullMethodName,
  848. }
  849. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  850. return srv.(SlowWildServerServer).GetPostCommentList(ctx, req.(*GetPostCommentListReq))
  851. }
  852. return interceptor(ctx, in, info, handler)
  853. }
  854. func _SlowWildServer_GetReplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  855. in := new(GetReplyListReq)
  856. if err := dec(in); err != nil {
  857. return nil, err
  858. }
  859. if interceptor == nil {
  860. return srv.(SlowWildServerServer).GetReplyList(ctx, in)
  861. }
  862. info := &grpc.UnaryServerInfo{
  863. Server: srv,
  864. FullMethod: SlowWildServer_GetReplyList_FullMethodName,
  865. }
  866. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  867. return srv.(SlowWildServerServer).GetReplyList(ctx, req.(*GetReplyListReq))
  868. }
  869. return interceptor(ctx, in, info, handler)
  870. }
  871. func _SlowWildServer_PostCommentUpvote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  872. in := new(PostCommentUpvoteReq)
  873. if err := dec(in); err != nil {
  874. return nil, err
  875. }
  876. if interceptor == nil {
  877. return srv.(SlowWildServerServer).PostCommentUpvote(ctx, in)
  878. }
  879. info := &grpc.UnaryServerInfo{
  880. Server: srv,
  881. FullMethod: SlowWildServer_PostCommentUpvote_FullMethodName,
  882. }
  883. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  884. return srv.(SlowWildServerServer).PostCommentUpvote(ctx, req.(*PostCommentUpvoteReq))
  885. }
  886. return interceptor(ctx, in, info, handler)
  887. }
  888. func _SlowWildServer_PostDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  889. in := new(PostDeleteReq)
  890. if err := dec(in); err != nil {
  891. return nil, err
  892. }
  893. if interceptor == nil {
  894. return srv.(SlowWildServerServer).PostDelete(ctx, in)
  895. }
  896. info := &grpc.UnaryServerInfo{
  897. Server: srv,
  898. FullMethod: SlowWildServer_PostDelete_FullMethodName,
  899. }
  900. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  901. return srv.(SlowWildServerServer).PostDelete(ctx, req.(*PostDeleteReq))
  902. }
  903. return interceptor(ctx, in, info, handler)
  904. }
  905. func _SlowWildServer_CommentDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  906. in := new(CommentDeleteReq)
  907. if err := dec(in); err != nil {
  908. return nil, err
  909. }
  910. if interceptor == nil {
  911. return srv.(SlowWildServerServer).CommentDelete(ctx, in)
  912. }
  913. info := &grpc.UnaryServerInfo{
  914. Server: srv,
  915. FullMethod: SlowWildServer_CommentDelete_FullMethodName,
  916. }
  917. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  918. return srv.(SlowWildServerServer).CommentDelete(ctx, req.(*CommentDeleteReq))
  919. }
  920. return interceptor(ctx, in, info, handler)
  921. }
  922. func _SlowWildServer_GetUserPostList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  923. in := new(GetUserPostListReq)
  924. if err := dec(in); err != nil {
  925. return nil, err
  926. }
  927. if interceptor == nil {
  928. return srv.(SlowWildServerServer).GetUserPostList(ctx, in)
  929. }
  930. info := &grpc.UnaryServerInfo{
  931. Server: srv,
  932. FullMethod: SlowWildServer_GetUserPostList_FullMethodName,
  933. }
  934. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  935. return srv.(SlowWildServerServer).GetUserPostList(ctx, req.(*GetUserPostListReq))
  936. }
  937. return interceptor(ctx, in, info, handler)
  938. }
  939. func _SlowWildServer_GetUserPostCollectionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  940. in := new(GetUserPostCollectionListReq)
  941. if err := dec(in); err != nil {
  942. return nil, err
  943. }
  944. if interceptor == nil {
  945. return srv.(SlowWildServerServer).GetUserPostCollectionList(ctx, in)
  946. }
  947. info := &grpc.UnaryServerInfo{
  948. Server: srv,
  949. FullMethod: SlowWildServer_GetUserPostCollectionList_FullMethodName,
  950. }
  951. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  952. return srv.(SlowWildServerServer).GetUserPostCollectionList(ctx, req.(*GetUserPostCollectionListReq))
  953. }
  954. return interceptor(ctx, in, info, handler)
  955. }
  956. func _SlowWildServer_GetUserPostLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  957. in := new(GetUserPostLikeListReq)
  958. if err := dec(in); err != nil {
  959. return nil, err
  960. }
  961. if interceptor == nil {
  962. return srv.(SlowWildServerServer).GetUserPostLikeList(ctx, in)
  963. }
  964. info := &grpc.UnaryServerInfo{
  965. Server: srv,
  966. FullMethod: SlowWildServer_GetUserPostLikeList_FullMethodName,
  967. }
  968. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  969. return srv.(SlowWildServerServer).GetUserPostLikeList(ctx, req.(*GetUserPostLikeListReq))
  970. }
  971. return interceptor(ctx, in, info, handler)
  972. }
  973. // SlowWildServer_ServiceDesc is the grpc.ServiceDesc for SlowWildServer service.
  974. // It's only intended for direct use with grpc.RegisterService,
  975. // and not to be introspected or modified (even as a copy)
  976. var SlowWildServer_ServiceDesc = grpc.ServiceDesc{
  977. ServiceName: "slowwildserver.SlowWildServer",
  978. HandlerType: (*SlowWildServerServer)(nil),
  979. Methods: []grpc.MethodDesc{
  980. {
  981. MethodName: "Login",
  982. Handler: _SlowWildServer_Login_Handler,
  983. },
  984. {
  985. MethodName: "Register",
  986. Handler: _SlowWildServer_Register_Handler,
  987. },
  988. {
  989. MethodName: "GetUserInfo",
  990. Handler: _SlowWildServer_GetUserInfo_Handler,
  991. },
  992. {
  993. MethodName: "FindUser",
  994. Handler: _SlowWildServer_FindUser_Handler,
  995. },
  996. {
  997. MethodName: "UserFollow",
  998. Handler: _SlowWildServer_UserFollow_Handler,
  999. },
  1000. {
  1001. MethodName: "UnUserFollow",
  1002. Handler: _SlowWildServer_UnUserFollow_Handler,
  1003. },
  1004. {
  1005. MethodName: "GetFans",
  1006. Handler: _SlowWildServer_GetFans_Handler,
  1007. },
  1008. {
  1009. MethodName: "GetFollows",
  1010. Handler: _SlowWildServer_GetFollows_Handler,
  1011. },
  1012. {
  1013. MethodName: "GetUserProfile",
  1014. Handler: _SlowWildServer_GetUserProfile_Handler,
  1015. },
  1016. {
  1017. MethodName: "SearchUsername",
  1018. Handler: _SlowWildServer_SearchUsername_Handler,
  1019. },
  1020. {
  1021. MethodName: "CreatePost",
  1022. Handler: _SlowWildServer_CreatePost_Handler,
  1023. },
  1024. {
  1025. MethodName: "GetTagList",
  1026. Handler: _SlowWildServer_GetTagList_Handler,
  1027. },
  1028. {
  1029. MethodName: "GetTag",
  1030. Handler: _SlowWildServer_GetTag_Handler,
  1031. },
  1032. {
  1033. MethodName: "GetPostList",
  1034. Handler: _SlowWildServer_GetPostList_Handler,
  1035. },
  1036. {
  1037. MethodName: "GetPost",
  1038. Handler: _SlowWildServer_GetPost_Handler,
  1039. },
  1040. {
  1041. MethodName: "PostUpvote",
  1042. Handler: _SlowWildServer_PostUpvote_Handler,
  1043. },
  1044. {
  1045. MethodName: "PostShare",
  1046. Handler: _SlowWildServer_PostShare_Handler,
  1047. },
  1048. {
  1049. MethodName: "PostCollection",
  1050. Handler: _SlowWildServer_PostCollection_Handler,
  1051. },
  1052. {
  1053. MethodName: "PostComment",
  1054. Handler: _SlowWildServer_PostComment_Handler,
  1055. },
  1056. {
  1057. MethodName: "PostReply",
  1058. Handler: _SlowWildServer_PostReply_Handler,
  1059. },
  1060. {
  1061. MethodName: "GetPostCommentList",
  1062. Handler: _SlowWildServer_GetPostCommentList_Handler,
  1063. },
  1064. {
  1065. MethodName: "GetReplyList",
  1066. Handler: _SlowWildServer_GetReplyList_Handler,
  1067. },
  1068. {
  1069. MethodName: "PostCommentUpvote",
  1070. Handler: _SlowWildServer_PostCommentUpvote_Handler,
  1071. },
  1072. {
  1073. MethodName: "PostDelete",
  1074. Handler: _SlowWildServer_PostDelete_Handler,
  1075. },
  1076. {
  1077. MethodName: "CommentDelete",
  1078. Handler: _SlowWildServer_CommentDelete_Handler,
  1079. },
  1080. {
  1081. MethodName: "GetUserPostList",
  1082. Handler: _SlowWildServer_GetUserPostList_Handler,
  1083. },
  1084. {
  1085. MethodName: "GetUserPostCollectionList",
  1086. Handler: _SlowWildServer_GetUserPostCollectionList_Handler,
  1087. },
  1088. {
  1089. MethodName: "GetUserPostLikeList",
  1090. Handler: _SlowWildServer_GetUserPostLikeList_Handler,
  1091. },
  1092. },
  1093. Streams: []grpc.StreamDesc{},
  1094. Metadata: "proto/slowwild.proto",
  1095. }