| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v3.21.2
- // source: proto/slowwild.proto
- package slowwildserver
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- const (
- SlowWildServer_Login_FullMethodName = "/slowwildserver.SlowWildServer/Login"
- SlowWildServer_Register_FullMethodName = "/slowwildserver.SlowWildServer/Register"
- SlowWildServer_GetUserInfo_FullMethodName = "/slowwildserver.SlowWildServer/GetUserInfo"
- SlowWildServer_FindUser_FullMethodName = "/slowwildserver.SlowWildServer/FindUser"
- SlowWildServer_UserFollow_FullMethodName = "/slowwildserver.SlowWildServer/UserFollow"
- SlowWildServer_UnUserFollow_FullMethodName = "/slowwildserver.SlowWildServer/UnUserFollow"
- SlowWildServer_GetFans_FullMethodName = "/slowwildserver.SlowWildServer/GetFans"
- SlowWildServer_GetFollows_FullMethodName = "/slowwildserver.SlowWildServer/GetFollows"
- SlowWildServer_GetUserProfile_FullMethodName = "/slowwildserver.SlowWildServer/GetUserProfile"
- SlowWildServer_SearchUsername_FullMethodName = "/slowwildserver.SlowWildServer/SearchUsername"
- SlowWildServer_CreatePost_FullMethodName = "/slowwildserver.SlowWildServer/CreatePost"
- SlowWildServer_GetTagList_FullMethodName = "/slowwildserver.SlowWildServer/GetTagList"
- SlowWildServer_GetTag_FullMethodName = "/slowwildserver.SlowWildServer/GetTag"
- SlowWildServer_GetPostList_FullMethodName = "/slowwildserver.SlowWildServer/GetPostList"
- SlowWildServer_GetPost_FullMethodName = "/slowwildserver.SlowWildServer/GetPost"
- SlowWildServer_PostUpvote_FullMethodName = "/slowwildserver.SlowWildServer/PostUpvote"
- SlowWildServer_PostShare_FullMethodName = "/slowwildserver.SlowWildServer/PostShare"
- SlowWildServer_PostCollection_FullMethodName = "/slowwildserver.SlowWildServer/PostCollection"
- SlowWildServer_PostComment_FullMethodName = "/slowwildserver.SlowWildServer/PostComment"
- SlowWildServer_PostReply_FullMethodName = "/slowwildserver.SlowWildServer/PostReply"
- SlowWildServer_GetPostCommentList_FullMethodName = "/slowwildserver.SlowWildServer/GetPostCommentList"
- SlowWildServer_GetReplyList_FullMethodName = "/slowwildserver.SlowWildServer/GetReplyList"
- SlowWildServer_PostCommentUpvote_FullMethodName = "/slowwildserver.SlowWildServer/PostCommentUpvote"
- SlowWildServer_PostDelete_FullMethodName = "/slowwildserver.SlowWildServer/PostDelete"
- SlowWildServer_CommentDelete_FullMethodName = "/slowwildserver.SlowWildServer/CommentDelete"
- SlowWildServer_GetUserPostList_FullMethodName = "/slowwildserver.SlowWildServer/GetUserPostList"
- SlowWildServer_GetUserPostCollectionList_FullMethodName = "/slowwildserver.SlowWildServer/GetUserPostCollectionList"
- SlowWildServer_GetUserPostLikeList_FullMethodName = "/slowwildserver.SlowWildServer/GetUserPostLikeList"
- )
- // SlowWildServerClient is the client API for SlowWildServer service.
- //
- // 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.
- type SlowWildServerClient interface {
- // 用户登录
- Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error)
- // 用户注册
- Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error)
- // 获取用户信息
- GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error)
- // 查询用户信息
- FindUser(ctx context.Context, in *FindUserReq, opts ...grpc.CallOption) (*FindUserResp, error)
- // 关注用户
- UserFollow(ctx context.Context, in *FollowUserReq, opts ...grpc.CallOption) (*FollowUserRes, error)
- // 取消关注用户
- UnUserFollow(ctx context.Context, in *UnFollowUserReq, opts ...grpc.CallOption) (*UnFollowUserRes, error)
- // 获取我得粉丝
- GetFans(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error)
- // 查询我的关注
- GetFollows(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error)
- // 查询用户的详细信息
- GetUserProfile(ctx context.Context, in *GetUserProfileReq, opts ...grpc.CallOption) (*GetUserProfileRes, error)
- // 搜索用户名称
- SearchUsername(ctx context.Context, in *SearchUsernameReq, opts ...grpc.CallOption) (*SearchUsernameRes, error)
- // 发布帖子
- CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CreatePostRsp, error)
- // 获取话题列表
- GetTagList(ctx context.Context, in *GetTagListReq, opts ...grpc.CallOption) (*GetTagListRsp, error)
- // 获取话题详情
- GetTag(ctx context.Context, in *GetTagReq, opts ...grpc.CallOption) (*GetTagRsp, error)
- // 获取帖子列表
- GetPostList(ctx context.Context, in *GetPostListReq, opts ...grpc.CallOption) (*GetPostListRsp, error)
- // 获取帖子详情
- GetPost(ctx context.Context, in *GetPostReq, opts ...grpc.CallOption) (*GetPostRsp, error)
- // 点赞帖子
- PostUpvote(ctx context.Context, in *PostUpvoteReq, opts ...grpc.CallOption) (*PostUpvoteRsp, error)
- // 分享帖子
- PostShare(ctx context.Context, in *PostShareReq, opts ...grpc.CallOption) (*PostShareRsp, error)
- // 收藏帖子
- PostCollection(ctx context.Context, in *PostCollectionReq, opts ...grpc.CallOption) (*PostCollectionRsp, error)
- // 发布评论
- PostComment(ctx context.Context, in *PostCommentReq, opts ...grpc.CallOption) (*PostCommentRsp, error)
- // 发布回复
- PostReply(ctx context.Context, in *PostReplyReq, opts ...grpc.CallOption) (*PostReplyRsp, error)
- // 获取评论列表
- GetPostCommentList(ctx context.Context, in *GetPostCommentListReq, opts ...grpc.CallOption) (*GetPostCommentListRsp, error)
- // 获取回复列表
- GetReplyList(ctx context.Context, in *GetReplyListReq, opts ...grpc.CallOption) (*GetReplyListRsp, error)
- // 评论点赞
- PostCommentUpvote(ctx context.Context, in *PostCommentUpvoteReq, opts ...grpc.CallOption) (*PostCommentUpvoteRsp, error)
- // 删除帖子
- PostDelete(ctx context.Context, in *PostDeleteReq, opts ...grpc.CallOption) (*PostDeleteRsp, error)
- // 删除回复/评论
- CommentDelete(ctx context.Context, in *CommentDeleteReq, opts ...grpc.CallOption) (*CommentDeleteRsp, error)
- // 获取用户发布的帖子
- GetUserPostList(ctx context.Context, in *GetUserPostListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error)
- // 获取用户收藏的帖子
- GetUserPostCollectionList(ctx context.Context, in *GetUserPostCollectionListReq, opts ...grpc.CallOption) (*GetUserPostCollectionListRsp, error)
- // 获取用户点赞过的帖子
- GetUserPostLikeList(ctx context.Context, in *GetUserPostLikeListReq, opts ...grpc.CallOption) (*GetUserPostLikeListRsp, error)
- }
- type slowWildServerClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSlowWildServerClient(cc grpc.ClientConnInterface) SlowWildServerClient {
- return &slowWildServerClient{cc}
- }
- func (c *slowWildServerClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) {
- out := new(LoginAndRegisterRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_Login_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) {
- out := new(LoginAndRegisterRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_Register_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) {
- out := new(GetUserInfoResp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetUserInfo_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) FindUser(ctx context.Context, in *FindUserReq, opts ...grpc.CallOption) (*FindUserResp, error) {
- out := new(FindUserResp)
- err := c.cc.Invoke(ctx, SlowWildServer_FindUser_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) UserFollow(ctx context.Context, in *FollowUserReq, opts ...grpc.CallOption) (*FollowUserRes, error) {
- out := new(FollowUserRes)
- err := c.cc.Invoke(ctx, SlowWildServer_UserFollow_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) UnUserFollow(ctx context.Context, in *UnFollowUserReq, opts ...grpc.CallOption) (*UnFollowUserRes, error) {
- out := new(UnFollowUserRes)
- err := c.cc.Invoke(ctx, SlowWildServer_UnUserFollow_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetFans(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) {
- out := new(GetFollowingRes)
- err := c.cc.Invoke(ctx, SlowWildServer_GetFans_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetFollows(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) {
- out := new(GetFollowingRes)
- err := c.cc.Invoke(ctx, SlowWildServer_GetFollows_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetUserProfile(ctx context.Context, in *GetUserProfileReq, opts ...grpc.CallOption) (*GetUserProfileRes, error) {
- out := new(GetUserProfileRes)
- err := c.cc.Invoke(ctx, SlowWildServer_GetUserProfile_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) SearchUsername(ctx context.Context, in *SearchUsernameReq, opts ...grpc.CallOption) (*SearchUsernameRes, error) {
- out := new(SearchUsernameRes)
- err := c.cc.Invoke(ctx, SlowWildServer_SearchUsername_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CreatePostRsp, error) {
- out := new(CreatePostRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_CreatePost_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetTagList(ctx context.Context, in *GetTagListReq, opts ...grpc.CallOption) (*GetTagListRsp, error) {
- out := new(GetTagListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetTagList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetTag(ctx context.Context, in *GetTagReq, opts ...grpc.CallOption) (*GetTagRsp, error) {
- out := new(GetTagRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetTag_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetPostList(ctx context.Context, in *GetPostListReq, opts ...grpc.CallOption) (*GetPostListRsp, error) {
- out := new(GetPostListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetPostList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetPost(ctx context.Context, in *GetPostReq, opts ...grpc.CallOption) (*GetPostRsp, error) {
- out := new(GetPostRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetPost_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostUpvote(ctx context.Context, in *PostUpvoteReq, opts ...grpc.CallOption) (*PostUpvoteRsp, error) {
- out := new(PostUpvoteRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostUpvote_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostShare(ctx context.Context, in *PostShareReq, opts ...grpc.CallOption) (*PostShareRsp, error) {
- out := new(PostShareRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostShare_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostCollection(ctx context.Context, in *PostCollectionReq, opts ...grpc.CallOption) (*PostCollectionRsp, error) {
- out := new(PostCollectionRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostCollection_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostComment(ctx context.Context, in *PostCommentReq, opts ...grpc.CallOption) (*PostCommentRsp, error) {
- out := new(PostCommentRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostComment_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostReply(ctx context.Context, in *PostReplyReq, opts ...grpc.CallOption) (*PostReplyRsp, error) {
- out := new(PostReplyRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostReply_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetPostCommentList(ctx context.Context, in *GetPostCommentListReq, opts ...grpc.CallOption) (*GetPostCommentListRsp, error) {
- out := new(GetPostCommentListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetPostCommentList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetReplyList(ctx context.Context, in *GetReplyListReq, opts ...grpc.CallOption) (*GetReplyListRsp, error) {
- out := new(GetReplyListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetReplyList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostCommentUpvote(ctx context.Context, in *PostCommentUpvoteReq, opts ...grpc.CallOption) (*PostCommentUpvoteRsp, error) {
- out := new(PostCommentUpvoteRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostCommentUpvote_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) PostDelete(ctx context.Context, in *PostDeleteReq, opts ...grpc.CallOption) (*PostDeleteRsp, error) {
- out := new(PostDeleteRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_PostDelete_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) CommentDelete(ctx context.Context, in *CommentDeleteReq, opts ...grpc.CallOption) (*CommentDeleteRsp, error) {
- out := new(CommentDeleteRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_CommentDelete_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetUserPostList(ctx context.Context, in *GetUserPostListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error) {
- out := new(GetUserPostListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetUserPostCollectionList(ctx context.Context, in *GetUserPostCollectionListReq, opts ...grpc.CallOption) (*GetUserPostCollectionListRsp, error) {
- out := new(GetUserPostCollectionListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostCollectionList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *slowWildServerClient) GetUserPostLikeList(ctx context.Context, in *GetUserPostLikeListReq, opts ...grpc.CallOption) (*GetUserPostLikeListRsp, error) {
- out := new(GetUserPostLikeListRsp)
- err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostLikeList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SlowWildServerServer is the server API for SlowWildServer service.
- // All implementations must embed UnimplementedSlowWildServerServer
- // for forward compatibility
- type SlowWildServerServer interface {
- // 用户登录
- Login(context.Context, *LoginReq) (*LoginAndRegisterRsp, error)
- // 用户注册
- Register(context.Context, *RegisterReq) (*LoginAndRegisterRsp, error)
- // 获取用户信息
- GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
- // 查询用户信息
- FindUser(context.Context, *FindUserReq) (*FindUserResp, error)
- // 关注用户
- UserFollow(context.Context, *FollowUserReq) (*FollowUserRes, error)
- // 取消关注用户
- UnUserFollow(context.Context, *UnFollowUserReq) (*UnFollowUserRes, error)
- // 获取我得粉丝
- GetFans(context.Context, *GetFollowingReq) (*GetFollowingRes, error)
- // 查询我的关注
- GetFollows(context.Context, *GetFollowingReq) (*GetFollowingRes, error)
- // 查询用户的详细信息
- GetUserProfile(context.Context, *GetUserProfileReq) (*GetUserProfileRes, error)
- // 搜索用户名称
- SearchUsername(context.Context, *SearchUsernameReq) (*SearchUsernameRes, error)
- // 发布帖子
- CreatePost(context.Context, *CreatePostReq) (*CreatePostRsp, error)
- // 获取话题列表
- GetTagList(context.Context, *GetTagListReq) (*GetTagListRsp, error)
- // 获取话题详情
- GetTag(context.Context, *GetTagReq) (*GetTagRsp, error)
- // 获取帖子列表
- GetPostList(context.Context, *GetPostListReq) (*GetPostListRsp, error)
- // 获取帖子详情
- GetPost(context.Context, *GetPostReq) (*GetPostRsp, error)
- // 点赞帖子
- PostUpvote(context.Context, *PostUpvoteReq) (*PostUpvoteRsp, error)
- // 分享帖子
- PostShare(context.Context, *PostShareReq) (*PostShareRsp, error)
- // 收藏帖子
- PostCollection(context.Context, *PostCollectionReq) (*PostCollectionRsp, error)
- // 发布评论
- PostComment(context.Context, *PostCommentReq) (*PostCommentRsp, error)
- // 发布回复
- PostReply(context.Context, *PostReplyReq) (*PostReplyRsp, error)
- // 获取评论列表
- GetPostCommentList(context.Context, *GetPostCommentListReq) (*GetPostCommentListRsp, error)
- // 获取回复列表
- GetReplyList(context.Context, *GetReplyListReq) (*GetReplyListRsp, error)
- // 评论点赞
- PostCommentUpvote(context.Context, *PostCommentUpvoteReq) (*PostCommentUpvoteRsp, error)
- // 删除帖子
- PostDelete(context.Context, *PostDeleteReq) (*PostDeleteRsp, error)
- // 删除回复/评论
- CommentDelete(context.Context, *CommentDeleteReq) (*CommentDeleteRsp, error)
- // 获取用户发布的帖子
- GetUserPostList(context.Context, *GetUserPostListReq) (*GetUserPostListRsp, error)
- // 获取用户收藏的帖子
- GetUserPostCollectionList(context.Context, *GetUserPostCollectionListReq) (*GetUserPostCollectionListRsp, error)
- // 获取用户点赞过的帖子
- GetUserPostLikeList(context.Context, *GetUserPostLikeListReq) (*GetUserPostLikeListRsp, error)
- mustEmbedUnimplementedSlowWildServerServer()
- }
- // UnimplementedSlowWildServerServer must be embedded to have forward compatible implementations.
- type UnimplementedSlowWildServerServer struct {
- }
- func (UnimplementedSlowWildServerServer) Login(context.Context, *LoginReq) (*LoginAndRegisterRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
- }
- func (UnimplementedSlowWildServerServer) Register(context.Context, *RegisterReq) (*LoginAndRegisterRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
- }
- func (UnimplementedSlowWildServerServer) FindUser(context.Context, *FindUserReq) (*FindUserResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindUser not implemented")
- }
- func (UnimplementedSlowWildServerServer) UserFollow(context.Context, *FollowUserReq) (*FollowUserRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserFollow not implemented")
- }
- func (UnimplementedSlowWildServerServer) UnUserFollow(context.Context, *UnFollowUserReq) (*UnFollowUserRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UnUserFollow not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetFans(context.Context, *GetFollowingReq) (*GetFollowingRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetFans not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetFollows(context.Context, *GetFollowingReq) (*GetFollowingRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetFollows not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetUserProfile(context.Context, *GetUserProfileReq) (*GetUserProfileRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented")
- }
- func (UnimplementedSlowWildServerServer) SearchUsername(context.Context, *SearchUsernameReq) (*SearchUsernameRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SearchUsername not implemented")
- }
- func (UnimplementedSlowWildServerServer) CreatePost(context.Context, *CreatePostReq) (*CreatePostRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreatePost not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetTagList(context.Context, *GetTagListReq) (*GetTagListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetTagList not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetTag(context.Context, *GetTagReq) (*GetTagRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetTag not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetPostList(context.Context, *GetPostListReq) (*GetPostListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetPostList not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetPost(context.Context, *GetPostReq) (*GetPostRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetPost not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostUpvote(context.Context, *PostUpvoteReq) (*PostUpvoteRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostUpvote not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostShare(context.Context, *PostShareReq) (*PostShareRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostShare not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostCollection(context.Context, *PostCollectionReq) (*PostCollectionRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostCollection not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostComment(context.Context, *PostCommentReq) (*PostCommentRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostComment not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostReply(context.Context, *PostReplyReq) (*PostReplyRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostReply not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetPostCommentList(context.Context, *GetPostCommentListReq) (*GetPostCommentListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetPostCommentList not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetReplyList(context.Context, *GetReplyListReq) (*GetReplyListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetReplyList not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostCommentUpvote(context.Context, *PostCommentUpvoteReq) (*PostCommentUpvoteRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostCommentUpvote not implemented")
- }
- func (UnimplementedSlowWildServerServer) PostDelete(context.Context, *PostDeleteReq) (*PostDeleteRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PostDelete not implemented")
- }
- func (UnimplementedSlowWildServerServer) CommentDelete(context.Context, *CommentDeleteReq) (*CommentDeleteRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommentDelete not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetUserPostList(context.Context, *GetUserPostListReq) (*GetUserPostListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserPostList not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetUserPostCollectionList(context.Context, *GetUserPostCollectionListReq) (*GetUserPostCollectionListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserPostCollectionList not implemented")
- }
- func (UnimplementedSlowWildServerServer) GetUserPostLikeList(context.Context, *GetUserPostLikeListReq) (*GetUserPostLikeListRsp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserPostLikeList not implemented")
- }
- func (UnimplementedSlowWildServerServer) mustEmbedUnimplementedSlowWildServerServer() {}
- // UnsafeSlowWildServerServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to SlowWildServerServer will
- // result in compilation errors.
- type UnsafeSlowWildServerServer interface {
- mustEmbedUnimplementedSlowWildServerServer()
- }
- func RegisterSlowWildServerServer(s grpc.ServiceRegistrar, srv SlowWildServerServer) {
- s.RegisterService(&SlowWildServer_ServiceDesc, srv)
- }
- func _SlowWildServer_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoginReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).Login(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_Login_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).Login(ctx, req.(*LoginReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RegisterReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).Register(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_Register_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).Register(ctx, req.(*RegisterReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetUserInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetUserInfo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetUserInfo(ctx, req.(*GetUserInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_FindUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindUserReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).FindUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_FindUser_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).FindUser(ctx, req.(*FindUserReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_UserFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FollowUserReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).UserFollow(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_UserFollow_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).UserFollow(ctx, req.(*FollowUserReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_UnUserFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UnFollowUserReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).UnUserFollow(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_UnUserFollow_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).UnUserFollow(ctx, req.(*UnFollowUserReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetFans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetFollowingReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetFans(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetFans_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetFans(ctx, req.(*GetFollowingReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetFollows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetFollowingReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetFollows(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetFollows_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetFollows(ctx, req.(*GetFollowingReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserProfileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetUserProfile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetUserProfile_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetUserProfile(ctx, req.(*GetUserProfileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_SearchUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SearchUsernameReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).SearchUsername(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_SearchUsername_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).SearchUsername(ctx, req.(*SearchUsernameReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_CreatePost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreatePostReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).CreatePost(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_CreatePost_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).CreatePost(ctx, req.(*CreatePostReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetTagList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetTagListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetTagList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetTagList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetTagList(ctx, req.(*GetTagListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetTagReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetTag(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetTag_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetTag(ctx, req.(*GetTagReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetPostList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetPostListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetPostList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetPostList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetPostList(ctx, req.(*GetPostListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetPost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetPostReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetPost(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetPost_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetPost(ctx, req.(*GetPostReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostUpvote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostUpvoteReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostUpvote(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostUpvote_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostUpvote(ctx, req.(*PostUpvoteReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostShareReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostShare(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostShare_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostShare(ctx, req.(*PostShareReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostCollectionReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostCollection(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostCollection_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostCollection(ctx, req.(*PostCollectionReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostCommentReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostComment(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostComment_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostComment(ctx, req.(*PostCommentReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostReply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostReplyReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostReply(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostReply_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostReply(ctx, req.(*PostReplyReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetPostCommentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetPostCommentListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetPostCommentList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetPostCommentList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetPostCommentList(ctx, req.(*GetPostCommentListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetReplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetReplyListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetReplyList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetReplyList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetReplyList(ctx, req.(*GetReplyListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostCommentUpvote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostCommentUpvoteReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostCommentUpvote(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostCommentUpvote_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostCommentUpvote(ctx, req.(*PostCommentUpvoteReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_PostDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PostDeleteReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).PostDelete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_PostDelete_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).PostDelete(ctx, req.(*PostDeleteReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_CommentDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommentDeleteReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).CommentDelete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_CommentDelete_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).CommentDelete(ctx, req.(*CommentDeleteReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetUserPostList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserPostListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetUserPostList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetUserPostList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetUserPostList(ctx, req.(*GetUserPostListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetUserPostCollectionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserPostCollectionListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetUserPostCollectionList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetUserPostCollectionList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetUserPostCollectionList(ctx, req.(*GetUserPostCollectionListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SlowWildServer_GetUserPostLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserPostLikeListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SlowWildServerServer).GetUserPostLikeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SlowWildServer_GetUserPostLikeList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SlowWildServerServer).GetUserPostLikeList(ctx, req.(*GetUserPostLikeListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- // SlowWildServer_ServiceDesc is the grpc.ServiceDesc for SlowWildServer service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var SlowWildServer_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "slowwildserver.SlowWildServer",
- HandlerType: (*SlowWildServerServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Login",
- Handler: _SlowWildServer_Login_Handler,
- },
- {
- MethodName: "Register",
- Handler: _SlowWildServer_Register_Handler,
- },
- {
- MethodName: "GetUserInfo",
- Handler: _SlowWildServer_GetUserInfo_Handler,
- },
- {
- MethodName: "FindUser",
- Handler: _SlowWildServer_FindUser_Handler,
- },
- {
- MethodName: "UserFollow",
- Handler: _SlowWildServer_UserFollow_Handler,
- },
- {
- MethodName: "UnUserFollow",
- Handler: _SlowWildServer_UnUserFollow_Handler,
- },
- {
- MethodName: "GetFans",
- Handler: _SlowWildServer_GetFans_Handler,
- },
- {
- MethodName: "GetFollows",
- Handler: _SlowWildServer_GetFollows_Handler,
- },
- {
- MethodName: "GetUserProfile",
- Handler: _SlowWildServer_GetUserProfile_Handler,
- },
- {
- MethodName: "SearchUsername",
- Handler: _SlowWildServer_SearchUsername_Handler,
- },
- {
- MethodName: "CreatePost",
- Handler: _SlowWildServer_CreatePost_Handler,
- },
- {
- MethodName: "GetTagList",
- Handler: _SlowWildServer_GetTagList_Handler,
- },
- {
- MethodName: "GetTag",
- Handler: _SlowWildServer_GetTag_Handler,
- },
- {
- MethodName: "GetPostList",
- Handler: _SlowWildServer_GetPostList_Handler,
- },
- {
- MethodName: "GetPost",
- Handler: _SlowWildServer_GetPost_Handler,
- },
- {
- MethodName: "PostUpvote",
- Handler: _SlowWildServer_PostUpvote_Handler,
- },
- {
- MethodName: "PostShare",
- Handler: _SlowWildServer_PostShare_Handler,
- },
- {
- MethodName: "PostCollection",
- Handler: _SlowWildServer_PostCollection_Handler,
- },
- {
- MethodName: "PostComment",
- Handler: _SlowWildServer_PostComment_Handler,
- },
- {
- MethodName: "PostReply",
- Handler: _SlowWildServer_PostReply_Handler,
- },
- {
- MethodName: "GetPostCommentList",
- Handler: _SlowWildServer_GetPostCommentList_Handler,
- },
- {
- MethodName: "GetReplyList",
- Handler: _SlowWildServer_GetReplyList_Handler,
- },
- {
- MethodName: "PostCommentUpvote",
- Handler: _SlowWildServer_PostCommentUpvote_Handler,
- },
- {
- MethodName: "PostDelete",
- Handler: _SlowWildServer_PostDelete_Handler,
- },
- {
- MethodName: "CommentDelete",
- Handler: _SlowWildServer_CommentDelete_Handler,
- },
- {
- MethodName: "GetUserPostList",
- Handler: _SlowWildServer_GetUserPostList_Handler,
- },
- {
- MethodName: "GetUserPostCollectionList",
- Handler: _SlowWildServer_GetUserPostCollectionList_Handler,
- },
- {
- MethodName: "GetUserPostLikeList",
- Handler: _SlowWildServer_GetUserPostLikeList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto/slowwild.proto",
- }
|