15 lines
332 B
TypeScript
15 lines
332 B
TypeScript
import type { SSHData } from '@/components/SecretKeyItem/types';
|
|
|
|
export class SSHKey implements SSHData {
|
|
email: string;
|
|
key: string;
|
|
createdTime: string;
|
|
expireTime: string;
|
|
hasBeenUsed: boolean;
|
|
authority: string;
|
|
id: number | string;
|
|
constructor(originData: SSHData) {
|
|
Object.assign(this, originData);
|
|
}
|
|
}
|