52 changed files with 315 additions and 580 deletions
@ -1,56 +1,47 @@ |
|||
import { |
|||
AuditedEntityDto, |
|||
PagedAndSortedResultRequestDto, |
|||
ListResultDto, |
|||
PagedResultDto, |
|||
} from '../../model/baseModel'; |
|||
|
|||
/** 组织机构 */ |
|||
export class OrganizationUnit extends AuditedEntityDto { |
|||
/** 标识 */ |
|||
id!: string; |
|||
export interface OrganizationUnit extends AuditedEntityDto<string> { |
|||
/** 父节点标识 */ |
|||
parentId?: string; |
|||
/** 编号 */ |
|||
code!: string; |
|||
code: string; |
|||
/** 显示名称 */ |
|||
displayName!: string; |
|||
displayName: string; |
|||
} |
|||
|
|||
/** 组织机构分页查询对象 */ |
|||
export class GetOrganizationUnitPagedRequest extends PagedAndSortedResultRequestDto { |
|||
export interface GetOrganizationUnitPagedRequest extends PagedAndSortedResultRequestDto { |
|||
/** 过滤字符 */ |
|||
filter!: string; |
|||
filter?: string; |
|||
} |
|||
|
|||
/** 组织结构分页返回结果 */ |
|||
export class OrganizationUnitPagedResult extends PagedResultDto<OrganizationUnit> {} |
|||
export interface OrganizationUnitPagedResult extends PagedResultDto<OrganizationUnit> {} |
|||
|
|||
/** 组织结构列表返回结果 */ |
|||
export class OrganizationUnitListResult extends ListResultDto<OrganizationUnit> {} |
|||
export interface OrganizationUnitListResult extends ListResultDto<OrganizationUnit> {} |
|||
|
|||
/** 组织机构创建对象 */ |
|||
export class CreateOrganizationUnit { |
|||
export interface CreateOrganizationUnit { |
|||
/** 显示名称 */ |
|||
displayName!: string; |
|||
displayName: string; |
|||
/** 父节点标识 */ |
|||
parentId?: string; |
|||
} |
|||
|
|||
/** 组织机构变更对象 */ |
|||
export class UpdateOrganizationUnit { |
|||
export interface UpdateOrganizationUnit { |
|||
/** 显示名称 */ |
|||
displayName!: string; |
|||
displayName: string; |
|||
} |
|||
|
|||
/** 组织机构增加部门对象 */ |
|||
export class OrganizationUnitAddRole { |
|||
export interface OrganizationUnitAddRole { |
|||
/** 角色标识列表 */ |
|||
roleIds: string[] = []; |
|||
roleIds: string[]; |
|||
} |
|||
|
|||
/** 组织机构增加用户对象 */ |
|||
export class OrganizationUnitAddUser { |
|||
export interface OrganizationUnitAddUser { |
|||
/** 用户标识列表 */ |
|||
userIds: string[] = []; |
|||
userIds: string[]; |
|||
} |
|||
|
|||
@ -1,46 +1,38 @@ |
|||
import { |
|||
ListResultDto, |
|||
PagedAndSortedResultRequestDto, |
|||
PagedResultDto, |
|||
} from '../../model/baseModel'; |
|||
import { IdentityClaim } from './claimModel'; |
|||
|
|||
export class RoleBase { |
|||
name!: string; |
|||
isDefault!: boolean; |
|||
isPublic!: boolean; |
|||
export interface RoleBase { |
|||
name: string; |
|||
isDefault: boolean; |
|||
isPublic: boolean; |
|||
} |
|||
|
|||
export class Role extends RoleBase { |
|||
id!: string; |
|||
isStatic!: boolean; |
|||
export interface Role extends RoleBase { |
|||
id: string; |
|||
isStatic: boolean; |
|||
concurrencyStamp?: string; |
|||
} |
|||
|
|||
export class RoleListResult extends ListResultDto<Role> {} |
|||
export interface RoleListResult extends ListResultDto<Role> {} |
|||
|
|||
export class RolePagedResult extends PagedResultDto<Role> {} |
|||
export interface RolePagedResult extends PagedResultDto<Role> {} |
|||
|
|||
export class GetRolePagedRequest extends PagedAndSortedResultRequestDto { |
|||
filter = ''; |
|||
export interface GetRolePagedRequest extends PagedAndSortedResultRequestDto { |
|||
filter?: string; |
|||
} |
|||
|
|||
export class CreateRole extends RoleBase { |
|||
isDefault = false; |
|||
isPublic = true; |
|||
name = ''; |
|||
export interface CreateRole extends RoleBase { |
|||
} |
|||
|
|||
export class UpdateRole extends RoleBase { |
|||
export interface UpdateRole extends RoleBase { |
|||
concurrencyStamp?: string; |
|||
} |
|||
|
|||
export class ChangeRoleOrganizationUnitDto { |
|||
organizationUnitIds: string[] = []; |
|||
export interface ChangeRoleOrganizationUnitDto { |
|||
organizationUnitIds: string[]; |
|||
} |
|||
|
|||
export class RoleClaim extends IdentityClaim { |
|||
id!: string; |
|||
export interface RoleClaim extends IdentityClaim { |
|||
id: string; |
|||
} |
|||
|
|||
export class RoleClaimListResult extends ListResultDto<RoleClaim> {} |
|||
export interface RoleClaimListResult extends ListResultDto<RoleClaim> {} |
|||
|
|||
Loading…
Reference in new issue