11 changed files with 52 additions and 18 deletions
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
/** |
||||
* 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 |
||||
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved. |
||||
* author entfrm开发团队-王翔 |
||||
*/ |
||||
import type { TokenParams, TokenResult } from '/@/api/platform/monitor/entity/token'; |
||||
import { defHttp } from '/@/utils/http/axios'; |
||||
|
||||
enum Api { |
||||
list = '/monitor_proxy/monitor/token/list', |
||||
del = '/monitor_proxy/monitor/token/remove' |
||||
} |
||||
|
||||
/** 查询令牌列表 */ |
||||
export const listToken = (params?: Partial<TokenParams>) => defHttp.get<TokenResult>({ url: Api.list, params }, { isReturnResultResponse: true }); |
||||
|
||||
/** 删除令牌 */ |
||||
export const delToken = (id: string) => defHttp.delete({ url: `${Api.del}/${id}` }); |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
/** |
||||
* @program: kicc-ui |
||||
* @description: 令牌实体类 |
||||
* 类型定义 |
||||
* @author: entfrm开发团队-王翔 |
||||
* @create: 2022/4/8 |
||||
*/ |
||||
import type { R } from '/#/axios'; |
||||
import type { Page } from '/@/api/common/data/entity'; |
||||
import type { TokenEnhancer } from '/@/api/platform/core/entity/user'; |
||||
|
||||
/** 令牌查询参数 */ |
||||
export type TokenParams = Page & TokenEnhancer; |
||||
|
||||
/** 令牌响应对象 */ |
||||
export type TokenResult = R<TokenEnhancer[]>; |
Loading…
Reference in new issue