feat: 解决方案列表页标签排序
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m1s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m1s
- 为SolutionType添加Sort字段用于排序 - 解决方案列表按照sort升序排序
This commit is contained in:
@ -1,3 +1,18 @@
|
||||
/**
|
||||
* 解决方案类型视图模型
|
||||
* 用于解决方案列表页标签栏的渲染与排序
|
||||
*/
|
||||
export interface SolutionTypeView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
|
||||
/** 类型名 **/
|
||||
name: string;
|
||||
|
||||
/** 排序字段 **/
|
||||
sort: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解决方案列表模型
|
||||
* 用于解决方案列表(/solutions)渲染的数据结构
|
||||
@ -13,7 +28,7 @@ export interface SolutionListView {
|
||||
summary: string;
|
||||
|
||||
/** 解决方案类型 **/
|
||||
solution_type: string;
|
||||
solution_type: SolutionTypeView;
|
||||
|
||||
/** 解决方案封面(图片id) **/
|
||||
cover: string;
|
||||
|
||||
Reference in New Issue
Block a user