This commit is contained in:
commit
f265233a06
168 changed files with 31208 additions and 0 deletions
23
web-app/src/core/Log.ts
Normal file
23
web-app/src/core/Log.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue