feat:完善项目信息

This commit is contained in:
henry
2022-01-06 22:02:09 +08:00
parent a92801b1ce
commit 657fdc5750
31 changed files with 177 additions and 612 deletions

View File

@ -169,8 +169,6 @@ func registerAdminAPI(app *gin.Engine) {
user.POST("/delete", _api.Delete)
user.POST("/password", _api.Password)
user.POST("/password/edit", _api.PasswordEdit)
user.POST("/role", _api.Role)
user.POST("/role/bind", _api.RoleBind)
}
// Tenant 租户管理
tenant := v1.Group("/tenant")
@ -205,13 +203,13 @@ func registerAdminAPI(app *gin.Engine) {
auth := v1.Group("/auth")
{
_api := new(api1.Auth)
auth.POST("/list", _api.List)
auth.GET("", _api.Index)
}
// Department 部门管理
department := v1.Group("/department")
{
_api := new(api1.Department)
department.GET("/", _api.Index)
department.GET("", _api.Index)
department.GET("/select", _api.Select)
department.POST("/add", _api.Add)
department.POST("/edit", _api.Edit)
@ -221,7 +219,7 @@ func registerAdminAPI(app *gin.Engine) {
role := v1.Group("/role")
{
_api := new(api1.Role)
role.POST("/", _api.Index)
role.POST("", _api.Index)
role.POST("/select", _api.Select)
role.POST("/add", _api.Add)
role.POST("/edit", _api.Edit)