chore: 客户端管理 => 终端管理

This commit is contained in:
2025-02-26 21:24:16 +08:00
parent 75f671d891
commit dc6e0a4ff6
8 changed files with 29 additions and 29 deletions

View File

@@ -5,27 +5,27 @@ export type * from './type'
const BASE_URL = '/system/client'
/** @desc 查询客户端列表 */
/** @desc 查询端列表 */
export function listClient(query: T.ClientPageQuery) {
return http.get<PageRes<T.ClientResp[]>>(`${BASE_URL}`, query)
}
/** @desc 查询客户端详情 */
/** @desc 查询端详情 */
export function getClient(id: string) {
return http.get<T.ClientDetailResp>(`${BASE_URL}/${id}`)
}
/** @desc 新增客户端 */
/** @desc 新增端 */
export function addClient(data: any) {
return http.post(`${BASE_URL}`, data)
}
/** @desc 修改客户端 */
/** @desc 修改端 */
export function updateClient(data: any, id: string) {
return http.put(`${BASE_URL}/${id}`, data)
}
/** @desc 删除客户端 */
/** @desc 删除端 */
export function deleteClient(ids: string | Array<string>) {
return http.del(`${BASE_URL}/${ids}`)
}