|
|
|
import { ResPage, Stage, Subject, Scheme } from "@/api/interface/index";
|
|
|
|
import http from "@/api";
|
|
|
|
|
|
|
|
export const getStageList = () => {
|
|
|
|
return http.get<ResPage<Stage.ResStageList>>(`/dsRes/base/getStageList`);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getSubjectList = (params: Subject.ReqSubjectParams) => {
|
|
|
|
return http.get<ResPage<Subject.ResSubjectList>>(`/dsRes/base/listSubject`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getSubjectInfoById = params => {
|
|
|
|
return http.get(`/dsRes/base/getSubject`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const addSubject = params => {
|
|
|
|
return http.post(`/dsRes/base/addSubject`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const updateSubject = params => {
|
|
|
|
return http.post(`/dsRes/base/updateSubject`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const deleteSubject = params => {
|
|
|
|
return http.post(`/dsRes/base/delSubject`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getSchemeList = (params: Scheme.ReqSchemeParams) => {
|
|
|
|
return http.get<ResPage<Scheme.ResSchemeList>>(`/dsRes/base/listScheme`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getSchemeInfoById = params => {
|
|
|
|
return http.get(`/dsRes/base/getScheme`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const addScheme = params => {
|
|
|
|
return http.post(`/dsRes/base/addScheme`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const updateScheme = params => {
|
|
|
|
return http.post(`/dsRes/base/updateScheme`, params);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const deleteScheme = params => {
|
|
|
|
return http.post(`/dsRes/base/delScheme`, params);
|
|
|
|
};
|