You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
931 B

10 months ago
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);
};