feat: 产品列表页排序

- 为ProductType添加sort字段用于排序
- 产品列表页项目按照sort升序排序
This commit is contained in:
2025-11-08 15:34:42 +08:00
parent b4da838cae
commit bd894d6f2e
6 changed files with 64 additions and 26 deletions

View File

@ -142,6 +142,7 @@ export interface ProductType {
id: number;
/** @description 当前产品条目的状态 */
status?: 'published' | 'draft' | 'archived';
sort?: number | null;
/** @description i18n文本 */
translations?: ProductTypesTranslation[] | null;
}
@ -231,6 +232,7 @@ export interface SolutionType {
/** @primaryKey */
id: number;
status?: 'published' | 'draft' | 'archived';
sort?: number | null;
/** @description i18n字段 */
translations?: SolutionTypesTranslation[] | null;
}