From ad38c8e9b8e6e502e9c5605cbb7e90ef2fa42ad4 Mon Sep 17 00:00:00 2001 From: COOL Date: Thu, 24 Mar 2022 15:56:46 +0800 Subject: [PATCH] 5.x --- .gitignore | 1 - package.json | 2 +- src/modules/base/controller/admin/comm.ts | 14 +------------- src/modules/base/controller/admin/open.ts | 2 +- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index e511360..857ff6a 100755 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,5 @@ run/ .tsbuildinfo.* .audit typings/ -lock/ public/uploads/ cache/ diff --git a/package.json b/package.json index 521952c..d5193df 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "private": true, "dependencies": { - "@cool-midway/core": "^5.0.5", + "@cool-midway/core": "^5.0.6", "@cool-midway/es": "^5.0.1", "@cool-midway/file": "^5.0.1", "@cool-midway/pay": "^5.0.0", diff --git a/src/modules/base/controller/admin/comm.ts b/src/modules/base/controller/admin/comm.ts index 5138241..11ef46d 100644 --- a/src/modules/base/controller/admin/comm.ts +++ b/src/modules/base/controller/admin/comm.ts @@ -1,5 +1,5 @@ import { Provide, Inject, Get, Post, Body, ALL } from '@midwayjs/decorator'; -import { CoolController, BaseController, CoolEps } from '@cool-midway/core'; +import { CoolController, BaseController } from '@cool-midway/core'; import { BaseSysUserEntity } from '../../entity/sys/user'; import { BaseSysLoginService } from '../../service/sys/login'; import { BaseSysPermsService } from '../../service/sys/perms'; @@ -28,18 +28,6 @@ export class BaseCommController extends BaseController { @Inject() coolFile: CoolFile; - @Inject() - eps: CoolEps; - - /** - * 实体信息与路径 - * @returns - */ - @Get('/eps', { summary: '实体信息与路径' }) - public async getEps() { - return this.ok(this.eps.admin); - } - /** * 获得个人信息 */ diff --git a/src/modules/base/controller/admin/open.ts b/src/modules/base/controller/admin/open.ts index b7cd0ab..bf2dd23 100644 --- a/src/modules/base/controller/admin/open.ts +++ b/src/modules/base/controller/admin/open.ts @@ -37,7 +37,7 @@ export class BaseOpenController extends BaseController { */ @Get('/eps', { summary: '实体信息与路径' }) public async getEps() { - return this.ok(this.eps.app); + return this.ok(this.eps.admin); } /**