committed by
GitHub
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 { |
export interface OrganizationUnit extends AuditedEntityDto<string> { |
||||
/** 标识 */ |
|
||||
id!: string; |
|
||||
/** 父节点标识 */ |
/** 父节点标识 */ |
||||
parentId?: 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; |
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'; |
import { IdentityClaim } from './claimModel'; |
||||
|
|
||||
export class RoleBase { |
export interface RoleBase { |
||||
name!: string; |
name: string; |
||||
isDefault!: boolean; |
isDefault: boolean; |
||||
isPublic!: boolean; |
isPublic: boolean; |
||||
} |
} |
||||
|
|
||||
export class Role extends RoleBase { |
export interface Role extends RoleBase { |
||||
id!: string; |
id: string; |
||||
isStatic!: boolean; |
isStatic: boolean; |
||||
concurrencyStamp?: string; |
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 { |
export interface GetRolePagedRequest extends PagedAndSortedResultRequestDto { |
||||
filter = ''; |
filter?: string; |
||||
} |
} |
||||
|
|
||||
export class CreateRole extends RoleBase { |
export interface CreateRole extends RoleBase { |
||||
isDefault = false; |
|
||||
isPublic = true; |
|
||||
name = ''; |
|
||||
} |
} |
||||
|
|
||||
export class UpdateRole extends RoleBase { |
export interface UpdateRole extends RoleBase { |
||||
concurrencyStamp?: string; |
concurrencyStamp?: string; |
||||
} |
} |
||||
|
|
||||
export class ChangeRoleOrganizationUnitDto { |
export interface ChangeRoleOrganizationUnitDto { |
||||
organizationUnitIds: string[] = []; |
organizationUnitIds: string[]; |
||||
} |
} |
||||
|
|
||||
export class RoleClaim extends IdentityClaim { |
export interface RoleClaim extends IdentityClaim { |
||||
id!: string; |
id: string; |
||||
} |
} |
||||
|
|
||||
export class RoleClaimListResult extends ListResultDto<RoleClaim> {} |
export interface RoleClaimListResult extends ListResultDto<RoleClaim> {} |
||||
|
|||||
Loading…
Reference in new issue