import BaseService from "hbt-common/service/base.service" import type { AxiosResponse } from 'axios' import { ActionResult } from "hbt-common/models/actionResult"; export default class ManagerService extends BaseService{ constructor(){ super() } // 查询列表 public selectByPage(params: any):Promise>>{ const url = this.prefix.prevention+'/danger/manage/list'; return this.get(url,params,true) } // 批量删除 public deleteByIds(params):Promise>>{ const url = this.prefix.prevention+'/danger/manage'; return this.deleteBatch(url,params,{},true) } public selectById(id:any,showLoading?:boolean):Promise>>{ const url = this.prefix.prevention+'/danger/manage/'+id; return this.get(url,null,showLoading) } public getNumber():Promise>>{ const url = this.prefix.prevention+'/danger/manage/number'; return this.get(url,null) } // 新增或更新 public addOrUpdate(params: any, add: boolean,showLoading?:boolean): Promise>>{ const url = this.prefix.prevention+'/danger/manage'; if(add){ return this.post(url,params,{},showLoading) }else{ return this.put(url,params,{},showLoading) } } public getFileUrls(params):Promise>>{ const url = this.prefix.file+'/getSysFiles'; return this.get(url,params,false) } }