refactor!: rename note model field and fix exposure of hidden data

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-02-15 22:29:51 +08:00
parent 722045ce6d
commit 6745194197
10 changed files with 66 additions and 22 deletions

View File

@@ -8,12 +8,11 @@ import type {
NoteWrappedPayload,
NoteWrappedWithLikedPayload,
} from '~/models/note'
import type { HTTPClient } from '../core/client'
import type { SortOptions } from './base'
import { autoBind } from '~/utils/auto-bind'
import { HTTPClient } from '../core/client'
declare module '../core/client' {
interface HTTPClient<
T extends IRequestAdapter = IRequestAdapter,

View File

@@ -60,7 +60,7 @@ export interface TimelineData {
| 'mood'
| 'created'
| 'modified'
| 'hasMemory'
| 'bookmark'
>[]
posts?: (Pick<

View File

@@ -10,9 +10,9 @@ export interface NoteModel extends TextBaseModel {
mood?: string
weather?: string
hasMemory?: boolean
bookmark?: boolean
secret?: Date
publicAt?: Date
password?: string | null
nid: number
music?: NoteMusicRecord[]