Files
core/packages/api-client/models/recently.ts
2022-12-23 11:17:06 +08:00

23 lines
405 B
TypeScript

import { BaseCommentIndexModel } from './base'
export enum RecentlyRefTypes {
Post = 'Post',
Note = 'Note',
Page = 'Page',
}
export type RecentlyRefType = {
title: string
url: string
}
export interface RecentlyModel extends BaseCommentIndexModel {
content: string
ref?: RecentlyRefType & { [key: string]: any }
refId?: string
refType?: RecentlyRefTypes
up: number
down: number
}