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.

17 lines
269 B

package manage_user
import (
"github.com/gin-gonic/gin"
"recook/internal/back"
"recook/internal/dbc"
"recook/internal/model/manage"
)
func RoleList(c *gin.Context) {
var l []manage.Role
dbc.DB.Order("id asc").Find(&l)
back.Suc(c, "操作成功", l)
return
}