mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 06:02:39 +08:00
5.x
This commit is contained in:
parent
746ce5fdf9
commit
ad38c8e9b8
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,6 +15,5 @@ run/
|
||||
.tsbuildinfo.*
|
||||
.audit
|
||||
typings/
|
||||
lock/
|
||||
public/uploads/
|
||||
cache/
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得个人信息
|
||||
*/
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user