MCPcopy Create free account

hub / github.com/GoSimplicity/LinkMe / functions

Functions1,482 in github.com/GoSimplicity/LinkMe

MethodGetHistory
(ctx context.Context, pagination domain.Pagination)
internal/repository/history.go:12
MethodGetHistory
GetHistory 获取历史记录
internal/repository/history.go:31
MethodGetHistory
GetHistory 获取历史记录
internal/api/history.go:31
MethodGetLikeInfo
GetLikeInfo 获取点赞信息
internal/repository/dao/interactive.go:281
MethodGetList
GetList 获取帖子列表缓存
internal/repository/cache/post.go:192
MethodGetLotteryDraw
GetLotteryDraw 从缓存中获取指定ID的抽奖活动
internal/repository/cache/lotteryDraw.go:18
MethodGetLotteryDraw
GetLotteryDraw 获取指定ID的抽奖活动
internal/api/lotteryDraw.go:99
MethodGetLotteryDrawByID
GetLotteryDrawByID 根据ID获取抽奖活动
internal/service/lotteryDraw.go:506
MethodGetLotteryDrawByID
GetLotteryDrawByID 根据 ID 获取指定的抽奖活动
internal/repository/lotteryDraw.go:74
MethodGetLotteryDrawByID
(ctx context.Context, id int)
internal/repository/dao/lotteryDraw.go:13
MethodGetLotteryDrawByID
GetLotteryDrawByID 根据ID获取指定的抽奖活动
internal/repository/dao/lotteryDraw.go:92
MethodGetLotteryDrawWithLock
GetLotteryDrawWithLock 在缓存未命中时,使用分布式锁从数据库获取并设置缓存
internal/repository/cache/lotteryDraw.go:24
MethodGetLotteryDrawWithLock
GetLotteryDrawWithLock 在缓存未命中时,使用分布式锁从数据库获取并设置缓存
internal/repository/cache/lotteryDraw.go:128
MethodGetMenuById
GetMenuById 根据ID获取菜单
internal/service/menu.go:64
MethodGetMenuById
GetMenuById 根据ID获取菜单
internal/repository/menu.go:38
MethodGetMenuById
(ctx context.Context, id int)
internal/repository/dao/menu.go:35
MethodGetMenuById
GetMenuById 根据ID获取菜单
internal/repository/dao/menu.go:99
MethodGetMenuTree
GetMenuTree 获取菜单树形结构
internal/service/menu.go:94
MethodGetMenuTree
GetMenuTree 获取菜单树
internal/repository/menu.go:66
MethodGetMenuTree
(ctx context.Context)
internal/repository/dao/menu.go:39
MethodGetMenuTree
GetMenuTree 获取菜单树形结构
internal/repository/dao/menu.go:278
MethodGetMenus
GetMenus 获取菜单列表,支持分页和树形结构
internal/service/menu.go:34
MethodGetMoreCommentReply
GetMoreCommentReply 获取更多评论回复处理器方法
internal/api/comment.go:112
MethodGetMoreCommentsReply
GetMoreCommentsReply 获取更多评论回复的实现
internal/service/comment.go:79
MethodGetMoreCommentsReply
GetMoreCommentsReply 获取更多评论回复
internal/repository/comment.go:63
MethodGetMoreCommentsReply
(ctx context.Context, rootId, maxId, limit int64)
internal/repository/dao/comment.go:43
MethodGetMoreCommentsReply
GetMoreCommentsReply 获取更多评论回复
internal/repository/dao/comment.go:101
FunctionGetParamID
GetParamID 从查询参数中解析 ID,并进行类型转换
pkg/apiresponse/apiresponse.go:342
FunctionGetParamName
GetParamName 从查询参数中解析 Name,并进行类型转换
pkg/apiresponse/apiresponse.go:368
MethodGetPost
GetPost 获取帖子
internal/service/post.go:204
MethodGetPost
GetPost 获取帖子
internal/repository/post.go:268
MethodGetPost
(ctx context.Context, postId uint)
internal/repository/dao/post.go:30
MethodGetPost
GetPost 获取帖子
internal/repository/dao/post.go:304
MethodGetPost
GetPost 获取帖子详情
internal/api/post.go:336
MethodGetPostById
GetPostById 获取帖子详细信息
internal/service/post.go:107
MethodGetPostById
(ctx context.Context, postId uint, uid int64)
internal/repository/post.go:26
MethodGetPostsByPlate
GetPostsByPlate 根据板块获取帖子
internal/service/post.go:226
MethodGetPostsByPlate
(ctx context.Context, plateId int64, pagination domain.Pagination)
internal/repository/post.go:323
MethodGetPostsByPlate
(ctx context.Context, plateId int64, pagination domain.Pagination)
internal/repository/dao/post.go:32
MethodGetPostsByPlate
GetPostsByPlate 根据板块获取帖子
internal/repository/dao/post.go:351
MethodGetPostsByPlate
GetPostsByPlate 根据板块获取帖子
internal/api/post.go:363
MethodGetPostsCount
GetPostsCount 获取帖子数量
internal/service/post.go:221
MethodGetPostsCount
(ctx context.Context)
internal/repository/post.go:319
MethodGetPostsCount
(ctx context.Context)
internal/repository/dao/post.go:31
MethodGetPostsCount
GetPostsCount 获取帖子总数
internal/repository/dao/post.go:341
MethodGetPostsCount
GetPostsCount 获取帖子总数
internal/api/post.go:353
MethodGetProfile
GetProfile 通过用户ID获取用户资料
internal/repository/user.go:168
MethodGetProfile
GetProfile 获取用户资料
internal/api/user.go:252
MethodGetProfileByUserID
GetProfileByUserID 获取用户资料
internal/service/user.go:203
MethodGetProfileByUserID
GetProfileByUserID mocks base method.
internal/service/mocks/user.mock.go:73
MethodGetProfileByUserID
GetProfileByUserID indicates an expected call of GetProfileByUserID.
internal/service/mocks/user.mock.go:82
MethodGetProfileByUserID
(ctx context.Context, userId int64)
internal/repository/dao/user.go:223
MethodGetPub
GetPub 获取已发布帖子缓存
internal/repository/cache/post.go:375
MethodGetPubById
GetPubById 获取已发布的帖子
internal/repository/dao/post.go:247
MethodGetPubList
GetPubList 获取已发布帖子列表缓存
internal/repository/cache/post.go:273
MethodGetPublishPostById
GetPublishPostById 获取已发布的帖子详细信息
internal/service/post.go:134
MethodGetPublishPostById
(ctx context.Context, postId uint)
internal/repository/post.go:27
MethodGetPublishPostById
GetPublishPostById 获取已发布的帖子详细信息
internal/repository/post.go:136
FunctionGetQueryID
GetQueryID 从query参数中解析 ID,并进行类型转换
pkg/apiresponse/apiresponse.go:355
MethodGetRanking
GetRanking 获取排行榜
internal/api/ranking.go:32
MethodGetRankingConfig
(ctx *gin.Context)
internal/api/ranking.go:41
MethodGetRecentActivity
(ctx context.Context)
internal/service/activity.go:24
MethodGetRecentActivity
(ctx context.Context)
internal/repository/activity.go:25
MethodGetRecentActivity
(ctx context.Context)
internal/repository/dao/activity.go:11
MethodGetRecentActivity
(ctx context.Context)
internal/repository/dao/activity.go:34
MethodGetRecentActivity
GetRecentActivity 获取最近的活动记录
internal/api/activity.go:32
MethodGetRole
GetRole 根据角色ID获取角色信息
internal/service/role.go:99
MethodGetRole
GetRole 根据角色ID获取角色信息
internal/repository/role.go:67
MethodGetRole
(ctx context.Context, roleId int)
internal/repository/dao/role.go:36
MethodGetRole
GetRole 获取角色详细信息(包含权限)
internal/repository/dao/role.go:276
MethodGetRoleById
GetRoleById 根据ID获取角色信息
internal/service/role.go:53
MethodGetRoleById
GetRoleById 根据ID获取角色
internal/repository/role.go:39
MethodGetRoleById
(ctx context.Context, id int)
internal/repository/dao/role.go:32
MethodGetRoleById
GetRoleById 根据ID获取角色
internal/repository/dao/role.go:110
MethodGetRoles
GetRoles 获取角色详情
internal/api/role.go:187
MethodGetSecondKillEvent
GetSecondKillEvent 从缓存中获取指定ID的秒杀活动
internal/repository/cache/lotteryDraw.go:27
MethodGetSecondKillEvent
GetSecondKillEvent 获取指定ID的秒杀活动
internal/api/lotteryDraw.go:185
MethodGetSecondKillEventByID
GetSecondKillEventByID 根据ID获取秒杀活动
internal/service/lotteryDraw.go:582
MethodGetSecondKillEventByID
GetSecondKillEventByID 根据 ID 获取指定的秒杀活动
internal/repository/lotteryDraw.go:145
MethodGetSecondKillEventByID
(ctx context.Context, id int)
internal/repository/dao/lotteryDraw.go:19
MethodGetSecondKillEventByID
GetSecondKillEventByID 根据ID获取指定的秒杀活动
internal/repository/dao/lotteryDraw.go:185
MethodGetSecondKillEventWithLock
GetSecondKillEventWithLock 在缓存未命中时,使用分布式锁从数据库获取并设置缓存
internal/repository/cache/lotteryDraw.go:33
MethodGetSecondKillEventWithLock
GetSecondKillEventWithLock 在缓存未命中时,使用分布式锁从数据库获取并设置缓存
internal/repository/cache/lotteryDraw.go:245
MethodGetTopCommentReply
(ctx *gin.Context, req req.GetTopCommentReplyReq)
internal/api/comment.go:127
MethodGetTopCommentsReply
(ctx context.Context, postId int64)
internal/service/comment.go:120
MethodGetTopCommentsReply
(ctx context.Context, postId int64)
internal/repository/comment.go:26
MethodGetTopCommentsReply
GetTopCommentsReply 加载顶级评论
internal/repository/comment.go:72
MethodGetTopN
GetTopN 获取排名前 N 的帖子
internal/service/ranking.go:81
MethodGetTopN
(ctx context.Context)
internal/repository/ranking.go:14
MethodGetTopN
GetTopN 从缓存中获取排名前 N 的帖子
internal/repository/ranking.go:32
MethodGetUserRole
GetUserRole 获取用户的角色信息
internal/service/role.go:109
MethodGetUserRole
GetUserRole 获取用户的角色信息
internal/repository/role.go:79
MethodGetUserRole
(ctx context.Context, userId int)
internal/repository/dao/role.go:37
MethodGetUserRole
GetUserRole 获取用户的角色信息
internal/repository/dao/role.go:332
MethodGetUserRoles
GetUserRoles 获取用户角色
internal/api/role.go:167
MethodGetVCode
(ctx context.Context, email string)
internal/repository/cache/email.go:11
MethodGetVCode
(ctx context.Context, email string)
internal/repository/cache/email.go:25
MethodGetVCode
GetVCode 获取短信验证码
internal/repository/cache/sms.go:50
MethodHandleMessage
(msg *sarama.ConsumerMessage, emailEvent EmailEvent)
internal/domain/events/email/consumer.go:50
MethodHandleMessage
(msg *sarama.ConsumerMessage, smsEvent SMSCodeEvent)
internal/domain/events/sms/consumer.go:57
← previousnext →1,001–1,100 of 1,482, ranked by callers