slowwild_grpc.pb.go 48 KB

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