
/**
 * menu config
 */

module.exports = [

  {
    name: '作品管理',
    icon: 'fas fa-images',
    children: [
      { name: '我的作品', url: '/pages/my', permission: { resource: 'art', action: 'read:own' } },
      { name: '所有作品', url: '/pages/all', permission: { resource: 'art', action: 'read:any' } },
      { name: '专辑管理', url: '/coloring/album', permission: { resource: 'art-album', action: 'read:any' } },
      { name: '回收站', url: '/pages/dropped', permission: { resource: 'art', action: 'read:own' } },
      { name: '定时发布', url: '/pages/publish-schedules', permission: { resource: 'art-publish', action: 'read:any' } },
    ]
  },

  {
    name: '系统管理',
    icon: 'fas fa-users',
    url: '/system',
    children: [
      { name: '用户管理', url: '/system/users', permission: { resource: 'user', action: 'read:own' } },
      { url: '/system/roles', name: '角色管理', permission: { resource: 'role', action: 'read:own' } },
    ],
  },

];
