Browse Source

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

master
wangxiang 3 years ago
parent
commit
e87a9f86ca
  1. 2
      kicc-ui/src/api/platform/core/controller/menu.ts
  2. 6
      kicc-ui/src/api/platform/core/controller/upload.ts
  3. 9
      kicc-ui/src/api/platform/core/controller/user.ts
  4. 3
      kicc-ui/src/api/platform/core/entity/menu.ts
  5. 5
      kicc-ui/src/api/platform/core/entity/user.ts
  6. 2
      kicc-ui/src/api/platform/system/controller/dept.ts
  7. 4
      kicc-ui/src/api/platform/system/controller/menu.ts
  8. 2
      kicc-ui/src/api/platform/system/controller/role.ts
  9. 6
      kicc-ui/src/api/platform/system/controller/user.ts
  10. 6
      kicc-ui/src/api/platform/system/entity/user.ts

2
kicc-ui/src/api/platform/core/controller/menu.ts

@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import type { MenuRouteResult } from '/@/api/platform/core/entity/menu';
import { defHttp } from '/@/utils/http/axios';
import { MenuRouteResult } from '../entity/menu';
enum Api {
list = '/system_proxy/system/menu/menuRoute',

6
kicc-ui/src/api/platform/core/controller/upload.ts

@ -3,10 +3,10 @@ @@ -3,10 +3,10 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import { UploadResult } from '../entity/upload';
import { defHttp } from '/@/utils/http/axios';
import { UploadFileParams } from '/#/axios';
import type { UploadResult } from '../entity/upload';
import type { UploadFileParams } from '/#/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { defHttp } from '/@/utils/http/axios';
const { uploadUrl = '' } = useGlobSetting();

9
kicc-ui/src/api/platform/core/controller/user.ts

@ -3,12 +3,13 @@ @@ -3,12 +3,13 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import { defHttp } from '/@/utils/http/axios';
import { Captcha, User, LoginParams, TokenEnhancer } from '../entity/user';
import type { Captcha, User, LoginParams, TokenEnhancer } from '../entity/user';
import type { RequestOptions } from "/#/axios";
import { encryptionLogin } from '/@/utils/cipher';
import qs from 'qs';
import { RequestOptions } from "/#/axios";
import { useGlobSetting } from "/@/hooks/setting";
import { defHttp } from '/@/utils/http/axios';
import qs from 'qs';
const globSetting = useGlobSetting();
enum Api {

3
kicc-ui/src/api/platform/core/entity/menu.ts

@ -5,8 +5,7 @@ @@ -5,8 +5,7 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import {AppRouteRecordRaw} from "/@/router/types";
import type { AppRouteRecordRaw } from '/@/router/types';
/** 菜单路由响应对象 */
export type MenuRouteResult = AppRouteRecordRaw[];

5
kicc-ui/src/api/platform/core/entity/user.ts

@ -5,9 +5,8 @@ @@ -5,9 +5,8 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { CommonEntity } from "/@/api/common/data/entity";
import { KiccUser } from "/@/api/common/base/entity";
import type { CommonEntity } from "/@/api/common/data/entity";
import type { KiccUser } from "/@/api/common/base/entity";
/** 登录参数对象 */
export interface LoginParams {

2
kicc-ui/src/api/platform/system/controller/dept.ts

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import { DeptParams, Dept } from '/@/api/platform/system/entity/dept';
import type { DeptParams, Dept } from '/@/api/platform/system/entity/dept';
import { defHttp } from '/@/utils/http/axios';
enum Api {

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

@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import { MenuParams, Menu } from '/@/api/platform/system/entity/menu';
import { ResultVo } from '/@/api/common/base/entity';
import type { MenuParams, Menu } from '/@/api/platform/system/entity/menu';
import type { ResultVo } from '/@/api/common/base/entity';
import { defHttp } from '/@/utils/http/axios';
enum Api {

2
kicc-ui/src/api/platform/system/controller/role.ts

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import { Role, RoleParams, RoleResult } from '/@/api/platform/system/entity/role';
import type { Role, RoleParams, RoleResult } from '/@/api/platform/system/entity/role';
import { defHttp } from '/@/utils/http/axios';
enum Api {

6
kicc-ui/src/api/platform/system/controller/user.ts

@ -3,10 +3,10 @@ @@ -3,10 +3,10 @@
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved.
* author entfrm开发团队-
*/
import { UserParams, UserResult } from '/@/api/platform/system/entity/user';
import { User } from "/@/api/platform/core/entity/user";
import type { UserParams, UserResult } from '/@/api/platform/system/entity/user';
import type { User } from "/@/api/platform/core/entity/user";
import type { ResultVo } from '/@/api/common/base/entity';
import { defHttp } from '/@/utils/http/axios';
import { ResultVo } from '/@/api/common/base/entity';
enum Api {
list = '/system_proxy/system/user/list',

6
kicc-ui/src/api/platform/system/entity/user.ts

@ -5,9 +5,9 @@ @@ -5,9 +5,9 @@
* @author: entfrm开发团队-
* @create: 2022/4/8
*/
import { R } from '/#/axios';
import { Page } from '/@/api/common/data/entity';
import { User } from "/@/api/platform/core/entity/user";
import type { R } from '/#/axios';
import type { Page } from '/@/api/common/data/entity';
import type { User } from "/@/api/platform/core/entity/user";
/** 用户查询参数 */
export type UserParams = Page & User;

Loading…
Cancel
Save