refactor travel
This commit is contained in:
@ -8,10 +8,20 @@ export type Model = {
|
||||
}
|
||||
|
||||
/** 基本返回对象 */
|
||||
export type Response = {
|
||||
export type Response<T> = {
|
||||
code: number;
|
||||
msg?: string;
|
||||
data: object;
|
||||
data: T;
|
||||
}
|
||||
|
||||
/** 临时文件返回 */
|
||||
export type TempFileResponse = {
|
||||
|
||||
/** 临时文件 ID */
|
||||
id: string;
|
||||
|
||||
/** 过期于 */
|
||||
expireAt: number;
|
||||
}
|
||||
|
||||
/** 基本页面查询对象 */
|
||||
@ -27,7 +37,7 @@ export type QueryPage = {
|
||||
orderMap?: { [key: string]: OrderType };
|
||||
|
||||
/** 全等比较条件(AND 连接) */
|
||||
equalsExample?: { [key: string]: string | undefined | null };
|
||||
equalsExample?: { [key: string]: string | number | undefined | null };
|
||||
|
||||
/** 模糊查询条件(OR 连接) */
|
||||
likeExample?: { [key: string]: string | undefined | null };
|
||||
|
||||
Reference in New Issue
Block a user