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
↓ 2 callers
Function
WrapParam
(bizFn func(ctx *gin.Context, req Req) (Result, error))
pkg/ginp/wrapper.go:32
↓ 2 callers
Method
acquireLock
acquireLock 尝试获取分布式锁
internal/repository/cache/lotteryDraw.go:303
↓ 2 callers
Method
acquireLock
辅助方法: 获取分布式锁
internal/repository/cache/post.go:447
↓ 2 callers
Method
apiFromDAO
apiFromDAO 将DAO层的API对象转换为domain层对象
internal/repository/api.go:102
↓ 2 callers
Method
apiToDAO
apiToDAO 将domain层的API对象转换为DAO层对象
internal/repository/api.go:82
↓ 2 callers
Method
batchAddPolicies
batchAddPolicies 批量添加策略
internal/repository/dao/permission.go:294
↓ 2 callers
Method
checkExistence
checkExistence 检查是否存在
internal/repository/interactive.go:115
↓ 2 callers
Function
convertToDAOParticipants
convertToDAOParticipants 将 domain.Participant 列表转换为 dao.Participant 列表
internal/repository/lotteryDraw.go:345
↓ 2 callers
Function
convertToDomainLotteryDraw
convertToDomainLotteryDraw 将 dao.LotteryDraw 转换为 domain.LotteryDraw
internal/repository/lotteryDraw.go:273
↓ 2 callers
Function
convertToDomainParticipants
convertToDomainParticipants 将 dao.Participant 列表转换为 domain.Participant 列表
internal/repository/lotteryDraw.go:370
↓ 2 callers
Function
convertToDomainSecondKillEvent
convertToDomainSecondKillEvent 将 dao.SecondKillEvent 转换为 domain.SecondKillEvent
internal/repository/lotteryDraw.go:310
↓ 2 callers
Method
copyPosts
()
internal/repository/cache/local.go:100
↓ 2 callers
Function
currentUserID
(ctx *gin.Context)
internal/api/auth.go:25
↓ 2 callers
Method
flushBuffer
()
internal/domain/events/es/process_util.go:123
↓ 2 callers
Function
genEmailKey
(email string)
internal/repository/cache/email.go:33
↓ 2 callers
Function
generateLockKey
generateLockKey 生成分布式锁的键
internal/repository/cache/lotteryDraw.go:347
↓ 2 callers
Function
generateUUID
generateUUID 生成新的UUID
internal/service/lotteryDraw.go:599
↓ 2 callers
Function
getCountKey
(number string, now time.Time)
internal/repository/cache/sms.go:45
↓ 2 callers
Method
getLock
getLock 获取指定活动的读写锁,如果不存在则创建一个新的锁
internal/service/lotteryDraw.go:593
↓ 2 callers
Method
getSubNode
(char rune)
utils/contentfilter/contentfilter.go:139
↓ 2 callers
Function
getVCodeKey
(smsID, number string)
internal/repository/cache/sms.go:38
↓ 2 callers
Method
isCommentIndexExists
isCommentIndexExists 查询Comment索引是否存在
internal/domain/events/es/consumer.go:332
↓ 2 callers
Function
isNil
isNil 使用反射检查值是否为 nil
pkg/cachep/bloom/cachebloom.go:146
↓ 2 callers
Method
isPostIndexExists
isPostIndexExists 查询Post索引是否存在
internal/domain/events/es/consumer.go:442
↓ 2 callers
Method
isUserExists
isUserExists 查询指定User是否存在
internal/domain/events/es/consumer.go:456
↓ 2 callers
Method
lockKey
(key string)
internal/repository/cache/post.go:476
↓ 2 callers
Method
menuFromDAO
menuFromDAO 将数据访问对象转换为领域模型
internal/repository/menu.go:96
↓ 2 callers
Method
menuToDAO
menuToDAO 将领域模型转换为数据访问对象
internal/repository/menu.go:75
↓ 2 callers
Method
menusFromDAO
menusFromDAO 批量将菜单DAO模型转换为领域模型
internal/repository/role.go:141
↓ 2 callers
Function
newTrieNode
()
utils/contentfilter/contentfilter.go:133
↓ 2 callers
Method
recordActivity
recordActivity 记录活动
internal/service/check.go:208
↓ 2 callers
Method
releaseLock
releaseLock 释放分布式锁,使用 Lua 脚本确保操作的原子性
internal/repository/cache/lotteryDraw.go:314
↓ 2 callers
Method
releaseLock
辅助方法: 释放分布式锁
internal/repository/cache/post.go:452
↓ 2 callers
Method
roleToDAO
roleToDAO 将领域模型转换为DAO模型
internal/repository/role.go:91
↓ 2 callers
Function
stringToNullTimeHookFunc
stringToNullTimeHookFunc 转换字符串到 NullTime 类型
internal/domain/events/es/process_util.go:197
↓ 2 callers
Function
toDAOCheck
toDAOCheck 将 domain.Check 转换为 dao.Check
internal/repository/check.go:75
↓ 2 callers
Method
toDAOComment
toDAOComment 将领域模型评论转换为DAO评论
internal/repository/comment.go:107
↓ 2 callers
Method
toDaoPostSearch
(domainPosts domain.PostSearch)
internal/repository/search.go:109
↓ 2 callers
Method
toDaoUserSearch
(domainUsers domain.UserSearch)
internal/repository/search.go:127
↓ 2 callers
Function
toDomain
(ic dao.Interactive)
internal/repository/interactive.go:127
↓ 2 callers
Method
toDomainSliceComments
toDomainSliceComments 将DAO评论切片转换为领域模型评论切片
internal/repository/comment.go:164
↓ 2 callers
Method
unmarshalValue
unmarshalValue 将缓存值反序列化为指定类型
pkg/cachep/local/local.go:123
↓ 1 callers
Method
Abstract
()
internal/domain/post.go:59
↓ 1 callers
Method
AddKeyword
(keyword string)
utils/contentfilter/contentfilter.go:49
↓ 1 callers
Method
AddLotteryParticipant
(ctx context.Context, dp domain.Participant)
internal/repository/lotteryDraw.go:19
↓ 1 callers
Method
AddSecondKillParticipant
(ctx context.Context, dp domain.Participant)
internal/repository/lotteryDraw.go:27
↓ 1 callers
Method
ApproveCheck
(ctx context.Context, checkID int64, remark string, uid int64)
internal/service/check.go:18
↓ 1 callers
Method
AssignRole
(ctx context.Context, roleId int, menuIds []int, apiIds []int)
internal/repository/permission.go:11
↓ 1 callers
Method
AssignRole
(ctx context.Context, roleId int, menuIds []int, apiIds []int)
internal/repository/dao/permission.go:15
↓ 1 callers
Method
AssignRoleToUser
(ctx context.Context, userId int, roleIds []int, menuIds []int, apiIds []int)
internal/repository/permission.go:12
↓ 1 callers
Method
AssignRoleToUsers
(ctx context.Context, userIds []int, roleIds []int, menuIds []int, apiIds []int)
internal/repository/permission.go:13
↓ 1 callers
Function
BadRequestWithDetails
BadRequestWithDetails 带详细数据和消息的参数错误返回
pkg/apiresponse/apiresponse.go:205
↓ 1 callers
Method
BulkInputLogs
(ctx context.Context, event []domain.ReadEvent)
internal/repository/search.go:27
↓ 1 callers
Method
BulkInputPosts
(ctx context.Context, posts []domain.PostSearch)
internal/repository/search.go:25
↓ 1 callers
Method
BulkInputPosts
(ctx context.Context, posts []PostSearch)
internal/repository/dao/search.go:47
↓ 1 callers
Method
BulkInputUsers
(ctx context.Context, users []domain.UserSearch)
internal/repository/search.go:26
↓ 1 callers
Method
BulkInputUsers
(ctx context.Context, users []UserSearch)
internal/repository/dao/search.go:48
↓ 1 callers
Method
CancelCollect
(ctx context.Context, postId uint, uid int64)
internal/service/interactive.go:19
↓ 1 callers
Method
CancelFollowUser
(ctx context.Context, followerID, followeeID int64)
internal/repository/relation.go:17
↓ 1 callers
Method
CancelLike
(ctx context.Context, postId uint, uid int64)
internal/service/interactive.go:17
↓ 1 callers
Method
CheckCode
(ctx context.Context, smsID, number, vCode string)
internal/repository/sms.go:24
↓ 1 callers
Method
CheckDetail
(ctx context.Context, checkID int64)
internal/service/check.go:21
↓ 1 callers
Method
CheckLogin
CheckLogin 校验JWT
middleware/login.go:22
↓ 1 callers
Function
CheckPostContent
(title string, content string)
utils/aicheck/doubao.go:58
↓ 1 callers
Method
CheckSession
(ctx *gin.Context, ssid string)
utils/jwt/jwt.go:45
↓ 1 callers
Method
Close
()
internal/domain/events/es/process_util.go:55
↓ 1 callers
Method
Collect
(ctx context.Context, postId uint, uid int64)
internal/service/interactive.go:18
↓ 1 callers
Method
Collected
(ctx context.Context, postId uint, uid int64)
internal/repository/interactive.go:23
↓ 1 callers
Method
Create
(ctx context.Context, check domain.Check)
internal/repository/check.go:12
↓ 1 callers
Method
CreateApi
(ctx context.Context, api *domain.Api)
internal/repository/api.go:12
↓ 1 callers
Method
CreateComment
(ctx context.Context, comment domain.Comment)
internal/repository/comment.go:22
↓ 1 callers
Method
CreateCommentIndex
CreateCommentIndex 创建comment的es索引
internal/repository/dao/search.go:158
↓ 1 callers
Method
CreateLogsIndex
CreateLogsIndex 创建日志索引
internal/repository/dao/search.go:213
↓ 1 callers
Method
CreateLotteryDraw
(ctx context.Context, draw domain.LotteryDraw)
internal/repository/lotteryDraw.go:15
↓ 1 callers
Method
CreateMenu
(ctx context.Context, menu *domain.Menu)
internal/repository/menu.go:12
↓ 1 callers
Method
CreatePlate
(ctx context.Context, plate domain.Plate)
internal/repository/plate.go:12
↓ 1 callers
Method
CreatePostIndex
(ctx context.Context, properties ...interface{})
internal/repository/dao/search.go:33
↓ 1 callers
Method
CreatePostIndex
CreatePostIndex 创建post的es索引
internal/repository/dao/search.go:175
↓ 1 callers
Method
CreateRole
(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int)
internal/repository/role.go:12
↓ 1 callers
Method
CreateSecondKillEvent
(ctx context.Context, input domain.SecondKillEvent)
internal/repository/lotteryDraw.go:23
↓ 1 callers
Method
CreateUser
(ctx context.Context, u domain.User)
internal/repository/user.go:19
↓ 1 callers
Method
CreateUser
(ctx context.Context, u User)
internal/repository/dao/user.go:26
↓ 1 callers
Method
CreateUserIndex
CreateUserIndex 创建用户索引
internal/repository/dao/search.go:195
↓ 1 callers
Method
DecrCollectionItem
(ctx context.Context, postId uint, uid int64)
internal/repository/interactive.go:20
↓ 1 callers
Method
Delete
(ctx context.Context, postId uint, uid int64)
internal/repository/post.go:30
↓ 1 callers
Method
DeleteAllHistory
(ctx context.Context, uid int64)
internal/repository/history.go:15
↓ 1 callers
Method
DeleteApi
(ctx context.Context, id int)
internal/repository/api.go:15
↓ 1 callers
Method
DeleteCollectionBiz
(ctx context.Context, cb UserCollectionBiz)
internal/repository/dao/interactive.go:33
↓ 1 callers
Method
DeleteCommentById
(ctx context.Context, commentId int64)
internal/repository/dao/comment.go:41
↓ 1 callers
Method
DeleteCommentIndex
删除文章索引
internal/repository/search.go:30
↓ 1 callers
Method
DeleteCommentIndex
(ctx context.Context, commentId uint)
internal/repository/dao/search.go:52
↓ 1 callers
Method
DeleteLikeInfo
(ctx context.Context, lb UserLikeBiz)
internal/repository/dao/interactive.go:31
↓ 1 callers
Method
DeleteMenu
(ctx context.Context, id int)
internal/repository/menu.go:15
↓ 1 callers
Method
DeleteOneCache
(ctx context.Context, postId uint, uid int64)
internal/repository/cache/history.go:29
↓ 1 callers
Method
DeletePlate
(ctx context.Context, plateId int64, uid int64)
internal/repository/plate.go:15
↓ 1 callers
Method
DeletePostIndex
删除用户索引
internal/repository/search.go:29
↓ 1 callers
Method
DeletePostIndex
(ctx context.Context, postId uint)
internal/repository/dao/search.go:51
↓ 1 callers
Method
DeleteRole
(ctx context.Context, id int)
internal/repository/role.go:15
↓ 1 callers
Method
DeleteUser
(ctx context.Context, username string, uid int64)
internal/repository/user.go:24
↓ 1 callers
Method
DeleteUserIndex
处理输入文章
internal/repository/search.go:28
← previous
next →
201–300 of 1,482, ranked by callers