feat: move api-client as core's monorepo

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2022-12-20 21:26:21 +08:00
parent 06ab476c8a
commit a281f45ab4
101 changed files with 7990 additions and 297 deletions

View 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>
}