MCPcopy Create free account

hub / github.com/GoSimplicity/LinkMe / functions

Functions1,482 in github.com/GoSimplicity/LinkMe

↓ 2 callersFunctionBadRequest
BadRequest 参数错误的返回,使用HTTP 400状态码
pkg/apiresponse/apiresponse.go:160
↓ 2 callersFunctionCacheData
CacheData 序列化数据并存储到 Redis 和布隆过滤器中
pkg/cachep/bloom/cachebloom.go:71
↓ 2 callersMethodCancelFollowUser
(ctx context.Context, followerID, followeeID int64)
internal/service/relation.go:13
↓ 2 callersMethodChangePassword
(ctx context.Context, username string, password string, newPassword string, confirmPassword string)
internal/service/user.go:25
↓ 2 callersMethodCheckCasbin
CheckCasbin 创建一个 Casbin 中间件
middleware/role.go:23
↓ 2 callersMethodClearFollowCache
(ctx context.Context, followerID, followeeID int64)
internal/repository/cache/relation.go:18
↓ 2 callersMethodClearToken
(ctx *gin.Context)
utils/jwt/jwt.go:47
↓ 2 callersMethodCount
(ctx context.Context, number string)
internal/repository/sms.go:29
↓ 2 callersMethodCreateApi
(ctx context.Context, api *domain.Api)
internal/service/api.go:13
↓ 2 callersMethodCreateComment
(ctx context.Context, comment domain.Comment)
internal/service/comment.go:22
↓ 2 callersMethodCreateLotteryDraw
(ctx context.Context, input domain.LotteryDraw)
internal/service/lotteryDraw.go:19
↓ 2 callersMethodCreateMenu
(ctx context.Context, menu *domain.Menu)
internal/service/menu.go:14
↓ 2 callersMethodCreatePlate
(ctx context.Context, plate domain.Plate)
internal/service/plate.go:11
↓ 2 callersMethodCreateRole
(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int)
internal/service/role.go:19
↓ 2 callersMethodCreateSecondKillEvent
(ctx context.Context, input domain.SecondKillEvent)
internal/service/lotteryDraw.go:25
↓ 2 callersMethodDecrLike
(ctx context.Context, postId uint, uid int64)
internal/repository/interactive.go:18
↓ 2 callersMethodDelList
(ctx context.Context, key string)
internal/repository/cache/post.go:21
↓ 2 callersMethodDelPub
(ctx context.Context, key string)
internal/repository/cache/post.go:27
↓ 2 callersMethodDelPubList
(ctx context.Context, key string)
internal/repository/cache/post.go:24
↓ 2 callersMethodDeleteAllHistory
(ctx context.Context, uid int64)
internal/service/history.go:14
↓ 2 callersMethodDeleteApi
(ctx context.Context, id int)
internal/service/api.go:16
↓ 2 callersMethodDeleteComment
(ctx context.Context, commentId int64)
internal/service/comment.go:23
↓ 2 callersMethodDeleteMenu
(ctx context.Context, id int)
internal/service/menu.go:17
↓ 2 callersMethodDeleteOneHistory
(ctx context.Context, postId uint, uid int64)
internal/service/history.go:13
↓ 2 callersMethodDeletePlate
(ctx context.Context, plateId int64, uid int64)
internal/service/plate.go:14
↓ 2 callersMethodDeleteRole
(ctx context.Context, id int)
internal/service/role.go:22
↓ 2 callersMethodDeleteRole
(ctx context.Context, id int)
internal/repository/dao/role.go:34
↓ 2 callersMethodDeleteUser
(ctx context.Context, username string, password string, uid int64)
internal/service/user.go:26
↓ 2 callersMethodDeleteUserIndex
(ctx context.Context, userId int64)
internal/repository/dao/search.go:50
↓ 2 callersMethodDequeue
Dequeue 移除并返回最小元素
pkg/priorityqueue/priority_queue.go:81
↓ 2 callersMethodFindByUsername
(ctx context.Context, username string)
internal/repository/user.go:22
↓ 2 callersMethodFollowCount
(ctx context.Context, userID int64)
internal/repository/dao/relation.go:25
↓ 2 callersMethodFollowUser
(ctx context.Context, followerID, followeeID int64)
internal/service/relation.go:12
↓ 2 callersFunctionFromDomainPost
FromDomainPost 将领域层对象转为dao层对象
pkg/change/change.go:12
↓ 2 callersMethodGenerateCacheKey
(id interface{})
internal/repository/cache/check.go:24
↓ 2 callersMethodGenerateCacheKey
(userID int64, relationType string, pagination domain.Pagination)
internal/repository/cache/relation.go:98
↓ 2 callersMethodGenerateCountCacheKey
()
internal/repository/cache/check.go:26
↓ 2 callersMethodGenerateCountCacheKey
(userID int64, relationType string)
internal/repository/cache/relation.go:104
↓ 2 callersMethodGetCountCache
(ctx context.Context, key string)
internal/repository/cache/check.go:22
↓ 2 callersMethodGetFolloweeCount
(ctx context.Context, UserID int64)
internal/service/relation.go:14
↓ 2 callersMethodGetFollowerCount
(ctx context.Context, UserID int64)
internal/service/relation.go:15
↓ 2 callersMethodGetHistory
(ctx context.Context, pagination domain.Pagination)
internal/service/history.go:12
↓ 2 callersMethodGetMenuTree
(ctx context.Context)
internal/service/menu.go:18
↓ 2 callersMethodGetPost
(ctx context.Context, postId uint)
internal/service/post.go:29
↓ 2 callersMethodGetPostsByPlate
(ctx context.Context, plateId int64, pagination domain.Pagination)
internal/service/post.go:31
↓ 2 callersMethodGetPostsCount
(ctx context.Context)
internal/service/post.go:30
↓ 2 callersMethodGetPublishPostById
(ctx context.Context, postId uint, uid int64)
internal/service/post.go:24
↓ 2 callersMethodGetRecentActivity
(ctx context.Context)
internal/service/activity.go:11
↓ 2 callersMethodGetRole
(ctx context.Context, roleId int)
internal/service/role.go:25
↓ 2 callersMethodGetTopCommentsReply
(ctx context.Context, postId int64)
internal/service/comment.go:26
↓ 2 callersMethodGetTopN
(ctx context.Context)
internal/service/ranking.go:24
↓ 2 callersMethodGetUserRole
(ctx context.Context, userId int)
internal/service/role.go:24
↓ 2 callersMethodGetVCode
(ctx context.Context, smsID, number string)
internal/repository/cache/sms.go:14
↓ 2 callersMethodIncrCnt
(ctx context.Context, number string)
internal/repository/sms.go:30
↓ 2 callersMethodIncrReadCnt
(ctx context.Context, postId uint)
internal/repository/dao/interactive.go:29
↓ 2 callersFunctionInitDB
InitDB 初始化数据库
ioc/db.go:21
↓ 2 callersFunctionInitLogger
()
ioc/logger.go:14
↓ 2 callersFunctionInitRedis
()
ioc/redis.go:10
↓ 2 callersFunctionInitSms
InitSms 初始化腾讯云短信实例
ioc/sms.go:31
↓ 2 callersMethodInputComment
(ctx context.Context, comment CommentSearch)
internal/repository/dao/search.go:46
↓ 2 callersMethodInputPost
(ctx context.Context, post PostSearch)
internal/repository/dao/search.go:45
↓ 2 callersMethodIsEmpty
IsEmpty 检查是否存在空对象标记
internal/repository/cache/post.go:120
↓ 2 callersMethodListApis
(ctx context.Context, page, pageSize int)
internal/service/api.go:17
↓ 2 callersMethodListComments
(ctx context.Context, postId, minID, limit int64)
internal/service/comment.go:24
↓ 2 callersMethodListFolloweeRelations
(ctx context.Context, followeeID int64, pagination domain.Pagination)
internal/service/relation.go:11
↓ 2 callersMethodListFollowerRelations
(ctx context.Context, followerID int64, pagination domain.Pagination)
internal/service/relation.go:10
↓ 2 callersMethodListLotteryDraws
抽奖活动相关方法
internal/service/lotteryDraw.go:18
↓ 2 callersMethodListPlate
(ctx context.Context, pagination domain.Pagination)
internal/service/plate.go:12
↓ 2 callersMethodListPosts
(ctx context.Context, pagination domain.Pagination)
internal/service/post.go:26
↓ 2 callersMethodListRoles
(ctx context.Context, page, pageSize int)
internal/service/role.go:23
↓ 2 callersMethodListSecondKillEvents
秒杀活动相关方法
internal/service/lotteryDraw.go:24
↓ 2 callersMethodListUser
(ctx context.Context, pagination domain.Pagination)
internal/service/user.go:29
↓ 2 callersFunctionNewCasbinMiddleware
(enforcer *casbin.Enforcer)
middleware/role.go:16
↓ 2 callersFunctionNewEsConsumer
NewEsConsumer 创建并返回一个新的EsConsumer实例
internal/domain/events/es/consumer.go:99
↓ 2 callersFunctionNewHandler
NewHandler 创建一个新的 Handler 实例
pkg/samarap/handler.go:16
↓ 2 callersFunctionNewSMSCache
(client redis.Cmdable)
internal/repository/cache/sms.go:27
↓ 2 callersFunctionNewSearchRepository
(dao dao.SearchDAO)
internal/repository/search.go:34
↓ 2 callersFunctionNewSmsDAO
(db *gorm.DB, l *zap.Logger)
internal/repository/dao/sms.go:36
↓ 2 callersFunctionNewSmsRepository
NewSmsRepository 创建并返回一个新的 smsRepository 实例
internal/repository/sms.go:44
↓ 2 callersMethodProduceCheckEvent
(evt CheckEvent)
internal/domain/events/check/producer.go:12
↓ 2 callersMethodProduceCommentEvent
(evt CommentEvent)
internal/domain/events/comment/producer.go:12
↓ 2 callersMethodRemoveRolePermissions
(ctx context.Context, roleId int)
internal/repository/dao/permission.go:20
↓ 2 callersMethodSearchComments
(ctx context.Context, expression string)
internal/service/search.go:18
↓ 2 callersMethodSearchPosts
(ctx context.Context, expression string)
internal/service/search.go:16
↓ 2 callersMethodSearchUsers
(ctx context.Context, expression string)
internal/service/search.go:17
↓ 2 callersMethodSet
Set 缓存数据到本地缓存和 Redis
pkg/cachep/local/local.go:26
↓ 2 callersMethodSetCountCache
(ctx context.Context, key string, count int64, ttl time.Duration)
internal/repository/cache/check.go:23
↓ 2 callersMethodSetEmpty
(ctx context.Context, key string)
internal/repository/cache/post.go:28
↓ 2 callersMethodSetHistory
(ctx context.Context, post domain.Post)
internal/repository/history.go:13
↓ 2 callersMethodSetLoginToken
(ctx *gin.Context, uid int64)
utils/jwt/jwt.go:42
↓ 2 callersMethodSetNX
(ctx context.Context, number string, value interface{}, expiration time.Duration)
internal/repository/sms.go:26
↓ 2 callersMethodStoreVCode
(ctx context.Context, smsID, number string, vCode string)
internal/repository/sms.go:27
↓ 2 callersMethodTrackActiveRequestsMiddleware
TrackActiveRequestsMiddleware 返回一个 Gin 中间件,用于跟踪活跃 HTTP 请求数
pkg/ginp/prometheus/prometheus.go:80
↓ 2 callersMethodTrackResponseTimeMiddleware
TrackResponseTimeMiddleware 返回一个 Gin 中间件,用于跟踪 HTTP 请求的响应时间
pkg/ginp/prometheus/prometheus.go:62
↓ 2 callersMethodUpdateApi
(ctx context.Context, api *domain.Api)
internal/service/api.go:15
↓ 2 callersMethodUpdateMenu
(ctx context.Context, menu *domain.Menu)
internal/service/menu.go:16
↓ 2 callersMethodUpdatePlate
(ctx context.Context, plate domain.Plate)
internal/service/plate.go:13
↓ 2 callersMethodUpdateProfile
(ctx context.Context, profile domain.Profile)
internal/service/user.go:27
↓ 2 callersMethodUpdateProfileAdmin
(ctx context.Context, profile domain.Profile)
internal/service/user.go:30
↓ 2 callersMethodUpdateRole
(ctx context.Context, role *domain.Role)
internal/service/role.go:21
← previousnext →101–200 of 1,482, ranked by callers