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