MCPcopy Create free account

hub / github.com/acking-you/byte_douyin_project / functions

Functions211 in github.com/acking-you/byte_douyin_project

↓ 1 callersMethodSendOk
(msg string)
deprecated/handlers/user_info/post_follow_action_handler.go:84
↓ 1 callersMethodSendOk
(msg string)
deprecated/handlers/user_info/query_follow_list_handler.go:70
↓ 1 callersMethodSendOk
(comment *comment.Response)
deprecated/handlers/comment/post_comment_handler.go:92
↓ 1 callersMethodSendOk
(commentList *comment.List)
deprecated/handlers/comment/query_commentlist_handler.go:74
↓ 1 callersMethodSendOk
()
deprecated/handlers/video/post_favor_handler.go:74
↓ 1 callersMethodSendOk
(favorList *video.FavorList)
deprecated/handlers/video/query_favor_videolist_handler.go:63
↓ 1 callersMethodSetDebug
(debug bool)
deprecated/util/ffmpeg.go:98
↓ 1 callersMethodSetFrameCount
(count int)
deprecated/util/ffmpeg.go:93
↓ 1 callersMethodSetInputPath
SetInputPath 方法链式调用(非共享实例,无需加锁)
deprecated/util/ffmpeg.go:72
↓ 1 callersMethodSetOutputPath
(path string)
deprecated/util/ffmpeg.go:77
↓ 1 callersMethodUserInfoOk
(user *models2.UserInfo)
deprecated/handlers/user_info/userinfo_handler.go:60
↓ 1 callersMethodbuildArgs
()
deprecated/util/ffmpeg.go:103
↓ 1 callersMethodcheckNum
()
deprecated/service/user_info/query_follow_list.go:47
↓ 1 callersMethodcheckNum
()
deprecated/service/user_info/post_follow_action.go:44
↓ 1 callersMethodcheckNum
()
deprecated/service/user_info/query_follower_list.go:42
↓ 1 callersMethodcheckNum
()
deprecated/service/comment/post_comment.go:80
↓ 1 callersMethodcheckNum
()
deprecated/service/comment/query_comment_list.go:44
↓ 1 callersMethodcheckNum
()
deprecated/service/video/post_favor_state.go:73
↓ 1 callersMethodcheckNum
()
deprecated/service/video/feed_videolist.go:50
↓ 1 callersMethodcheckNum
()
deprecated/service/video/query_videolist.go:38
↓ 1 callersMethodcheckNum
()
deprecated/service/video/query_favor_videolist.go:41
↓ 1 callersMethodcheckNum
()
deprecated/service/user_login/query_user_login.go:54
↓ 1 callersMethodcheckNum
()
deprecated/service/user_login/post_user_login.go:45
↓ 1 callersFunctionensurePathValid
()
deprecated/config/conf.go:49
↓ 1 callersMethodpackData
()
deprecated/service/user_info/query_follow_list.go:67
↓ 1 callersMethodpackData
()
deprecated/service/user_info/query_follower_list.go:62
↓ 1 callersMethodpackData
()
deprecated/service/comment/post_comment.go:106
↓ 1 callersMethodpackData
()
deprecated/service/comment/query_comment_list.go:67
↓ 1 callersMethodpackData
()
deprecated/service/video/feed_videolist.go:78
↓ 1 callersMethodpackData
注意:Video由于在数据库中没有存储作者信息,所以需要手动填充
deprecated/service/video/query_videolist.go:48
↓ 1 callersMethodpackData
()
deprecated/service/video/query_favor_videolist.go:66
↓ 1 callersMethodpackData
()
deprecated/service/user_login/query_user_login.go:86
↓ 1 callersMethodpackResponse
()
deprecated/service/user_login/post_user_login.go:87
↓ 1 callersMethodparseNum
()
deprecated/handlers/user_info/query_follower_handler.go:49
↓ 1 callersMethodparseNum
()
deprecated/handlers/user_info/query_follow_list_handler.go:45
↓ 1 callersMethodparseNum
()
deprecated/handlers/comment/post_comment_handler.go:54
↓ 1 callersMethodparseNum
()
deprecated/handlers/comment/query_commentlist_handler.go:51
↓ 1 callersMethodparseNum
()
deprecated/handlers/video/post_favor_handler.go:46
↓ 1 callersMethodparseNum
()
deprecated/handlers/video/query_favor_videolist_handler.go:48
↓ 1 callersMethodprepareData
()
deprecated/service/user_info/query_follow_list.go:54
↓ 1 callersMethodprepareData
()
deprecated/service/user_info/query_follower_list.go:49
↓ 1 callersMethodprepareData
()
deprecated/service/comment/post_comment.go:93
↓ 1 callersMethodprepareData
()
deprecated/service/comment/query_comment_list.go:54
↓ 1 callersMethodprepareData
()
deprecated/service/video/feed_videolist.go:61
↓ 1 callersMethodprepareData
()
deprecated/service/video/query_favor_videolist.go:48
↓ 1 callersMethodprepareData
()
deprecated/service/user_login/query_user_login.go:67
↓ 1 callersMethodprepareData
()
deprecated/handlers/user_info/query_follower_handler.go:59
↓ 1 callersMethodprepareData
()
deprecated/handlers/user_info/query_follow_list_handler.go:55
↓ 1 callersMethodprepareNum
()
deprecated/handlers/user_info/post_follow_action_handler.go:46
↓ 1 callersMethodprepareParam
准备好参数
deprecated/service/video/post_video.go:41
↓ 1 callersMethodpublish
()
deprecated/service/user_info/post_follow_action.go:59
↓ 1 callersMethodpublish
组合并添加到数据库
deprecated/service/video/post_video.go:47
↓ 1 callersMethodstartAction
()
deprecated/handlers/user_info/post_follow_action_handler.go:72
↓ 1 callersMethodupdateData
()
deprecated/service/user_login/post_user_login.go:58
FunctionChangeImageDefaultSuffix
(suffix string)
deprecated/util/ffmpeg.go:55
FunctionChangeVideoDefaultSuffix
ChangeVideoDefaultSuffix 全局配置修改方法(线程安全)
deprecated/util/ffmpeg.go:49
FunctionDBConnectString
DBConnectString 填充得到数据库连接字符串
deprecated/config/conf.go:89
FunctionFeedVideoListHandler
(c *gin.Context)
deprecated/handlers/video/feed_videolist_handler.go:19
FunctionFillCommentFields
(comment *models2.Comment)
deprecated/util/comment.go:21
FunctionFillCommentListFields
(comments *[]*models2.Comment)
deprecated/util/comment.go:8
FunctionFillVideoListFields
FillVideoListFields 填充每个视频的作者信息(因为作者与视频的一对多关系,数据库中存下的是作者的id 当userId>0时,我们判断当前为登录状态,其余情况为未登录状态,则不需要填充IsFavorite字段
deprecated/util/video.go:32
FunctionGetFileUrl
(fileName string)
deprecated/util/video.go:14
FunctionInit
()
deprecated/router/router_douyin.go:14
FunctionJWTMiddleWare
JWTMiddleWare 鉴权中间件,鉴权并设置user_id
deprecated/middleware/jwt.go:56
FunctionNewCommentDAO
()
deprecated/models/comment.go:26
FunctionNewFileName
NewFileName 根据userId+用户发布的视频数量连接成独一无二的文件名
deprecated/util/video.go:20
FunctionNewUserLoginDao
()
deprecated/models/user_login.go:24
FunctionNoAuthToGetUserId
()
deprecated/middleware/normal.go:10
FunctionPostComment
(userId int64, videoId int64, commentId int64, actionType int64, commentText string)
deprecated/service/comment/post_comment.go:19
FunctionPostCommentHandler
(c *gin.Context)
deprecated/handlers/comment/post_comment_handler.go:18
FunctionPostFavorHandler
(c *gin.Context)
deprecated/handlers/video/post_favor_handler.go:12
FunctionPostFavorState
(userId, videoId, actionType int64)
deprecated/service/video/post_favor_state.go:14
FunctionPostFollowAction
(userId, userToId int64, actionType int)
deprecated/service/user_info/post_follow_action.go:19
FunctionPostFollowActionHandler
(c *gin.Context)
deprecated/handlers/user_info/post_follow_action_handler.go:12
FunctionPostUserLogin
PostUserLogin 注册用户并得到token和id
deprecated/service/user_login/post_user_login.go:10
FunctionPostVideo
PostVideo 投稿视频
deprecated/service/video/post_video.go:9
FunctionPublishVideoHandler
PublishVideoHandler 发布视频,并截取一帧画面作为封面
deprecated/handlers/video/publish_video_handler.go:31
FunctionQueryCommentList
(userId, videoId int64)
deprecated/service/comment/query_comment_list.go:14
FunctionQueryCommentListHandler
(c *gin.Context)
deprecated/handlers/comment/query_commentlist_handler.go:18
FunctionQueryFavorVideoList
(userId int64)
deprecated/service/video/query_favor_videolist.go:12
FunctionQueryFavorVideoListHandler
(c *gin.Context)
deprecated/handlers/video/query_favor_videolist_handler.go:16
FunctionQueryFeedVideoList
(userId int64, latestTime time.Time)
deprecated/service/video/feed_videolist.go:19
FunctionQueryFollowList
(userId int64)
deprecated/service/user_info/query_follow_list.go:16
FunctionQueryFollowListHandler
(c *gin.Context)
deprecated/handlers/user_info/query_follow_list_handler.go:16
FunctionQueryFollowerHandler
(c *gin.Context)
deprecated/handlers/user_info/query_follower_handler.go:16
FunctionQueryFollowerList
(userId int64)
deprecated/service/user_info/query_follower_list.go:12
FunctionQueryUserLogin
QueryUserLogin 查询用户是否存在,并返回token和id
deprecated/service/user_login/query_user_login.go:21
MethodQueryVideoByVideoId
(videoId int64, video *Video)
deprecated/models/video.go:51
FunctionQueryVideoListByUserId
(userId int64)
deprecated/service/video/query_videolist.go:13
FunctionQueryVideoListHandler
(c *gin.Context)
deprecated/handlers/video/query_videolist_handler.go:16
FunctionReleaseToken
ReleaseToken 颁发token
deprecated/middleware/jwt.go:19
FunctionSHAMiddleWare
()
deprecated/middleware/password.go:18
FunctionSaveImageFromVideo
SaveImageFromVideo 将视频切一帧保存到本地 isDebug用于控制是否打印出执行的ffmepg命令
deprecated/util/video.go:60
MethodSetFilter
(filter string)
deprecated/util/ffmpeg.go:88
MethodSetTimeOptions
(start, duration string)
deprecated/util/ffmpeg.go:82
FunctionTestJwt
(t *testing.T)
deprecated/middleware/jwt_test.go:7
FunctionTestMain
(m *testing.M)
deprecated/models/user_info_test.go:9
FunctionTestProxyIndexMap_GetVideoFavorState
(t *testing.T)
deprecated/cache/indexmap_test.go:13
FunctionTestProxyIndexMap_UpdateUserRelation
(t *testing.T)
deprecated/cache/indexmap_test.go:8
FunctionTestSHA1
40bd001563085fc35165329ea1ff5c5ecbdbbeef
deprecated/middleware/password_test.go:6
← previousnext →101–200 of 211, ranked by callers