12345678910111213141516171819202122232425262728293031 |
- import axios from './instance'
- import {
- MODEL_LIST
- } from './constant'
- export enum ModelType {
- SWKK,
- SWKJ,
- SWSS,
- SWMX,
- }
- export const ModelTypeDesc: Record<ModelType, string> = {
- [ModelType.SWKK]: '四维看看',
- [ModelType.SWKJ]: '四维看见',
- [ModelType.SWSS]: '四维深时',
- [ModelType.SWMX]: '三维模型',
- }
- export interface Model {
- id: string
- title: string
- type: ModelType
- size: number,
- time: string
- }
- export type Models = Model[]
- export const getModels = () =>
- axios.post<Models>(MODEL_LIST)
|