snapshot: AlertCenter拆分前快照
This commit is contained in:
1 parent
6a40956afa
commit
805cb767a8
23 files changed
+1560
-404
No files matched your search
@@ -341,7 +341,7 @@ func (h *UserHandler) BatchImportUsers(c *gin.Context) {
|
||||
// ListRoles 获取角色列表(供前端下拉选择) // Logan.Li
|
||||
func (h *UserHandler) ListRoles(c *gin.Context) {
|
||||
var roles []models.Role
|
||||
h.db.Where("status = ?", 1).Order("id ASC").Find(&roles)
|
||||
h.db.Where("status = ?", 1).Preload("Permissions").Order("id ASC").Find(&roles)
|
||||
c.JSON(http.StatusOK, models.Response{
|
||||
Code: 200, Data: models.ListResponse{List: roles, Total: int64(len(roles))},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user