chore: remove large file and update .gitignore

This commit is contained in:
Teo
2025-06-24 09:26:04 +08:00
parent 61cd9f6bcf
commit ea56ad66fa
15 changed files with 1118 additions and 80 deletions

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ViolationLevelVO, ViolationLevelForm, ViolationLevelQuery } from '@/api/safety/violationLevel/types';
/**
* 查询违章等级列表
* @param query
* @returns {*}
*/
export const listViolationLevel = (query?: ViolationLevelQuery): AxiosPromise<ViolationLevelVO[]> => {
return request({
url: '/safety/violationLevel/list',
method: 'get',
params: query
});
};
/**
* 查询违章等级详细
* @param id
*/
export const getViolationLevel = (id: string | number): AxiosPromise<ViolationLevelVO> => {
return request({
url: '/safety/violationLevel/' + id,
method: 'get'
});
};
/**
* 新增违章等级
* @param data
*/
export const addViolationLevel = (data: ViolationLevelForm) => {
return request({
url: '/safety/violationLevel',
method: 'post',
data: data
});
};
/**
* 修改违章等级
* @param data
*/
export const updateViolationLevel = (data: ViolationLevelForm) => {
return request({
url: '/safety/violationLevel',
method: 'put',
data: data
});
};
/**
* 删除违章等级
* @param id
*/
export const delViolationLevel = (id: string | number | Array<string | number>) => {
return request({
url: '/safety/violationLevel/' + id,
method: 'delete'
});
};