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.*
|
.tsbuildinfo.*
|
||||||
.audit
|
.audit
|
||||||
typings/
|
typings/
|
||||||
lock/
|
|
||||||
public/uploads/
|
public/uploads/
|
||||||
cache/
|
cache/
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cool-midway/core": "^5.0.5",
|
"@cool-midway/core": "^5.0.6",
|
||||||
"@cool-midway/es": "^5.0.1",
|
"@cool-midway/es": "^5.0.1",
|
||||||
"@cool-midway/file": "^5.0.1",
|
"@cool-midway/file": "^5.0.1",
|
||||||
"@cool-midway/pay": "^5.0.0",
|
"@cool-midway/pay": "^5.0.0",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Provide, Inject, Get, Post, Body, ALL } from '@midwayjs/decorator';
|
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 { BaseSysUserEntity } from '../../entity/sys/user';
|
||||||
import { BaseSysLoginService } from '../../service/sys/login';
|
import { BaseSysLoginService } from '../../service/sys/login';
|
||||||
import { BaseSysPermsService } from '../../service/sys/perms';
|
import { BaseSysPermsService } from '../../service/sys/perms';
|
||||||
@ -28,18 +28,6 @@ export class BaseCommController extends BaseController {
|
|||||||
@Inject()
|
@Inject()
|
||||||
coolFile: CoolFile;
|
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: '实体信息与路径' })
|
@Get('/eps', { summary: '实体信息与路径' })
|
||||||
public async getEps() {
|
public async getEps() {
|
||||||
return this.ok(this.eps.app);
|
return this.ok(this.eps.admin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user