You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
|
4 years ago
|
package system
|
||
|
|
|
||
|
|
import (
|
||
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
type AdminUserApi struct{}
|
||
|
|
|
||
|
|
func (a *AdminUserApi) InitSystemAdminRouter(Router *gin.RouterGroup) {
|
||
|
|
adminRouter := Router.Group("systemadmin")
|
||
|
|
var authorityApi = v1.ApiGroupApp.SystemApi.SystemUserApi
|
||
|
|
{
|
||
|
|
adminRouter.POST("", authorityApi.Index) //系统管理员档案入口
|
||
|
|
adminRouter.POST("/", authorityApi.Index) //系统管理员档案入口
|
||
|
|
adminRouter.GET("", authorityApi.Index) //系统管理员档案入口
|
||
|
|
adminRouter.GET("/", authorityApi.Index) //系统管理员档案入口
|
||
|
|
|
||
|
|
adminRouter.POST("/adminlist", authorityApi.AdminList) //系统管理员列表
|
||
|
|
}
|
||
|
|
//角色相关
|
||
|
|
roleRouter := Router.Group("systemrole")
|
||
|
|
var roleApi = v1.ApiGroupApp.SystemApi.SystemRoleApi
|
||
|
|
{
|
||
|
|
roleRouter.POST("/systemrolelist", roleApi.SystemRoleList) //系统管理员角色列表
|
||
|
|
}
|
||
|
|
//菜单相关
|
||
|
|
muneRouter := Router.Group("systemmenu")
|
||
|
|
var systemMuneApi = v1.ApiGroupApp.SystemApi.SysTemMenuApi
|
||
|
|
{
|
||
|
|
muneRouter.POST("/systemmenulist", systemMuneApi.SystemMenuList) //系统菜单列表
|
||
|
|
|
||
|
|
muneRouter.POST("/getmenu", systemMuneApi.GetMenu) //获取系统做出菜单
|
||
|
|
}
|
||
|
|
}
|