const BASE_URL = '/carbon-smart';
export enum permission {
  add = `${BASE_URL}/admin/permission/save`,
  permissionTree = `${BASE_URL}/api/dept/QueryOrgPermission`,
}

export enum origanizemanage {
  userList = '/carbon-smart/api/user/queryUserByPage',
  addUser = '/carbon-smart/api/user/save',
  editUser = '/carbon-smart/api/user/edit',
  frozen = '/carbon-smart/api/user/frozen',
  resetPwd = '/carbon-smart/api/user/resetPwd',
  del = '/carbon-smart/api/user/del',
  batchDel = '/carbon-smart/api/user/batchDel',
  queryOrgTree = '/carbon-smart/api/user/queryOrgTree',
  queryDeptTree = '/carbon-smart/api/user/queryDeptTree',
  queryUserPerList = '/carbon-smart/api/user/queryUserPerList',
}

export enum department {
  dartList = `${BASE_URL}/api/user/queryDeptTree`,
  deptSave = `${BASE_URL}/api/dept/save`,
  deptEdit = `${BASE_URL}/api/dept/edit`,
  deptDel = `${BASE_URL}/api/dept/del`,
  addPermission = `${BASE_URL}/api/dept/addPermission`,
  addRolePermission = `${BASE_URL}/api/dept/addRolePermission`,
  delRole = `${BASE_URL}/api/dept/delRole`,
  addRole = `${BASE_URL}/api/dept/addRole`,
  editRole = `${BASE_URL}/api/dept/editRole`,
  queryRoleTree = `${BASE_URL}/api/dept/queryRoleTree`,

  queryDeptPermission = `${BASE_URL}/api/dept/queryDeptPermission`,
  queryRolePermission = `${BASE_URL}/api/dept/queryRolePermission`,
}
