add field order

This commit is contained in:
ccmjga
2025-05-18 16:55:50 +08:00
parent 0226e329d4
commit 94a69d999b
11 changed files with 143 additions and 34 deletions

View File

@@ -1219,14 +1219,9 @@
"format": "int64"
},
"sortBy": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"ASC",
"DESC"
]
}
"type": "string",
"description": "排序字段",
"example": "name:asc,age:desc"
},
"offset": {
"type": "integer",

View File

@@ -544,9 +544,11 @@ export interface components {
page?: number;
/** Format: int64 */
size?: number;
sortBy?: {
[key: string]: "ASC" | "DESC";
};
/**
* @description 排序字段
* @example name:asc,age:desc
*/
sortBy?: string;
/** Format: int64 */
offset?: number;
sortFields?: components["schemas"]["SortFieldObject"][];