|
|
@@ -1,73 +1,75 @@
|
|
|
-import { EnumBrochureType } from "@/common/enum";
|
|
|
+import {EnumBrochureType} from "@/common/enum";
|
|
|
|
|
|
export interface University {
|
|
|
- bannerUrl: string;
|
|
|
- address: string;
|
|
|
- area: string | number;
|
|
|
- bxLevel: string;
|
|
|
- bxType: string; // 现在似乎没有值
|
|
|
- cityName: string;
|
|
|
- code: string;
|
|
|
- collect: string | number;
|
|
|
- collected: boolean;
|
|
|
- comScore: string | number;
|
|
|
- enrollLocation: string;
|
|
|
- features: string;
|
|
|
- hits: number;
|
|
|
- id: number;
|
|
|
- location: string;
|
|
|
- logo: string;
|
|
|
- name: string;
|
|
|
- natureTypeCN: string;
|
|
|
- star: string;
|
|
|
- type: string;
|
|
|
- webSite: string;
|
|
|
- tier: string;
|
|
|
- tierName: string;
|
|
|
- introduction: string;
|
|
|
- tel: string;
|
|
|
+ bannerUrl: string;
|
|
|
+ address: string;
|
|
|
+ area: string | number;
|
|
|
+ bxLevel: string;
|
|
|
+ bxType: string; // 现在似乎没有值
|
|
|
+ cityName: string;
|
|
|
+ code: string;
|
|
|
+ collect: string | number;
|
|
|
+ collected: boolean;
|
|
|
+ comScore: string | number;
|
|
|
+ enrollLocation: string;
|
|
|
+ features: string;
|
|
|
+ hits: number;
|
|
|
+ id: number;
|
|
|
+ location: string;
|
|
|
+ logo: string;
|
|
|
+ name: string;
|
|
|
+ natureTypeCN: string;
|
|
|
+ star: string;
|
|
|
+ type: string;
|
|
|
+ webSite: string;
|
|
|
+ tier: string;
|
|
|
+ tierName: string;
|
|
|
+ introduction: string;
|
|
|
+ tel: string;
|
|
|
+
|
|
|
+ images?: UniversityStyle[];
|
|
|
}
|
|
|
|
|
|
export interface UniversityProfession {
|
|
|
- "remark": string;
|
|
|
- "id": string | number;
|
|
|
- "collegeCode": string;
|
|
|
- "type": string;
|
|
|
- "code": string;
|
|
|
- "name": string;
|
|
|
- "ranking": number | null;
|
|
|
- "count": number | null;
|
|
|
- "hot": number | null;
|
|
|
- "examType": string;
|
|
|
- "enrollCode": string;
|
|
|
- "majorDirection": string;
|
|
|
+ "remark": string;
|
|
|
+ "id": string | number;
|
|
|
+ "collegeCode": string;
|
|
|
+ "type": string;
|
|
|
+ "code": string;
|
|
|
+ "name": string;
|
|
|
+ "ranking": number | null;
|
|
|
+ "count": number | null;
|
|
|
+ "hot": number | null;
|
|
|
+ "examType": string;
|
|
|
+ "enrollCode": string;
|
|
|
+ "majorDirection": string;
|
|
|
}
|
|
|
|
|
|
export interface UniversityBrochure {
|
|
|
- "createBy": string;
|
|
|
- "createTime": string;
|
|
|
- "updateBy": string;
|
|
|
- "updateTime": string;
|
|
|
- "remark": string;
|
|
|
- "id": number;
|
|
|
- "year": string;
|
|
|
- "collegeCode": string;
|
|
|
- "collegeName": string;
|
|
|
- "editor": string;
|
|
|
- "url": string;
|
|
|
- "summary": string;
|
|
|
- "title": string;
|
|
|
- "isArt": boolean | null;
|
|
|
- "type": EnumBrochureType;
|
|
|
- "metaDescription": string;
|
|
|
- "content": string;
|
|
|
- "tags": string;
|
|
|
- "isShow": number;
|
|
|
- "hits": number;
|
|
|
- "createTime2": string;
|
|
|
- "typeName": string;
|
|
|
+ "createBy": string;
|
|
|
+ "createTime": string;
|
|
|
+ "updateBy": string;
|
|
|
+ "updateTime": string;
|
|
|
+ "remark": string;
|
|
|
+ "id": number;
|
|
|
+ "year": string;
|
|
|
+ "collegeCode": string;
|
|
|
+ "collegeName": string;
|
|
|
+ "editor": string;
|
|
|
+ "url": string;
|
|
|
+ "summary": string;
|
|
|
+ "title": string;
|
|
|
+ "isArt": boolean | null;
|
|
|
+ "type": EnumBrochureType;
|
|
|
+ "metaDescription": string;
|
|
|
+ "content": string;
|
|
|
+ "tags": string;
|
|
|
+ "isShow": number;
|
|
|
+ "hits": number;
|
|
|
+ "createTime2": string;
|
|
|
+ "typeName": string;
|
|
|
|
|
|
- "logo"?: string;
|
|
|
+ "logo"?: string;
|
|
|
}
|
|
|
|
|
|
export type HistoryMode = 'plan' | 'enroll';
|
|
|
@@ -88,63 +90,80 @@ export interface IPlanEnrollHistory {
|
|
|
}
|
|
|
|
|
|
export interface UniversityPlanHistory extends IPlanEnrollHistory {
|
|
|
- "planNum": number|null;
|
|
|
+ "planNum": number | null;
|
|
|
"fee": string;
|
|
|
"xueZhi": string;
|
|
|
"acceptanceRate": string;
|
|
|
}
|
|
|
|
|
|
export interface UniversityEnrollHistory extends IPlanEnrollHistory {
|
|
|
- "minScore": number|null;
|
|
|
- "minSeat": number|null;
|
|
|
- "realNum": number|null;
|
|
|
+ "minScore": number | null;
|
|
|
+ "minSeat": number | null;
|
|
|
+ "realNum": number | null;
|
|
|
}
|
|
|
|
|
|
export interface IPlanEnrollDescriptor {
|
|
|
prop?: string;
|
|
|
title?: string;
|
|
|
- value?: string|number;
|
|
|
+ value?: string | number;
|
|
|
titleOnly?: boolean;
|
|
|
}
|
|
|
|
|
|
export interface UniversityDetail {
|
|
|
- baseInfo: University;
|
|
|
- enrollBrochures: UniversityBrochure[];
|
|
|
- enrollHistories: [];
|
|
|
- planHistories: [];
|
|
|
- professions: UniversityProfession[];
|
|
|
+ baseInfo: University;
|
|
|
+ enrollBrochures: UniversityBrochure[];
|
|
|
+ enrollHistories: [];
|
|
|
+ planHistories: [];
|
|
|
+ professions: UniversityProfession[];
|
|
|
+}
|
|
|
+
|
|
|
+export interface UniversityStyle {
|
|
|
+ "searchValue": string;
|
|
|
+ "createBy": string;
|
|
|
+ "createTime": string;
|
|
|
+ "updateBy": string;
|
|
|
+ "updateTime": string;
|
|
|
+ "remark": string;
|
|
|
+ "id": string;
|
|
|
+ "collegeCode": string;
|
|
|
+ "description": string;
|
|
|
+ "isBanner": boolean | null;
|
|
|
+ "url": string;
|
|
|
+ "type": string | number;
|
|
|
+ "coverUrl": string;
|
|
|
+ "sort": number;
|
|
|
}
|
|
|
|
|
|
export interface UniversityQueryDto {
|
|
|
- name: string;
|
|
|
- features: string[];
|
|
|
- type: string[];
|
|
|
- natureTypeCN: string[];
|
|
|
- location: string[];
|
|
|
- level: string[];
|
|
|
- tier: string[];
|
|
|
+ name: string;
|
|
|
+ features: string[];
|
|
|
+ type: string[];
|
|
|
+ natureTypeCN: string[];
|
|
|
+ location: string[];
|
|
|
+ level: string[];
|
|
|
+ tier: string[];
|
|
|
}
|
|
|
|
|
|
export interface UniversityTier {
|
|
|
- typeName: string;
|
|
|
- typeValue: string | number;
|
|
|
- desc: string;
|
|
|
- list: University[];
|
|
|
+ typeName: string;
|
|
|
+ typeValue: string | number;
|
|
|
+ desc: string;
|
|
|
+ list: University[];
|
|
|
|
|
|
- /*UI props begin 后台不用管*/
|
|
|
- colorFrom?: string;
|
|
|
- colorTo?: string;
|
|
|
- colorText?: string;
|
|
|
- icon?: string;
|
|
|
- /*UI props end*/
|
|
|
+ /*UI props begin 后台不用管*/
|
|
|
+ colorFrom?: string;
|
|
|
+ colorTo?: string;
|
|
|
+ colorText?: string;
|
|
|
+ icon?: string;
|
|
|
+ /*UI props end*/
|
|
|
}
|
|
|
|
|
|
export interface UniversityFilter {
|
|
|
- features: string[];
|
|
|
- types: string[];
|
|
|
- natureTypes: string[];
|
|
|
- bxTypes: string[];
|
|
|
- locations: string[];
|
|
|
- tiers: Record<number, string>;
|
|
|
- stars: Record<number, string>;
|
|
|
+ features: string[];
|
|
|
+ types: string[];
|
|
|
+ natureTypes: string[];
|
|
|
+ bxTypes: string[];
|
|
|
+ locations: string[];
|
|
|
+ tiers: Record<number, string>;
|
|
|
+ stars: Record<number, string>;
|
|
|
}
|