From d9a780fa538cb7a83aefa04e75cb53185d690d7d Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期五, 30 五月 2025 16:39:07 +0800
Subject: [PATCH] 微封装

---
 types/index.ts |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/types/index.ts b/types/index.ts
index 4984d83..27e31d1 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;

--
Gitblit v1.9.3