MCPcopy Create free account

hub / github.com/GoSimplicity/LinkMe / functions

Functions1,482 in github.com/GoSimplicity/LinkMe

FunctionTestEsConsumer
(t *testing.T)
internal/domain/events/es/consumer_test.go:54
FunctionTestQQEmail
(t *testing.T)
pkg/email/qqEmail_test.go:13
FunctionTestSearchPosts
测试SearchPosts函数
internal/repository/search_test.go:55
FunctionTestSearchUsers
测试SearchUsers函数
internal/repository/search_test.go:89
FunctionTestSendCode
(t *testing.T)
internal/repository/sms_test.go:20
FunctionToDomainListPubPost
ToDomainListPubPost 将dao层转化为领域层
pkg/change/change.go:126
MethodTopN
核心业务方法 TopN 计算并更新排名前 N 的帖子
internal/service/ranking.go:66
MethodTopN
(ctx context.Context)
internal/job/interfaces/ranking.go:16
MethodUpdate
Update 更新帖子,默认状态为草稿
internal/service/post.go:58
MethodUpdate
Update 更新帖子
internal/repository/post.go:69
MethodUpdate
(ctx context.Context, post Post)
internal/repository/dao/post.go:22
MethodUpdate
Update 更新帖子信息
internal/repository/dao/post.go:109
MethodUpdate
(ctx context.Context, log VCodeSmsLog)
internal/repository/dao/sms.go:59
MethodUpdate
Update 更新帖子内容
internal/api/post.go:73
MethodUpdateAPI
UpdateAPI 更新API信息
internal/api/api.go:88
MethodUpdateApi
UpdateApi 更新API信息
internal/service/api.go:53
MethodUpdateApi
UpdateApi 更新API信息
internal/repository/api.go:52
MethodUpdateApi
(ctx context.Context, api *Api)
internal/repository/dao/api.go:29
MethodUpdateApi
UpdateApi 更新API记录
internal/repository/dao/api.go:70
MethodUpdateComment
UpdateComment 更新评论
internal/repository/comment.go:53
MethodUpdateComment
(ctx context.Context, comment Comment)
internal/repository/dao/comment.go:82
MethodUpdateLotteryDrawStatus
UpdateLotteryDrawStatus 更新抽奖活动的状态
internal/repository/lotteryDraw.go:203
MethodUpdateLotteryDrawStatus
UpdateLotteryDrawStatus 更新抽奖活动的状态
internal/repository/dao/lotteryDraw.go:291
MethodUpdateMenu
UpdateMenu 更新菜单信息
internal/service/menu.go:74
MethodUpdateMenu
UpdateMenu 更新菜单信息
internal/repository/menu.go:47
MethodUpdateMenu
(ctx context.Context, menu *Menu)
internal/repository/dao/menu.go:36
MethodUpdateMenu
UpdateMenu 更新菜单
internal/repository/dao/menu.go:116
MethodUpdateMenu
UpdateMenu 更新菜单
internal/api/menu.go:89
MethodUpdateNextTime
UpdateNextTime 更新任务的下次执行时间
internal/repository/sql_job.go:55
MethodUpdateNextTime
UpdateNextTime 更新任务的下次执行时间
internal/repository/dao/sql_job.go:97
MethodUpdatePasswordByUsername
(ctx context.Context, username string, newPassword string)
internal/repository/dao/user.go:160
MethodUpdatePlate
(ctx context.Context, plate domain.Plate)
internal/service/plate.go:43
MethodUpdatePlate
(ctx context.Context, plate domain.Plate)
internal/repository/plate.go:42
MethodUpdatePlate
(ctx context.Context, plate domain.Plate)
internal/repository/dao/plate.go:14
MethodUpdatePlate
(ctx context.Context, plate domain.Plate)
internal/repository/dao/plate.go:78
MethodUpdatePlate
(ctx *gin.Context)
internal/api/plate.go:55
MethodUpdateProfile
UpdateProfile 更新用户资料
internal/service/user.go:177
MethodUpdateProfile
UpdateProfile mocks base method.
internal/service/mocks/user.mock.go:147
MethodUpdateProfile
UpdateProfile indicates an expected call of UpdateProfile.
internal/service/mocks/user.mock.go:155
MethodUpdateProfile
UpdateProfile 更新用户资料
internal/repository/user.go:146
MethodUpdateProfile
(ctx context.Context, profile domain.Profile)
internal/repository/dao/user.go:32
MethodUpdateProfile
(ctx context.Context, profile domain.Profile)
internal/repository/dao/user.go:198
MethodUpdateProfile
UpdateProfile 更新用户资料
internal/domain/user.go:105
MethodUpdateProfile
UpdateProfile 更新用户资料(管理员)
internal/api/user.go:354
MethodUpdateProfileAdmin
UpdateProfileAdmin 更新用户资料(管理员)
internal/service/user.go:224
MethodUpdateProfileAdmin
UpdateProfileAdmin mocks base method.
internal/service/mocks/user.mock.go:161
MethodUpdateProfileAdmin
UpdateProfileAdmin indicates an expected call of UpdateProfileAdmin.
internal/service/mocks/user.mock.go:169
MethodUpdateProfileAdmin
UpdateProfileAdmin 更新用户资料(管理员)
internal/repository/user.go:190
MethodUpdateProfileAdmin
(ctx context.Context, profile domain.Profile)
internal/repository/dao/user.go:35
MethodUpdateProfileAdmin
UpdateProfileAdmin implements UserDAO.
internal/repository/dao/user.go:281
MethodUpdateProfileByID
UpdateProfileByID 更新用户资料
internal/api/user.go:274
MethodUpdateRole
UpdateRole 更新角色信息
internal/service/role.go:63
MethodUpdateRole
UpdateRole 更新角色信息
internal/repository/role.go:48
MethodUpdateRole
(ctx context.Context, role *Role)
internal/repository/dao/role.go:33
MethodUpdateRole
UpdateRole 更新角色信息
internal/repository/dao/role.go:127
MethodUpdateRole
UpdateRole 更新角色
internal/api/role.go:94
MethodUpdateSecondKillEventStatus
UpdateSecondKillEventStatus 更新秒杀活动的状态
internal/repository/lotteryDraw.go:226
MethodUpdateSecondKillEventStatus
UpdateSecondKillEventStatus 更新秒杀活动的状态
internal/repository/dao/lotteryDraw.go:319
MethodUpdateStatus
UpdateStatus 更新帖子状态
internal/repository/post.go:88
MethodUpdateStatus
UpdateStatus 更新审核状态
internal/repository/check.go:43
MethodUpdateStatus
UpdateStatus 更新帖子状态
internal/repository/dao/post.go:139
MethodUpdateStatus
(ctx context.Context, check Check)
internal/repository/dao/check.go:15
MethodUpdateStatus
UpdateStatus 更新审核状态
internal/repository/dao/check.go:68
MethodUpdateStatus
(ctx context.Context, followerID, followeeID int64, status bool)
internal/repository/dao/relation.go:24
MethodUpdateStatus
UpdateStatus 更新关系状态
internal/repository/dao/relation.go:163
MethodUpdateTime
UpdateTime 更新任务的时间
internal/repository/sql_job.go:50
MethodUpdateTime
UpdateTime 更新任务的更新时间
internal/repository/dao/sql_job.go:89
MethodUpdateUserRole
UpdateUserRole 更新用户角色
internal/api/role.go:148
MethodVerifyRefreshToken
VerifyRefreshToken 验证refresh token
utils/jwt/jwt.go:250
MethodWithdraw
Withdraw 撤回帖子,移除线上数据库中的帖子
internal/service/post.go:102
MethodWithdraw
Withdraw 撤回帖子
internal/api/post.go:121
FunctionWrapNoParam
WrapNoParam 是一个中间件,用于包裹不需要请求参数的业务逻辑函数,处理响应并集中管理错误处理。
pkg/ginp/wrapper.go:74
MethodWriteOff
WriteOff 注销用户
internal/api/user.go:220
FunctioncalculateScore
calculateScore 计算帖子得分 使用 HackerNews 算法的变体:score = likes / (t + 2)^1.5 t 是发帖时间距现在的秒数,加2是为了避免除0
internal/service/ranking.go:103
FunctioncreateMockGormDB
辅助函数,用于创建一个模拟的GORM数据库实例,这里简单返回nil,根据实际情况可进一步完善模拟逻辑
internal/repository/search_test.go:36
MethodhandleElasticsearchError
handleElasticsearchError 处理ES错误响应
internal/repository/dao/search.go:503
MethodhandleEmptyOrError
(ctx context.Context, key string, values []string, err error)
internal/repository/cache/history.go:181
MethodhandleEsComment
handleEsComment 处理评论的ES操作,发布或删除索引
internal/domain/events/es/consumer.go:247
Functioninit
()
utils/aicheck/doubao.go:23
Functioninit
()
internal/repository/cache/redis_cmd.go:33
Functionmain
()
cmd/main.go:20
MethodsetRefreshToken
(ctx *gin.Context, uid int64, ssid string)
utils/jwt/jwt.go:48
← previous1,401–1,482 of 1,482, ranked by callers