Files
jinshen-website/app/models/views/SolutionListView.ts
R2m1liA 0363a88785
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m1s
feat: 解决方案列表页标签排序
- 为SolutionType添加Sort字段用于排序
- 解决方案列表按照sort升序排序
2025-11-08 15:46:37 +08:00

36 lines
625 B
TypeScript

/**
* 解决方案类型视图模型
* 用于解决方案列表页标签栏的渲染与排序
*/
export interface SolutionTypeView {
/** 唯一标识符 **/
id: number;
/** 类型名 **/
name: string;
/** 排序字段 **/
sort: number;
}
/**
* 解决方案列表模型
* 用于解决方案列表(/solutions)渲染的数据结构
*/
export interface SolutionListView {
/** 唯一标识符 **/
id: number;
/** 标题 **/
title: string;
/** 摘要 **/
summary: string;
/** 解决方案类型 **/
solution_type: SolutionTypeView;
/** 解决方案封面(图片id) **/
cover: string;
}