add editor

This commit is contained in:
Timi
2025-12-09 18:02:23 +08:00
parent 6dc4d71718
commit 19b6206695
13 changed files with 898 additions and 22 deletions

View File

@ -1,4 +1,4 @@
// 基本实体模型
/** 基本实体模型 */
export type Model = {
id?: number;
@ -7,37 +7,45 @@ export type Model = {
deletedAt?: number;
}
/** 基本返回对象 */
export type Response = {
code: number;
msg?: string;
data: object;
}
/** 基本页面查询对象 */
export type QueryPage = {
/** 页面下标,从 0 开始 */
index: number;
/** 单页数据量 */
size: number;
/** 排序 */
orderMap?: { [key: string]: OrderType };
/** 全等比较条件AND 连接) */
equalsExample?: { [key: string]: string | undefined | null };
/** 模糊查询条件OR 连接) */
likeExample?: { [key: string]: string | undefined | null };
}
/** 排序方式 */
export enum OrderType {
ASC = "ASC",
DESC = "DESC"
}
/** 页面查询返回 */
export type QueryPageResult<T> = {
total: number;
list: T[];
}
// 携带验证码的请求体
export type CaptchaData<T> = {
from: string;
captcha: string;
data: T;
}
/** 键值对对象 */
export type KeyValue<T> = {
key: string;
value: T;