import http from '@/axios' import { ConfigsBO, ConfigsQuery, ConfigsVO } from '@/api/interface/configs/configs' class ConfigApi { /** * @name 查询分页 * @returns returns */ static page = (params: ConfigsQuery): Promise> => { return http.get({ url: '/fault/page', params }) } /** * @name 查询列表 * @returns returns */ static list = (params: ConfigsBO): Promise> => { return http.get({ url: '/fault/list', params }) } /** * @name 添加 * @returns returns */ static add = (data: ConfigsBO): Promise> => { return http.post({ url: '/fault/add', data }) } /** * @name 更新 * @returns returns */ static edit = (data: ConfigsBO): Promise> => { return http.put({ url: '/fault/edit', data }) } /** * @name 删除 * @returns returns */ static delete = (data: string[]): Promise> => { return http.delete({ url: '/fault/delete', data }) } static getExtraStatistics = (): Promise> => { return http.get({ url: '/fault/extra/statistics' }) } } export default ConfigApi