42 lines
754 B
TypeScript
42 lines
754 B
TypeScript
import type { ModelWithLiked, TextBaseModel } from './base'
|
|
import type { TopicModel } from './topic'
|
|
|
|
export interface NoteModel extends TextBaseModel {
|
|
hide: boolean
|
|
count: {
|
|
read: number
|
|
like: number
|
|
}
|
|
|
|
mood?: string
|
|
weather?: string
|
|
bookmark?: boolean
|
|
|
|
publicAt?: Date
|
|
password?: string | null
|
|
nid: number
|
|
|
|
location?: string
|
|
|
|
coordinates?: Coordinate
|
|
topic?: TopicModel
|
|
topicId?: string
|
|
}
|
|
|
|
export interface Coordinate {
|
|
latitude: number
|
|
longitude: number
|
|
}
|
|
|
|
export interface NoteWrappedPayload {
|
|
data: NoteModel
|
|
next?: Partial<NoteModel>
|
|
prev?: Partial<NoteModel>
|
|
}
|
|
|
|
export interface NoteWrappedWithLikedPayload {
|
|
data: ModelWithLiked<NoteModel>
|
|
next?: Partial<NoteModel>
|
|
prev?: Partial<NoteModel>
|
|
}
|