Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anerg2046/go-admin-server
/ functions
Functions
98 in github.com/anerg2046/go-admin-server
⨍
Functions
98
◇
Types & classes
52
↓ 28 callers
Function
NewError
(code int, msg string)
app/code/error.go:15
↓ 11 callers
Function
bindParams
(c *gin.Context, params T)
app/http/binding/common.go:96
↓ 4 callers
Method
ID
()
app/http/binding/common.go:37
↓ 3 callers
Method
Edit
(params model.Menu)
app/http/repo/Menu.go:55
↓ 2 callers
Method
Assign
角色指派权限
app/http/repo/Role.go:77
↓ 2 callers
Function
MenuListToTree
菜单列表转树状结构
app/http/repo/Menu.go:36
↓ 2 callers
Function
NewGinEngine
()
app/server/gin.go:9
↓ 2 callers
Method
Start
()
app/server/apiServer.go:18
↓ 2 callers
Method
genJwtToken
生成jwt token即AccessToken
app/http/repo/Auth.go:72
↓ 1 callers
Method
Keyword
()
app/http/binding/common.go:83
↓ 1 callers
Method
Login
(params binding.UserLoginParams)
app/http/repo/Auth.go:25
↓ 1 callers
Function
NewApiServer
(engine *gin.Engine)
app/server/apiServer.go:23
↓ 1 callers
Function
NewWebServer
(engine *gin.Engine)
app/server/webServer.go:22
↓ 1 callers
Method
Pager
()
app/http/binding/common.go:64
↓ 1 callers
Function
Paginate
(params binding.Pager)
model/scope/common.go:9
↓ 1 callers
Method
RefreshToken
(params binding.RefreshTokenParams)
app/http/repo/Auth.go:49
↓ 1 callers
Function
RegisterApiRouter
(r *gin.Engine)
router/api.go:14
↓ 1 callers
Function
RegisterWebRouter
(r *gin.Engine)
router/web.go:11
↓ 1 callers
Method
VerifyTurnstile
()
app/http/binding/User.go:37
↓ 1 callers
Function
app
(conn *gorm.DB)
cmd/migrator/main.go:27
↓ 1 callers
Function
assetReader
从embed读取静态资源
cmd/web/main.go:42
↓ 1 callers
Function
defaultMenu
(conn *gorm.DB)
cmd/migrator/main.go:36
↓ 1 callers
Function
defaultRole
(conn *gorm.DB)
cmd/migrator/main.go:124
↓ 1 callers
Function
defaultUser
(conn *gorm.DB)
cmd/migrator/main.go:146
↓ 1 callers
Method
genRefreshToken
生成随机数token即RefreshToken
app/http/repo/Auth.go:90
↓ 1 callers
Method
getAllChildrenID
(menu model.Menu)
app/http/repo/Menu.go:103
↓ 1 callers
Function
getTimezone
()
config/app.go:35
↓ 1 callers
Function
parseAssetTemplates
从embed读取模板文件
cmd/web/main.go:58
↓ 1 callers
Function
routerNoneAuth
无需身份认证的接口
router/api.go:43
↓ 1 callers
Function
routerSystemSetting
系统管理路由
router/api.go:51
↓ 1 callers
Function
templateFuncs
模板公共方法
cmd/web/main.go:37
Method
AfterFind
(tx *gorm.DB)
model/User.go:19
Method
AfterFind
(tx *gorm.DB)
model/User.go:29
Method
AfterFind
(tx *gorm.DB)
model/Menu.go:26
Method
Assign
角色指派权限
app/http/controller/api/Role.go:42
Method
Assign
用户分配角色
app/http/controller/api/Users.go:38
Method
Assign
()
app/http/binding/Role.go:31
Method
Assign
()
app/http/binding/Users.go:31
Method
Assign
(params binding.UserAssign)
app/http/repo/Users.go:98
Method
BeforeDelete
(tx *gorm.DB)
model/User.go:41
Method
BeforeDelete
(tx *gorm.DB)
model/Menu.go:32
Method
BeforeDelete
(tx *gorm.DB)
model/Role.go:19
Method
BeforeUpdate
(tx *gorm.DB)
model/User.go:34
Method
BeforeUpdate
(tx *gorm.DB)
model/Menu.go:39
Method
Del
删除菜单
app/http/controller/api/Menu.go:36
Method
Del
删除角色
app/http/controller/api/Role.go:30
Method
Del
删除用户
app/http/controller/api/Users.go:32
Method
Del
(id uint)
app/http/repo/Menu.go:87
Method
Del
(id uint)
app/http/repo/Role.go:46
Method
Del
(id uint)
app/http/repo/Users.go:86
Method
Edit
添加/编辑菜单
app/http/controller/api/Menu.go:30
Method
Edit
添加/编辑角色
app/http/controller/api/Role.go:24
Method
Edit
添加/编辑用户
app/http/controller/api/Users.go:26
Method
Edit
()
app/http/binding/Menu.go:13
Method
Edit
()
app/http/binding/Role.go:13
Method
Edit
()
app/http/binding/Users.go:13
Method
Edit
(params model.Role)
app/http/repo/Role.go:24
Method
Edit
(params model.User)
app/http/repo/Users.go:42
Method
ErrCode
()
app/code/error.go:6
Method
ErrCode
()
app/code/error.go:24
Method
ErrMsg
()
app/code/error.go:7
Method
ErrMsg
()
app/code/error.go:27
Function
ExpandChildren
展开所有的子集
model/scope/common.go:17
Method
Genre
()
app/http/binding/common.go:51
Function
InitMultiDatabase
()
boot/db/database.go:39
Method
Ip
(c *gin.Context)
app/http/controller/api/TestController.go:13
Method
Ip
(c *gin.Context)
app/http/controller/web/TestController.go:11
Method
List
** 管理相关接口 */ 所有菜单
app/http/controller/api/Menu.go:25
Method
List
** 管理相关接口 */ 所有角色
app/http/controller/api/Role.go:19
Method
List
** 管理相关接口 */ 所有用户
app/http/controller/api/Users.go:19
Method
List
所有菜单列表
app/http/repo/Menu.go:48
Method
List
()
app/http/repo/Role.go:19
Method
List
(keyword binding.Keyword, pager binding.Pager)
app/http/repo/Users.go:24
Method
Login
(c *gin.Context)
app/http/controller/api/Auth.go:15
Method
Login
()
app/http/binding/User.go:23
Method
Permission
角色权限
app/http/controller/api/Role.go:36
Method
Permission
获取角色的权限
app/http/repo/Role.go:59
Method
RefreshToken
(c *gin.Context)
app/http/controller/api/Auth.go:20
Method
RefreshToken
()
app/http/binding/User.go:61
Method
Router
(c *gin.Context)
app/http/controller/api/Menu.go:17
Method
Router
用户可显示的菜单
app/http/repo/Menu.go:22
Method
Scan
(value any)
model/common.go:18
Method
Scan
(value any)
model/Menu.go:72
Method
Scan
(value any)
model/Menu.go:84
Method
Start
()
app/server/webServer.go:17
Method
Value
()
model/common.go:14
Method
Value
()
model/Menu.go:68
Method
Value
()
model/Menu.go:80
Function
addGinIndex
postgres 添加json数据的gin索引
boot/db/database.go:33
Function
help
()
asset/public/static/js/app.js:1
Method
i
i 为了避免被其他包实现
app/code/error.go:5
Method
i
()
app/code/error.go:22
Function
init
()
boot/db/database.go:14
Function
init
()
config/app.go:27
Function
main
()
cmd/test/main.go:9
Function
main
()
cmd/migrator/main.go:19
Function
main
()
cmd/api/main.go:12
Function
main
()
cmd/web/main.go:20