mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
忽略登录
This commit is contained in:
parent
16d8560734
commit
b6f45326e9
@ -1,15 +1,22 @@
|
|||||||
import { Provide, Inject, Get, Post, Body, ALL } from '@midwayjs/decorator';
|
import {
|
||||||
import { CoolController, BaseController } from '@cool-midway/core';
|
BaseController,
|
||||||
|
CoolController,
|
||||||
|
CoolTag,
|
||||||
|
CoolUrlTag,
|
||||||
|
TagTypes,
|
||||||
|
} from '@cool-midway/core';
|
||||||
|
import { ALL, Body, Get, Inject, Post, Provide } from '@midwayjs/decorator';
|
||||||
|
import { Context } from '@midwayjs/koa';
|
||||||
|
import { PluginService } from '../../../plugin/service/info';
|
||||||
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';
|
||||||
import { BaseSysUserService } from '../../service/sys/user';
|
import { BaseSysUserService } from '../../service/sys/user';
|
||||||
import { Context } from '@midwayjs/koa';
|
|
||||||
import { PluginService } from '../../../plugin/service/info';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base 通用接口 一般写不需要权限过滤的接口
|
* Base 通用接口 一般写不需要权限过滤的接口
|
||||||
*/
|
*/
|
||||||
|
@CoolUrlTag()
|
||||||
@Provide()
|
@Provide()
|
||||||
@CoolController()
|
@CoolController()
|
||||||
export class BaseCommController extends BaseController {
|
export class BaseCommController extends BaseController {
|
||||||
@ -84,6 +91,7 @@ export class BaseCommController extends BaseController {
|
|||||||
return this.ok();
|
return this.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@CoolTag(TagTypes.IGNORE_TOKEN)
|
||||||
@Get('/program', { summary: '编程' })
|
@Get('/program', { summary: '编程' })
|
||||||
async program() {
|
async program() {
|
||||||
return this.ok('Node');
|
return this.ok('Node');
|
||||||
|
Loading…
Reference in New Issue
Block a user