api store and viewmodels
This commit is contained in:
parent
131b3747de
commit
ee42625d66
2 changed files with 83 additions and 0 deletions
26
src/viewmodels/admin/user/api.models.ts
Normal file
26
src/viewmodels/admin/user/api.models.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
import type { PermissionObject } from "@/types/permissionTypes";
|
||||
|
||||
export interface ApiViewModel {
|
||||
id: number;
|
||||
permissions: PermissionObject;
|
||||
title: string;
|
||||
createdAt: Date;
|
||||
lastUsage?: Date;
|
||||
expiry?: Date;
|
||||
}
|
||||
|
||||
export interface CreateApiViewModel {
|
||||
title: string;
|
||||
token: string;
|
||||
expiry?: Date;
|
||||
}
|
||||
|
||||
export interface UpdateApiViewModel {
|
||||
id: number;
|
||||
title: string;
|
||||
expiry?: Date;
|
||||
}
|
||||
|
||||
export interface DeleteApiViewModel {
|
||||
id: number;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue