feat: move api-client as core's monorepo
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
40
packages/api-client/models/note.ts
Normal file
40
packages/api-client/models/note.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { TextBaseModel } from './base'
|
||||
import { TopicModel } from './topic'
|
||||
|
||||
export interface NoteModel extends TextBaseModel {
|
||||
hide: boolean
|
||||
count: {
|
||||
read: number
|
||||
like: number
|
||||
}
|
||||
|
||||
mood?: string
|
||||
weather?: string
|
||||
hasMemory?: boolean
|
||||
|
||||
secret?: Date
|
||||
password?: string | null
|
||||
nid: number
|
||||
music?: NoteMusicRecord[]
|
||||
location?: string
|
||||
|
||||
coordinates?: Coordinate
|
||||
topic?: TopicModel
|
||||
topicId?: string
|
||||
}
|
||||
|
||||
export interface NoteMusicRecord {
|
||||
type: string
|
||||
id: string
|
||||
}
|
||||
|
||||
export interface Coordinate {
|
||||
latitude: number
|
||||
longitude: number
|
||||
}
|
||||
|
||||
export interface NoteWrappedPayload {
|
||||
data: NoteModel
|
||||
next?: Partial<NoteModel>
|
||||
prev?: Partial<NoteModel>
|
||||
}
|
||||
Reference in New Issue
Block a user