package
0.0.0-20230330133258-4869613da511
Repository: https://github.com/doraemonkeys/douyin2.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CheckPassword 检查密码是否符合要求.
CheckUsername 检查用户名是否符合要求.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
取消点赞视频.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetVideoAndAuthorListFeedByLastTime 返回的VideoModel切片中包含Author信息。 lastTime为时间戳(毫秒)。 查询MySQL和Cache,返回视频列表(热门limit*2/3 + 新发布limit*1/3),视频数由服务端控制,limit为最大值。 注意不能使用返回的结构体中的指针或引用类型,可能为nil。.
No description provided by the author
点赞视频.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
返回用户喜欢的视频列表和用户自己的信息.
No description provided by the author
No description provided by the author
No description provided by the author
QueryUserExistById 查询MySQL中是否存在某个用户。 不更新缓存。.
QueryUserExistByUsername 查询MySQL中是否存在某个用户。 不更新缓存。.
判断某个用户是否关注了另一个用户.
判断某个用户关注了列表中的哪些用户.
No description provided by the author
No description provided by the author
QueryUserWithFollowers 用户信息与粉丝列表.
QueryVideoAndUserListByLastTime 查询MySQL,返回按投稿时间倒序的视频列表,视频数由服务端控制,limit为最大值, foramtedTime 为格式化后的时间,可能为:2023-03-20 04:16:17.648。 查询的数据会尝试存入Cache。.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateUserLikeCache 更新用户点赞缓存。 isLike为true表示点赞,false表示取消点赞。 缓存未命中时,直接返回nil。 取消不存在的点赞时,返回ErrDeleteNotExists。.

# Constants

数据库为空.
删除不存在的记录.
No description provided by the author
重复插入.
函数传入的参数错误.
重复插入.