package
0.0.0-20241124131109-1fb009997a4c
Repository: https://github.com/gezelligheid1010/blog.git
Documentation: pkg.go.dev
# Functions
CheckUserExist 检查指定用户名的用户是否存在.
Close 关闭MySQL连接.
No description provided by the author
CreatePost 创建帖子.
No description provided by the author
No description provided by the author
GetCommunityByID 根据ID查询分类社区详情.
GetCommunityList 查询分类社区列表.
No description provided by the author
GetCommunityPostTotalCount 根据社区id查询数据库帖子总数.
GetPostByID 根据Id查询帖子详情.
GetPostList 获取帖子列表.
GetPostListByIDs 根据给定的id列表查询帖子数据.
GetPostListByKeywords 根据关键词查询帖子列表.
GetPostListTotalCount 根据关键词查询帖子列表总数.
GetPostTotalCount 查询数据库帖子总数.
GetUserByID 根据ID查询作者信息.
IncrementCommentLike 增加评论的点赞数.
Init 初始化MySQL连接.
InsertUser 注册业务-向数据库中插入一条新的用户.
Login 登录业务.
No description provided by the author
# Variables
定义业务状态.
定义业务状态.
定义业务状态.
定义业务状态.
定义业务状态.
定义业务状态.
定义业务状态.