24 lines
329 B
TypeScript
24 lines
329 B
TypeScript
|
export interface LogData {
|
||
|
id: string,
|
||
|
title: string,
|
||
|
content: string,
|
||
|
tags: {
|
||
|
id: string
|
||
|
name: string
|
||
|
color: string
|
||
|
}[]
|
||
|
projectId: string
|
||
|
createdAt: number
|
||
|
createdBy: string
|
||
|
}
|
||
|
|
||
|
export interface Log extends Readonly<LogData> {}
|
||
|
|
||
|
export class Log {
|
||
|
|
||
|
constructor(data: LogData) {
|
||
|
Object.assign(this, data);
|
||
|
}
|
||
|
|
||
|
}
|