mirror of https://github.com/abpframework/abp.git
7 changed files with 78 additions and 84 deletions
@ -1,57 +1,57 @@ |
|||||
import { Identity } from '../models/identity'; |
import { Identity } from '../models/identity'; |
||||
import { ABP } from '@abp/ng.core'; |
import { ABP } from '@abp/ng.core'; |
||||
|
|
||||
export class IdentityGetRoles { |
export class GetRoles { |
||||
static readonly type = '[Identity] Get Roles'; |
static readonly type = '[Identity] Get Roles'; |
||||
constructor(public payload?: ABP.PageQueryParams) {} |
constructor(public payload?: ABP.PageQueryParams) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityGetRoleById { |
export class GetRoleById { |
||||
static readonly type = '[Identity] Get Role By Id'; |
static readonly type = '[Identity] Get Role By Id'; |
||||
constructor(public payload: string) {} |
constructor(public payload: string) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityDeleteRole { |
export class DeleteRole { |
||||
static readonly type = '[Identity] Delete Role'; |
static readonly type = '[Identity] Delete Role'; |
||||
constructor(public payload: string) {} |
constructor(public payload: string) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityAddRole { |
export class CreateRole { |
||||
static readonly type = '[Identity] Add Role'; |
static readonly type = '[Identity] Create Role'; |
||||
constructor(public payload: Identity.RoleSaveRequest) {} |
constructor(public payload: Identity.RoleSaveRequest) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityUpdateRole { |
export class UpdateRole { |
||||
static readonly type = '[Identity] Update Role'; |
static readonly type = '[Identity] Update Role'; |
||||
constructor(public payload: Identity.RoleItem) {} |
constructor(public payload: Identity.RoleItem) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityGetUsers { |
export class GetUsers { |
||||
static readonly type = '[Identity] Get Users'; |
static readonly type = '[Identity] Get Users'; |
||||
constructor(public payload?: ABP.PageQueryParams) {} |
constructor(public payload?: ABP.PageQueryParams) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityGetUserById { |
export class GetUserById { |
||||
static readonly type = '[Identity] Get User By Id'; |
static readonly type = '[Identity] Get User By Id'; |
||||
constructor(public payload: string) {} |
constructor(public payload: string) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityDeleteUser { |
export class DeleteUser { |
||||
static readonly type = '[Identity] Delete User'; |
static readonly type = '[Identity] Delete User'; |
||||
constructor(public payload: string) {} |
constructor(public payload: string) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityAddUser { |
export class CreateUser { |
||||
static readonly type = '[Identity] Add User'; |
static readonly type = '[Identity] Create User'; |
||||
constructor(public payload: Identity.UserSaveRequest) {} |
constructor(public payload: Identity.UserSaveRequest) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityUpdateUser { |
export class UpdateUser { |
||||
static readonly type = '[Identity] Update User'; |
static readonly type = '[Identity] Update User'; |
||||
constructor(public payload: Identity.UserSaveRequest & { id: string }) {} |
constructor(public payload: Identity.UserSaveRequest & { id: string }) {} |
||||
} |
} |
||||
|
|
||||
export class IdentityGetUserRoles { |
export class GetUserRoles { |
||||
static readonly type = '[Identity] Get User Roles'; |
static readonly type = '[Identity] Get User Roles'; |
||||
constructor(public payload: string) {} |
constructor(public payload: string) {} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue