import type * as T from './type' import http from '@/utils/http' export type * from './type' const BASE_URL = '/system/client' /** @desc 查询终端列表 */ export function listClient(query: T.ClientPageQuery) { return http.get>(`${BASE_URL}`, query) } /** @desc 查询终端详情 */ export function getClient(id: string) { return http.get(`${BASE_URL}/${id}`) } /** @desc 新增终端 */ export function addClient(data: any) { return http.post(`${BASE_URL}`, data) } /** @desc 修改终端 */ export function updateClient(data: any, id: string) { return http.put(`${BASE_URL}/${id}`, data) } /** @desc 删除终端 */ export function deleteClient(ids: string | Array) { return http.del(`${BASE_URL}/${ids}`) }