From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +0800
Subject: [PATCH] add:热门景点
---
types/index.ts | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 176 insertions(+), 0 deletions(-)
diff --git a/types/index.ts b/types/index.ts
index 4984d83..81be94e 100644
--- a/types/index.ts
+++ b/types/index.ts
@@ -22,6 +22,57 @@
content: string;
}
+export interface PaginationQuery {
+ /** 当前页码 */
+ current?: number;
+
+ /** 每页数量 */
+ size?: number;
+
+ /** 排序字段和方向列表 */
+ orders?: OrderItem[];
+
+ /** 是否优化 count 查询 */
+ optimizeCountSql?: boolean;
+
+ /** 是否查询总数 */
+ isSearchCount?: boolean;
+}
+
+/** 排序项定义 */
+export interface OrderItem {
+ column: string;
+ asc: boolean;
+}
+
+
+export interface FilmWorksQueryDTO extends PaginationQuery {
+ /** 中文名称 */
+ nameCn?: string;
+
+ /** 片场类型(FILMSET_TYPE) */
+ type?: string;
+
+ /** 发布状态(COMMON_PUBLISH_STATUS) */
+ status?: string;
+
+ /** 分类:1-为你精选,2-光影天地 */
+ classify?: number;
+
+ /** 创建日期(yyyy-mm-dd)开始 */
+ createDateBeginStr?: string;
+
+ /** 创建日期(yyyy-mm-dd)结束 */
+ createDateEndStr?: string;
+
+ /** 创建日期开始(LocalDateTime 对应 ISO 字符串或 Date 类型) */
+ createDateBegin?: string | Date;
+
+ /** 创建日期结束(LocalDateTime 对应 ISO 字符串或 Date 类型) */
+ createDateEnd?: string | Date;
+}
+
+
export interface FilmWorks {
id?: number;
@@ -177,4 +228,129 @@
createBy: string;
createTime: string;
updateBy: string | null;
+ liked: boolean;
+ collected: boolean;
+ voLikeCount: number;
+ voCollectCount: number;
+ voCommentCount: number;
+}
+
+
+/**
+ * 评论
+ */
+export interface CommentDTO {
+ /** 评论编号 */
+ id?: number;
+
+ /** 父评论id */
+ parentId?: number;
+
+ /** 评论内容 */
+ content?: string;
+
+ /** 被评论帖子id */
+ filmId?: number;
+
+ /** 状态(0禁用,1启用) */
+ state?: boolean;
+
+ /** 逻辑删除(0正常,1删除) */
+ deleted?: boolean;
+
+ /** 评论用户id */
+ createBy?: string;
+
+ /** 评论用户名称 */
+ commentUserName?: string;
+
+ /** 用户头像 */
+ picture?: string;
+
+ /** 等级(Lv6) */
+ level?: string;
+
+ /** 是否点赞 */
+ isLike?: boolean;
+
+ /** 点赞数量 */
+ likeCount?: number; // Long 对应 number
+
+ /** 回复数量 */
+ repliesCount?: number;
+
+ /** 评论深度 */
+ depth?: number;
+
+ /** 创建时间 */
+ createTime?: string; // LocalDateTime 转为 ISO 字符串
+
+ /** 更新时间 */
+ updateTime?: string;
+
+ /** 子评论 */
+ child?: CommentDTO[];
+ /**
+ * 图片列表
+ */
+ fileList?:string[];
+
+ filmPictures?:string;
+
+ }
+
+ interface FileItem {
+ name: string;
+ size: number;
+ url: string;
+ status: string;
+ }
+
+
+export interface FilmLocationVO {
+ address?: string,
+ arEntry?: string,
+ checkinCount?: number,
+ city?: string,
+ classicScene?: string,
+ endDate?: string,
+ filmId?: number,
+ gpsLat?: number,
+ gpsLng?: number,
+ id?: number,
+ isEnabled?: boolean,
+ isOpenVisit?: string,
+ isOpenVisitStr?: string,
+ landmarkDesc?: string,
+ locationName?: string,
+ locationUrl?: string,
+ locationWeight?: number,
+ operationWeight?: number,
+ parkingInfo?: string,
+ province?: string,
+ region?: string,
+ sceneType?: string,
+ startDate?: string,
+ surroundingFacilities?: string,
+ transportGuide?: string,
+ visitInfo?: string,
+ visitorPhotos?: string
+}
+
+export interface FilmWorksQueryDTO extends PaginationQuery {
+
+ /** 拍摄地点名称 */
+ locationName?: string;
+
+ /** 所在省 */
+ province?: string;
+
+ /** 所在市 */
+ city?: string;
+
+ /** 所在区 */
+ region?: string;
+
+ /** 启用/禁用(USER_ENABLED_OR_DISABLED) */
+ isEnabled?: boolean;
}
--
Gitblit v1.9.3