123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import request from '@/utils/request';
- import { AxiosPromise } from 'axios';
- import { ResultTemplateVO, ResultTemplateForm, ResultTemplateQuery } from '@/api/parameter/basicPublicTemplate/consultantResultTemplate/types';
- /**
- * 查询会诊结果模板列表
- * @param query
- * @returns {*}
- */
- export const listResultTemplate = (query?: ResultTemplateQuery): AxiosPromise<ResultTemplateVO[]> => {
- return request({
- url: '/parameter/basicPublicTemplate/consultantResultTemplate/list',
- method: 'get',
- params: query
- });
- };
- /**
- * 查询会诊结果模板详细
- * @param id
- */
- export const getResultTemplate = (id: string | number): AxiosPromise<ResultTemplateVO> => {
- return request({
- url: '/parameter/basicPublicTemplate/consultantResultTemplate/' + id,
- method: 'get'
- });
- };
- /**
- * 新增会诊结果模板
- * @param data
- */
- export const addResultTemplate = (data: ResultTemplateForm) => {
- return request({
- url: '/parameter/basicPublicTemplate/consultantResultTemplate',
- method: 'post',
- data: data
- });
- };
- /**
- * 修改会诊结果模板
- * @param data
- */
- export const updateResultTemplate = (data: ResultTemplateForm) => {
- return request({
- url: '/parameter/basicPublicTemplate/consultantResultTemplate',
- method: 'put',
- data: data
- });
- };
- /**
- * 删除会诊结果模板
- * @param id
- */
- export const delResultTemplate = (id: string | number | Array<string | number>) => {
- return request({
- url: '/parameter/basicPublicTemplate/consultantResultTemplate/' + id,
- method: 'delete'
- });
- };
|