Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoSimplicity/LinkMe
/ functions
Functions
1,482 in github.com/GoSimplicity/LinkMe
⨍
Functions
1,482
◇
Types & classes
383
Method
DeleteUser
(ctx context.Context, username string, uid int64)
internal/repository/dao/user.go:177
Method
DeleteUserIndex
(ctx context.Context, userId int64)
internal/repository/search.go:94
Method
DeleteUserIndex
DeleteUserIndex 删除用户索引
internal/repository/dao/search.go:476
Function
DeleteWithId
(l *zap.Logger, funcName string, timeout int, url string, paramsMap map[string]string, headerMap map[string]st
pkg/apiresponse/apiresponse.go:271
Method
Detail
Detail 获取帖子详情
internal/api/post.go:191
Method
DetailPub
DetailPub 获取公开帖子详情
internal/api/post.go:218
Method
DialHook
DialHook 实现了 redis.DialHook,用于监控连接的执行时间
pkg/cachep/prometheus/prometheus.go:44
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/service/mocks/sms.mock.go:35
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/service/mocks/user.mock.go:40
Method
Edit
Edit 创建新帖子
internal/api/post.go:45
Function
ErrorWithDetails
ErrorWithDetails 带详细数据和消息的操作失败返回
pkg/apiresponse/apiresponse.go:155
Method
Exec
Exec 执行脚本
internal/repository/cache/redis_cmd.go:57
Method
Exist
(ctx context.Context, key string)
internal/repository/sms.go:78
Method
Exist
(ctx context.Context, number string)
internal/repository/cache/sms.go:17
Method
Exist
Exist 检查key是否存在
internal/repository/cache/sms.go:79
Method
ExistsLotteryDrawByName
ExistsLotteryDrawByName 检查抽奖活动名称是否存在
internal/repository/lotteryDraw.go:89
Method
ExistsLotteryDrawByName
ExistsLotteryDrawByName 检查抽奖活动名称是否存在
internal/repository/dao/lotteryDraw.go:145
Method
ExistsSecondKillEventByName
ExistsSecondKillEventByName 检查秒杀活动名称是否存在
internal/repository/lotteryDraw.go:160
Method
ExistsSecondKillEventByName
ExistsSecondKillEventByName 检查秒杀活动名称是否存在
internal/repository/dao/lotteryDraw.go:235
Method
ExtractToken
ExtractToken 提取 Authorization 头部中的 Token
utils/jwt/jwt.go:159
Method
FindAll
FindAll 获取审核列表
internal/repository/check.go:48
Method
FindAll
FindAll 获取审核列表
internal/repository/dao/check.go:91
Method
FindByID
FindByID 获取审核详情
internal/repository/check.go:57
Method
FindByID
FindByID 通过ID查询用户
internal/repository/user.go:78
Method
FindByID
(ctx context.Context, checkId int64)
internal/repository/dao/check.go:17
Method
FindByID
FindByID 获取审核详情
internal/repository/dao/check.go:111
Method
FindByPhone
FindByPhone 通过电话查询用户
internal/repository/user.go:104
Method
FindByPhone
(ctx context.Context, phone string)
internal/repository/dao/user.go:147
Method
FindByPostId
FindByPostId 根据帖子ID获取审核信息
internal/repository/check.go:66
Method
FindByPostId
(ctx context.Context, postId uint)
internal/repository/dao/check.go:18
Method
FindByPostId
FindByPostId 根据帖子ID获取审核信息
internal/repository/dao/check.go:127
Method
FindByUsername
FindByUsername 通过用户名查询用户
internal/repository/user.go:114
Method
FindByUsername
(ctx context.Context, username string)
internal/repository/dao/user.go:133
Method
FindCommentByCommentId
FindCommentByCommentId 根据评论ID查找评论
internal/repository/comment.go:44
Method
FindCommentByCommentId
FindCommentByCommentId 根据commentId查找评论
internal/repository/dao/comment.go:69
Method
FindCommentsByPostId
FindCommentsByPostId 根据 postID 查找评论
internal/repository/dao/comment.go:120
Method
FindFailedLogs
(ctx context.Context)
internal/repository/dao/sms.go:12
Method
FindFailedLogs
(ctx context.Context)
internal/repository/dao/sms.go:47
Method
FindLastParameter
(ctx context.Context)
internal/repository/rankingparameters.go:34
Method
FindLastParameter
(ctx context.Context)
internal/repository/dao/rankingparameters.go:45
Method
FindRepliesByRid
(ctx context.Context, rid int64, id int64, limit int64)
internal/repository/dao/comment.go:44
Method
FindRepliesByRid
FindRepliesByRid 根据根评论ID查找回复
internal/repository/dao/comment.go:153
Method
FindTopCommentsByPostId
(ctx context.Context, postId int64)
internal/repository/dao/comment.go:138
Method
FollowCount
FollowCount 获取用户的关注和粉丝数量
internal/repository/dao/relation.go:176
Method
FollowUser
FollowUser 关注用户
internal/service/relation.go:45
Method
FollowUser
FollowUser 关注用户
internal/repository/relation.go:37
Method
FollowUser
(ctx context.Context, followerID, followeeID int64)
internal/repository/dao/relation.go:22
Method
FollowUser
FollowUser 关注用户,并更新相关计数器
internal/repository/dao/relation.go:96
Method
FollowUser
FollowUser 处理关注用户的请求
internal/api/relation.go:71
Function
ForbiddenError
ForbiddenError 无权限的失败返回
pkg/apiresponse/apiresponse.go:215
Method
ForceGet
(ctx context.Context)
internal/repository/cache/local.go:69
Method
GenerateCacheKey
GenerateCacheKey 生成单个审核记录的缓存键
internal/repository/cache/check.go:165
Method
GenerateCacheKey
(userID int64, relationType string, pagination domain.Pagination)
internal/repository/cache/relation.go:19
Method
GenerateCountCacheKey
GenerateCountCacheKey 生成审核记录数量的缓存键
internal/repository/cache/check.go:175
Method
GenerateCountCacheKey
(userID int64, relationType string)
internal/repository/cache/relation.go:20
Method
GeneratePaginationCacheKey
(pagination domain.Pagination)
internal/repository/cache/check.go:25
Method
GeneratePaginationCacheKey
GeneratePaginationCacheKey 生成分页查询的缓存键
internal/repository/cache/check.go:170
Method
Get
Get 从缓存中获取数据,如果缓存未命中,则调用 loader 加载数据并缓存
pkg/cachep/local/local.go:55
Method
Get
Get 获取单个互动信息
internal/service/interactive.go:91
Method
Get
Get 获取互动信息
internal/repository/interactive.go:79
Method
Get
Get 从redis中获取数据并反序列化
internal/repository/cache/comment.go:31
Method
Get
(ctx context.Context)
internal/repository/cache/ranking.go:69
Method
Get
Get 获取帖子缓存
internal/repository/cache/post.go:58
Method
Get
(ctx context.Context)
internal/repository/cache/local.go:20
Method
Get
(ctx context.Context)
internal/repository/cache/local.go:58
Method
Get
取消收藏
internal/repository/cache/interactive.go:31
Method
Get
Get 获取互动信息
internal/repository/cache/interactive.go:61
Method
Get
Get 从redis中获取数据并反序列化
internal/repository/cache/user.go:31
Method
Get
(ctx context.Context, postId uint)
internal/repository/dao/interactive.go:36
Method
Get
Get 获取单个互动信息
internal/repository/dao/interactive.go:299
Method
GetApiById
GetApiById 根据ID获取API
internal/service/api.go:43
Method
GetApiById
GetApiById 根据ID获取API
internal/repository/api.go:40
Method
GetApiById
GetApiById 根据ID获取API记录
internal/repository/dao/api.go:59
Method
GetById
(ctx context.Context, postIds []uint)
internal/repository/interactive.go:24
Method
GetById
GetById 批量获取互动信息
internal/repository/interactive.go:101
Method
GetById
GetById 根据ID获取帖子
internal/repository/dao/post.go:207
Method
GetByIds
(ctx context.Context, postIds []uint)
internal/service/interactive.go:21
Method
GetByIds
GetByIds 批量获取互动信息
internal/service/interactive.go:99
Method
GetByIds
GetByIds 批量获取互动信息
internal/repository/dao/interactive.go:310
Method
GetCache
GetCache 从缓存中获取单个审核记录
internal/repository/cache/check.go:38
Method
GetCache
(ctx context.Context, key string)
internal/repository/cache/relation.go:14
Method
GetCache
(ctx context.Context, key string)
internal/repository/cache/relation.go:31
Method
GetCache
(ctx context.Context, pagination domain.Pagination)
internal/repository/cache/history.go:28
Method
GetCache
GetCache 获取历史记录
internal/repository/cache/history.go:47
Method
GetCacheList
(ctx context.Context, key string)
internal/repository/cache/check.go:20
Method
GetCacheList
GetCacheList 从缓存中获取审核记录列表
internal/repository/cache/check.go:105
Method
GetCodes
GetCodes 获取权限码
internal/api/user.go:349
Method
GetCollectInfo
GetCollectInfo 获取收藏信息
internal/repository/dao/interactive.go:290
Method
GetCountCache
GetCountCache 从缓存中获取审核记录的数量
internal/repository/cache/check.go:141
Method
GetCountCache
(ctx context.Context, key string)
internal/repository/cache/relation.go:16
Method
GetCountCache
(ctx context.Context, key string)
internal/repository/cache/relation.go:61
Method
GetFolloweeCount
(ctx context.Context, UserID int64)
internal/service/relation.go:54
Method
GetFolloweeCount
(ctx context.Context, userID int64)
internal/repository/relation.go:18
Method
GetFolloweeCount
(ctx context.Context, userID int64)
internal/repository/relation.go:97
Method
GetFolloweeCount
GetFolloweeCount 获取关注者的数量
internal/api/relation.go:114
Method
GetFollowerCount
(ctx context.Context, UserID int64)
internal/service/relation.go:58
Method
GetFollowerCount
(ctx context.Context, userID int64)
internal/repository/relation.go:19
Method
GetFollowerCount
(ctx context.Context, userID int64)
internal/repository/relation.go:115
Method
GetFollowerCount
GetFollowerCount 获取粉丝的数量
internal/api/relation.go:130
Method
GetHistory
GetHistory 获取历史记录
internal/service/history.go:30
← previous
next →
901–1,000 of 1,482, ranked by callers