Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acking-you/byte_douyin_project
/ functions
Functions
211 in github.com/acking-you/byte_douyin_project
⨍
Functions
211
◇
Types & classes
57
↓ 1 callers
Method
SendOk
(msg string)
deprecated/handlers/user_info/post_follow_action_handler.go:84
↓ 1 callers
Method
SendOk
(msg string)
deprecated/handlers/user_info/query_follow_list_handler.go:70
↓ 1 callers
Method
SendOk
(comment *comment.Response)
deprecated/handlers/comment/post_comment_handler.go:92
↓ 1 callers
Method
SendOk
(commentList *comment.List)
deprecated/handlers/comment/query_commentlist_handler.go:74
↓ 1 callers
Method
SendOk
()
deprecated/handlers/video/post_favor_handler.go:74
↓ 1 callers
Method
SendOk
(favorList *video.FavorList)
deprecated/handlers/video/query_favor_videolist_handler.go:63
↓ 1 callers
Method
SetDebug
(debug bool)
deprecated/util/ffmpeg.go:98
↓ 1 callers
Method
SetFrameCount
(count int)
deprecated/util/ffmpeg.go:93
↓ 1 callers
Method
SetInputPath
SetInputPath 方法链式调用(非共享实例,无需加锁)
deprecated/util/ffmpeg.go:72
↓ 1 callers
Method
SetOutputPath
(path string)
deprecated/util/ffmpeg.go:77
↓ 1 callers
Method
UserInfoOk
(user *models2.UserInfo)
deprecated/handlers/user_info/userinfo_handler.go:60
↓ 1 callers
Method
buildArgs
()
deprecated/util/ffmpeg.go:103
↓ 1 callers
Method
checkNum
()
deprecated/service/user_info/query_follow_list.go:47
↓ 1 callers
Method
checkNum
()
deprecated/service/user_info/post_follow_action.go:44
↓ 1 callers
Method
checkNum
()
deprecated/service/user_info/query_follower_list.go:42
↓ 1 callers
Method
checkNum
()
deprecated/service/comment/post_comment.go:80
↓ 1 callers
Method
checkNum
()
deprecated/service/comment/query_comment_list.go:44
↓ 1 callers
Method
checkNum
()
deprecated/service/video/post_favor_state.go:73
↓ 1 callers
Method
checkNum
()
deprecated/service/video/feed_videolist.go:50
↓ 1 callers
Method
checkNum
()
deprecated/service/video/query_videolist.go:38
↓ 1 callers
Method
checkNum
()
deprecated/service/video/query_favor_videolist.go:41
↓ 1 callers
Method
checkNum
()
deprecated/service/user_login/query_user_login.go:54
↓ 1 callers
Method
checkNum
()
deprecated/service/user_login/post_user_login.go:45
↓ 1 callers
Function
ensurePathValid
()
deprecated/config/conf.go:49
↓ 1 callers
Method
packData
()
deprecated/service/user_info/query_follow_list.go:67
↓ 1 callers
Method
packData
()
deprecated/service/user_info/query_follower_list.go:62
↓ 1 callers
Method
packData
()
deprecated/service/comment/post_comment.go:106
↓ 1 callers
Method
packData
()
deprecated/service/comment/query_comment_list.go:67
↓ 1 callers
Method
packData
()
deprecated/service/video/feed_videolist.go:78
↓ 1 callers
Method
packData
注意:Video由于在数据库中没有存储作者信息,所以需要手动填充
deprecated/service/video/query_videolist.go:48
↓ 1 callers
Method
packData
()
deprecated/service/video/query_favor_videolist.go:66
↓ 1 callers
Method
packData
()
deprecated/service/user_login/query_user_login.go:86
↓ 1 callers
Method
packResponse
()
deprecated/service/user_login/post_user_login.go:87
↓ 1 callers
Method
parseNum
()
deprecated/handlers/user_info/query_follower_handler.go:49
↓ 1 callers
Method
parseNum
()
deprecated/handlers/user_info/query_follow_list_handler.go:45
↓ 1 callers
Method
parseNum
()
deprecated/handlers/comment/post_comment_handler.go:54
↓ 1 callers
Method
parseNum
()
deprecated/handlers/comment/query_commentlist_handler.go:51
↓ 1 callers
Method
parseNum
()
deprecated/handlers/video/post_favor_handler.go:46
↓ 1 callers
Method
parseNum
()
deprecated/handlers/video/query_favor_videolist_handler.go:48
↓ 1 callers
Method
prepareData
()
deprecated/service/user_info/query_follow_list.go:54
↓ 1 callers
Method
prepareData
()
deprecated/service/user_info/query_follower_list.go:49
↓ 1 callers
Method
prepareData
()
deprecated/service/comment/post_comment.go:93
↓ 1 callers
Method
prepareData
()
deprecated/service/comment/query_comment_list.go:54
↓ 1 callers
Method
prepareData
()
deprecated/service/video/feed_videolist.go:61
↓ 1 callers
Method
prepareData
()
deprecated/service/video/query_favor_videolist.go:48
↓ 1 callers
Method
prepareData
()
deprecated/service/user_login/query_user_login.go:67
↓ 1 callers
Method
prepareData
()
deprecated/handlers/user_info/query_follower_handler.go:59
↓ 1 callers
Method
prepareData
()
deprecated/handlers/user_info/query_follow_list_handler.go:55
↓ 1 callers
Method
prepareNum
()
deprecated/handlers/user_info/post_follow_action_handler.go:46
↓ 1 callers
Method
prepareParam
准备好参数
deprecated/service/video/post_video.go:41
↓ 1 callers
Method
publish
()
deprecated/service/user_info/post_follow_action.go:59
↓ 1 callers
Method
publish
组合并添加到数据库
deprecated/service/video/post_video.go:47
↓ 1 callers
Method
startAction
()
deprecated/handlers/user_info/post_follow_action_handler.go:72
↓ 1 callers
Method
updateData
()
deprecated/service/user_login/post_user_login.go:58
Function
ChangeImageDefaultSuffix
(suffix string)
deprecated/util/ffmpeg.go:55
Function
ChangeVideoDefaultSuffix
ChangeVideoDefaultSuffix 全局配置修改方法(线程安全)
deprecated/util/ffmpeg.go:49
Function
DBConnectString
DBConnectString 填充得到数据库连接字符串
deprecated/config/conf.go:89
Function
FeedVideoListHandler
(c *gin.Context)
deprecated/handlers/video/feed_videolist_handler.go:19
Function
FillCommentFields
(comment *models2.Comment)
deprecated/util/comment.go:21
Function
FillCommentListFields
(comments *[]*models2.Comment)
deprecated/util/comment.go:8
Function
FillVideoListFields
FillVideoListFields 填充每个视频的作者信息(因为作者与视频的一对多关系,数据库中存下的是作者的id 当userId>0时,我们判断当前为登录状态,其余情况为未登录状态,则不需要填充IsFavorite字段
deprecated/util/video.go:32
Function
GetFileUrl
(fileName string)
deprecated/util/video.go:14
Function
Init
()
deprecated/router/router_douyin.go:14
Function
JWTMiddleWare
JWTMiddleWare 鉴权中间件,鉴权并设置user_id
deprecated/middleware/jwt.go:56
Function
NewCommentDAO
()
deprecated/models/comment.go:26
Function
NewFileName
NewFileName 根据userId+用户发布的视频数量连接成独一无二的文件名
deprecated/util/video.go:20
Function
NewUserLoginDao
()
deprecated/models/user_login.go:24
Function
NoAuthToGetUserId
()
deprecated/middleware/normal.go:10
Function
PostComment
(userId int64, videoId int64, commentId int64, actionType int64, commentText string)
deprecated/service/comment/post_comment.go:19
Function
PostCommentHandler
(c *gin.Context)
deprecated/handlers/comment/post_comment_handler.go:18
Function
PostFavorHandler
(c *gin.Context)
deprecated/handlers/video/post_favor_handler.go:12
Function
PostFavorState
(userId, videoId, actionType int64)
deprecated/service/video/post_favor_state.go:14
Function
PostFollowAction
(userId, userToId int64, actionType int)
deprecated/service/user_info/post_follow_action.go:19
Function
PostFollowActionHandler
(c *gin.Context)
deprecated/handlers/user_info/post_follow_action_handler.go:12
Function
PostUserLogin
PostUserLogin 注册用户并得到token和id
deprecated/service/user_login/post_user_login.go:10
Function
PostVideo
PostVideo 投稿视频
deprecated/service/video/post_video.go:9
Function
PublishVideoHandler
PublishVideoHandler 发布视频,并截取一帧画面作为封面
deprecated/handlers/video/publish_video_handler.go:31
Function
QueryCommentList
(userId, videoId int64)
deprecated/service/comment/query_comment_list.go:14
Function
QueryCommentListHandler
(c *gin.Context)
deprecated/handlers/comment/query_commentlist_handler.go:18
Function
QueryFavorVideoList
(userId int64)
deprecated/service/video/query_favor_videolist.go:12
Function
QueryFavorVideoListHandler
(c *gin.Context)
deprecated/handlers/video/query_favor_videolist_handler.go:16
Function
QueryFeedVideoList
(userId int64, latestTime time.Time)
deprecated/service/video/feed_videolist.go:19
Function
QueryFollowList
(userId int64)
deprecated/service/user_info/query_follow_list.go:16
Function
QueryFollowListHandler
(c *gin.Context)
deprecated/handlers/user_info/query_follow_list_handler.go:16
Function
QueryFollowerHandler
(c *gin.Context)
deprecated/handlers/user_info/query_follower_handler.go:16
Function
QueryFollowerList
(userId int64)
deprecated/service/user_info/query_follower_list.go:12
Function
QueryUserLogin
QueryUserLogin 查询用户是否存在,并返回token和id
deprecated/service/user_login/query_user_login.go:21
Method
QueryVideoByVideoId
(videoId int64, video *Video)
deprecated/models/video.go:51
Function
QueryVideoListByUserId
(userId int64)
deprecated/service/video/query_videolist.go:13
Function
QueryVideoListHandler
(c *gin.Context)
deprecated/handlers/video/query_videolist_handler.go:16
Function
ReleaseToken
ReleaseToken 颁发token
deprecated/middleware/jwt.go:19
Function
SHAMiddleWare
()
deprecated/middleware/password.go:18
Function
SaveImageFromVideo
SaveImageFromVideo 将视频切一帧保存到本地 isDebug用于控制是否打印出执行的ffmepg命令
deprecated/util/video.go:60
Method
SetFilter
(filter string)
deprecated/util/ffmpeg.go:88
Method
SetTimeOptions
(start, duration string)
deprecated/util/ffmpeg.go:82
Function
TestJwt
(t *testing.T)
deprecated/middleware/jwt_test.go:7
Function
TestMain
(m *testing.M)
deprecated/models/user_info_test.go:9
Function
TestProxyIndexMap_GetVideoFavorState
(t *testing.T)
deprecated/cache/indexmap_test.go:13
Function
TestProxyIndexMap_UpdateUserRelation
(t *testing.T)
deprecated/cache/indexmap_test.go:8
Function
TestSHA1
40bd001563085fc35165329ea1ff5c5ecbdbbeef
deprecated/middleware/password_test.go:6
← previous
next →
101–200 of 211, ranked by callers