MCPcopy Create free account

hub / github.com/Away0x/gin_bbs / functions

Functions1,103 in github.com/Away0x/gin_bbs

↓ 1 callersFunctionEncrypt
Encrypt 密码加密
pkg/ginutils/utils/crypt.go:8
↓ 1 callersFunctionForget
Forget 使 token 失效
app/auth/token/token.go:46
↓ 1 callersFunctionG
(a)
public/js/jquery.min.js:2
↓ 1 callersFunctionG
(a)
resources/editor/js/jquery.min.js:2
↓ 1 callersFunctionGa
(a,b,c)
public/js/jquery.min.js:3
↓ 1 callersFunctionGa
(a,b,c)
resources/editor/js/jquery.min.js:3
↓ 1 callersFunctionGet
Get -
app/models/reply/get.go:10
↓ 1 callersFunctionGet
Get -
app/models/category/get.go:8
↓ 1 callersFunctionGetAccessToken
GetAccessToken 获取微信 access_token
pkg/ginutils/socials/weixin/weixin.go:39
↓ 1 callersFunctionGetByEmail
GetByEmail -
app/models/password_reset/get.go:8
↓ 1 callersFunctionGetInt64
GetInt64 -
app/cache/cache.go:62
↓ 1 callersFunctionGetPageLine
GetPageLine
pkg/ginutils/pagination/query.go:42
↓ 1 callersFunctionGetPermissionByName
GetPermissionByName -
app/models/permission/permission.go:49
↓ 1 callersFunctionGetRoleByName
GetRoleByName -
app/models/permission/roles.go:42
↓ 1 callersFunctionGetSession
GetSession : 获取 session
pkg/ginutils/session/session.go:16
↓ 1 callersFunctionGetTokenFromRequest
GetTokenFromRequest 从请求中获取 token
app/auth/token/user.go:18
↓ 1 callersFunctionGetTokenUserFromContext
GetTokenUserFromContext -
app/auth/token/user.go:47
↓ 1 callersFunctionGetUserFromContextOrDataBase
GetUserFromContextOrDataBase : 从 context 或者从数据库中获取用户模型
app/auth/user.go:40
↓ 1 callersFunctionGetUserFromParamIDOrContext
GetUserFromParamIDOrContext : params 中存在 id 参数时,可用该方法去获取 user model
app/auth/user.go:59
↓ 1 callersFunctionGetUserPermissionCache
GetUserPermissionCache -
app/models/permission/cache.go:19
↓ 1 callersFunctionImage
Image -
app/viewmodels/image.go:9
↓ 1 callersFunctionInStringSlice
InStringSlice 是否存在于 slice 中
pkg/ginutils/utils/slice.go:19
↓ 1 callersFunctionInitDB
InitDB 初始化数据库
database/database.go:22
↓ 1 callersFunctionInitGinUtils
InitGinUtils 初始化 ginutils 的配置
pkg/ginutils/ginutils.go:21
↓ 1 callersFunctionIsExist
IsExist 判断所给路径文件/文件夹是否存在
pkg/ginutils/file/file.go:13
↓ 1 callersMethodIsStrict
IsStrict : 严格模式时,第一个验证出错时,即会停止其他验证
pkg/ginutils/validate/validate.go:18
↓ 1 callersFunctionLastMiddleware
LastMiddleware 记录上一次访问的请求信息
pkg/ginutils/last/middleware.go:10
↓ 1 callersFunctionLeftPad
LeftPad - LeftPad("a", 4, '0) => 000a
pkg/ginutils/utils/leftpad.go:9
↓ 1 callersFunctionLinkAPI
LinkAPI -
app/viewmodels/link.go:8
↓ 1 callersFunctionLinkAPIList
LinkAPIList -
app/viewmodels/link.go:17
↓ 1 callersFunctionLinksTableSeeder
LinksTableSeeder -
database/factory/link.go:18
↓ 1 callersFunctionLogout
Logout 登出
app/auth/session.go:29
↓ 1 callersFunctionMiddleware
Middleware : csrf middleware errorFn: csrf 验证不通过时执行的 handler
pkg/ginutils/csrf/middleware.go:12
↓ 1 callersFunctionMock
Mock -
database/factory/factory.go:14
↓ 1 callersFunctionName
Name : 注册路由 动态参数目前只支持 :xx 形式
pkg/ginutils/router/named.go:23
↓ 1 callersFunctionNew
New creates a new Pongo2Render instance with custom Options.
pkg/ginutils/pongo2/pongo2gin.go:31
↓ 1 callersFunctionNew
New -
app/cron/cron.go:19
↓ 1 callersFunctionNewInfoFlash
NewInfoFlash : 新建一条 info flash,并保存
pkg/ginutils/flash/flash.go:104
↓ 1 callersFunctionNewReplyViewModelSerializer
NewReplyViewModelSerializer -
app/viewmodels/reply.go:10
↓ 1 callersFunctionNewUserAPIHasRoles
NewUserAPIHasRoles -
app/viewmodels/user.go:71
↓ 1 callersFunctionNotify
Notify -
app/models/notification/effect.go:15
↓ 1 callersFunctionOldValueMiddleware
OldValue 存储表单提交时数据的中间件
pkg/ginutils/oldvalue/oldvalue.go:10
↓ 1 callersFunctionParseAndGetUser
ParseAndGetUser 解析 token 获取 user
app/auth/token/user.go:30
↓ 1 callersFunctionParseEasyTemplate
ParseEasyTemplate : 简单易用的解析模板方法
pkg/ginutils/utils/string.go:6
↓ 1 callersFunctionPermissionAPI
PermissionAPI -
app/viewmodels/permission.go:8
↓ 1 callersFunctionPermissionAPIList
PermissionAPIList -
app/viewmodels/permission.go:16
↓ 1 callersFunctionPermissionTableSeeder
PermissionTableSeeder -
database/factory/permission.go:8
↓ 1 callersFunctionPhoneUniqueValidator
PhoneUniqueValidator 手机号唯一
app/requests/validators.go:32
↓ 1 callersFunctionPrintRoutes
PrintRoutes 打印 route
pkg/ginutils/router/named.go:116
↓ 1 callersFunctionPublicPath
PublicPath 相对于项目 public 静态文件目录的地址
pkg/ginutils/file/path.go:8
↓ 1 callersFunctionPutInt64
PutInt64 -
app/cache/cache.go:34
↓ 1 callersFunctionRead
(c *gin.Context)
pkg/ginutils/last/last.go:20
↓ 1 callersFunctionRead
Read 从 request 中的 cookie 里解析出 flash 数据
pkg/ginutils/flash/flash.go:92
↓ 1 callersFunctionReadOldFormValue
ReadOldFormValue : 读取上次表单 post 的数据
pkg/ginutils/oldvalue/flash.go:22
↓ 1 callersFunctionReadValidateMessage
ReadValidateMessage 读取参数验证的错误信息
pkg/ginutils/validate/flash.go:26
↓ 1 callersFunctionReadValidateMessageArr
ReadValidateMessageArr 读取参数验证的错误信息
pkg/ginutils/validate/flash.go:42
↓ 1 callersFunctionReadValidateMessageMap
ReadValidateMessageMap 读取参数验证的错误信息
pkg/ginutils/validate/flash.go:63
↓ 1 callersFunctionRefresh
Refresh 刷新 token
app/auth/token/token.go:32
↓ 1 callersFunctionRegister
Register 注册路由和中间件
routes/routes.go:36
↓ 1 callersMethodRegisterMessages
RegisterMessages : 注册错误信息 map
pkg/ginutils/validate/validate.go:22
↓ 1 callersMethodRegisterValidators
RegisterValidators : 注册验证器 map
pkg/ginutils/validate/validate.go:20
↓ 1 callersFunctionRenderTooManyRequests
RenderTooManyRequests -
app/controllers/render.go:102
↓ 1 callersFunctionRenderUnauthorized
RenderUnauthorized -
app/controllers/render.go:97
↓ 1 callersFunctionReplyTableSeeder
ReplyTableSeeder -
database/factory/reply.go:29
↓ 1 callersFunctionRoleAPI
RoleAPI -
app/viewmodels/permission.go:26
↓ 1 callersFunctionRoleAPIList
RoleAPIList -
app/viewmodels/permission.go:34
↓ 1 callersMethodRun
Run -
app/requests/api/image/image.go:58
↓ 1 callersMethodRun
Run -
app/requests/api/verification_code/verification_code.go:30
↓ 1 callersMethodRun
Run -
app/requests/api/user/edit.go:79
↓ 1 callersMethodRun
Run -
app/requests/api/authorization/social.go:81
↓ 1 callersMethodRun
Run -
app/requests/api/authorization/login.go:63
↓ 1 callersMethodRun
Run -
app/requests/api/topic/store.go:45
↓ 1 callersMethodRun
Run -
app/requests/api/topic/update.go:27
↓ 1 callersFunctionRunPhoneValidate
RunPhoneValidate 验证手机
app/requests/validate.go:12
↓ 1 callersFunctionSaveCurrentUserToContext
SaveCurrentUserToContext : 保存用户数据到 context 中
app/auth/user.go:13
↓ 1 callersFunctionSaveOldFormValue
SaveOldFormValue : 存储上次表单 post 的数据
pkg/ginutils/oldvalue/flash.go:15
↓ 1 callersFunctionSaveValidateMessageArr
SaveValidateMessageArr 存储参数验证的错误信息
pkg/ginutils/validate/flash.go:33
↓ 1 callersFunctionSaveValidateMessageMap
SaveValidateMessageMap 存储参数验证的错误信息
pkg/ginutils/validate/flash.go:53
↓ 1 callersFunctionScan
Scan returns the number of bytes scanned and if there was any error in trying to reach the end of data
pkg/mimetype/internal/json/json.go:73
↓ 1 callersMethodSend
Send 发送邮件
pkg/ginutils/mail/mail.go:35
↓ 1 callersFunctionSendResetPasswordEmail
SendResetPasswordEmail 发送重置密码邮件
app/helpers/mail.go:50
↓ 1 callersFunctionSendSms
SendSms 发送短信
app/helpers/sms.go:11
↓ 1 callersFunctionServe
(w http.ResponseWriter, r *http.Request, id, ext, lang string, download bool, width, height int)
pkg/ginutils/captcha/server.go:13
↓ 1 callersFunctionServeHTTP
(w http.ResponseWriter, r *http.Request)
pkg/ginutils/captcha/server.go:37
↓ 1 callersFunctionSessionMiddleware
SessionMiddleware -
pkg/ginutils/session/middleware.go:14
↓ 1 callersMethodSetExpiredAt
SetExpiredAt 设置 user data
app/auth/token/jwt.go:37
↓ 1 callersFunctionSetSession
SetSession : 设置 session
pkg/ginutils/session/session.go:9
↓ 1 callersMethodSetUser
SetUser 设置 token 有效期
app/auth/token/jwt.go:32
↓ 1 callersFunctionSetupGin
SetupGin gin setup
bootstrap/gin.go:13
↓ 1 callersFunctionSetupRouter
(g *gin.Engine)
bootstrap/router.go:11
↓ 1 callersFunctionSlugTranslate
SlugTranslate 百度翻译 slug
app/helpers/translate.go:19
↓ 1 callersFunctionStringRangeValidator
StringRangeValidator value 是否存在于指定的 range 范围内
pkg/ginutils/validate/validators.go:146
↓ 1 callersMethodSuccess
Success flash
pkg/ginutils/flash/flash.go:51
↓ 1 callersFunctionSyncUserActivedAtToDatabase
SyncUserActivedAtToDatabase 同步用户最后登录时间到数据库
app/helpers/last_actived.go:25
↓ 1 callersFunctionTopicTableSeeder
TopicTableSeeder -
database/factory/topic.go:35
↓ 1 callersFunctionUa
(a,b,c)
public/js/jquery.min.js:3
↓ 1 callersFunctionUa
(a,b,c)
resources/editor/js/jquery.min.js:3
↓ 1 callersFunctionUintRangeValidator
UintRangeValidator value 是否存在于指定的 range 范围内
pkg/ginutils/validate/validators.go:133
↓ 1 callersMethodUpdate
Update -
app/models/reply/effect.go:21
↓ 1 callersFunctionUserFromToken
UserFromToken 获取微信用户信息
pkg/ginutils/socials/weixin/weixin.go:62
← previousnext →401–500 of 1,103, ranked by callers