Browse Source

📀 重构前端框架进行适配后端框架

master
wangxiang 3 years ago
parent
commit
c2d2c55b9c
  1. 18
      kicc-ui/src/api/platform/monitor/controller/token.ts
  2. 4
      kicc-ui/src/api/platform/monitor/entity/operLog.ts
  3. 16
      kicc-ui/src/api/platform/monitor/entity/token.ts
  4. 4
      kicc-ui/src/api/platform/system/entity/client.ts
  5. 4
      kicc-ui/src/api/platform/system/entity/config.ts
  6. 4
      kicc-ui/src/api/platform/system/entity/dept.ts
  7. 4
      kicc-ui/src/api/platform/system/entity/dict.ts
  8. 4
      kicc-ui/src/api/platform/system/entity/dictData.ts
  9. 4
      kicc-ui/src/api/platform/system/entity/file.ts
  10. 4
      kicc-ui/src/api/platform/system/entity/menu.ts
  11. 4
      kicc-ui/src/api/platform/system/entity/role.ts

18
kicc-ui/src/api/platform/monitor/controller/token.ts

@ -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}` });

4
kicc-ui/src/api/platform/monitor/entity/operLog.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 操作日志查询参数 */
export type OperLogParams = Page & OperLog;

16
kicc-ui/src/api/platform/monitor/entity/token.ts

@ -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[]>;

4
kicc-ui/src/api/platform/system/entity/client.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 客户端查询参数 */
export type ClientParams = Page & Client;

4
kicc-ui/src/api/platform/system/entity/config.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 配置查询参数 */
export type ConfigParams = Page & Config;

4
kicc-ui/src/api/platform/system/entity/dept.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 部门查询参数 */
export type DeptParams = Page & Dept;

4
kicc-ui/src/api/platform/system/entity/dict.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 字典查询参数 */
export type DictParams = Page & Dict;

4
kicc-ui/src/api/platform/system/entity/dictData.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 字典数据查询参数 */
export type DictDataParams = Page & DictData;

4
kicc-ui/src/api/platform/system/entity/file.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 文件查询参数 */
export type FileParams = Page & File;

4
kicc-ui/src/api/platform/system/entity/menu.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 菜单查询参数 */
export type MenuParams = Page & Menu;

4
kicc-ui/src/api/platform/system/entity/role.ts

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { CommonEntity, Page } from '/@/api/common/data/entity';
import type { R } from '/#/axios';
import type { CommonEntity, Page } from '/@/api/common/data/entity';
/** 角色查询参数 */
export type RoleParams = Page & Role;

Loading…
Cancel
Save