Files
gaoYuJournal/miniprogram/types/Journal.ts
2025-12-09 18:02:23 +08:00

55 lines
851 B
TypeScript

import { Attachment } from "./Attachment";
import { Model, QueryPage } from "./Model";
/** 日记 */
export type Journal = {
/** 类型 */
type: JournalType;
/** 想法、说明 */
idea?: string;
/** 维度 */
lat?: number;
/** 经度 */
lng?: number;
/** 位置 */
location?: string;
/** 天气 */
weatcher?: string;
/** 附件(照片、视频等) */
items?: Attachment[];
} & Model;
/** 日记类型 */
export enum JournalType {
/** 正常 */
NORMAL = "NORMAL",
/** 专业拍摄 */
PORTFOLIO = "PORTFOLIO"
}
/** 日记页面查询对象 */
export type JournalPage = {
/** 查询类型 */
type: JournalPageType;
} & QueryPage;
/** 日记页面查询类型 */
export enum JournalPageType {
/** 正常查询所有附件 */
NORMAL = "NORMAL",
/** 仅查询第一个附件用于预览 */
PREVIEW = "PREVIEW"
}