Documentation ¶
Overview ¶
@Author: Sangs
@Date: 2023-09-01
@LastEditTime: 2023-09-01
@Description: 用于添加kitex以及etcd服务,供hertz调用
@Author: Sangs
@Date: 2023-09-01
@LastEditTime: 2023-09-01
@Description: 用于添加kitex以及etcd服务,供hertz调用
Description: 用于添加kitex以及etcd服务,供hertz调用
Func: 已经实现的功能 *
Author: sangs
Date: 2023-08-22
@Author: Sangs
@Date: 2023-08-15
@LastEditTime: 2023-09-01
@Description: 这是rpc服务初始化的地方
Description: 用于添加kitex以及etcd服务,供hertz调用
Func: 已经实现的功能
InitUserRpc() --- 其中的部分代码来源于字节内部课中提到的项目源码,在此基础上进行修改得到
Register() ------ 调用userClient中的UserRegister()
Login() --------- 调用userClient中的UserLogin()
Author: sangs
Date: 2023-08-14
Index ¶
- func Action(ctx context.Context, req *feed.PublishActionRequest) (*feed.PublishActionResponse, error)
- func CommentAction(ctx context.Context, req *comment.CommentActionRequest) (*comment.CommentActionResponse, error)
- func CommentList(ctx context.Context, req *comment.CommentListRequest) (*comment.CommentListResponse, error)
- func FavoriteAction(ctx context.Context, req *favorite.FavoriteActionRequest) (*favorite.FavoriteActionResponse, error)
- func FavoriteList(ctx context.Context, req *favorite.FavoriteListRequest) (*favorite.FavoriteListResponse, error)
- func Feed(ctx context.Context, req *feed.FeedRequest) (*feed.FeedResponse, error)
- func Info(ctx context.Context, req *user.UserRequest) (*user.UserResponse, error)
- func InitCommentRpc()
- func InitFavoriteRpc()
- func InitFeedRpc()
- func InitUserRpc()
- func List(ctx context.Context, req *feed.PublishListRequest) (*feed.PublishListResponse, error)
- func Login(ctx context.Context, req *user.UserLoRegRequest) (*user.UserLoRegResponse, error)
- func Register(ctx context.Context, req *user.UserLoRegRequest) (*user.UserLoRegResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action(ctx context.Context, req *feed.PublishActionRequest) (*feed.PublishActionResponse, error)
发布视频
func CommentAction ¶
func CommentAction(ctx context.Context, req *comment.CommentActionRequest) (*comment.CommentActionResponse, error)
评论操作
func CommentList ¶
func CommentList(ctx context.Context, req *comment.CommentListRequest) (*comment.CommentListResponse, error)
评论列表
func FavoriteAction ¶
func FavoriteAction(ctx context.Context, req *favorite.FavoriteActionRequest) (*favorite.FavoriteActionResponse, error)
赞操作
func FavoriteList ¶
func FavoriteList(ctx context.Context, req *favorite.FavoriteListRequest) (*favorite.FavoriteListResponse, error)
喜欢列表
func Feed ¶
func Feed(ctx context.Context, req *feed.FeedRequest) (*feed.FeedResponse, error)
func InitCommentRpc ¶
func InitCommentRpc()
func InitFavoriteRpc ¶
func InitFavoriteRpc()
func InitFeedRpc ¶
func InitFeedRpc()
func InitUserRpc ¶
func InitUserRpc()
func List ¶
func List(ctx context.Context, req *feed.PublishListRequest) (*feed.PublishListResponse, error)
发布列表
func Login ¶
func Login(ctx context.Context, req *user.UserLoRegRequest) (*user.UserLoRegResponse, error)
用户登录
func Register ¶
func Register(ctx context.Context, req *user.UserLoRegRequest) (*user.UserLoRegResponse, error)
用户注册
Types ¶
This section is empty.