mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-15 03:42:51 +00:00
获得所有字典类型
This commit is contained in:
parent
2a46307d9a
commit
230b989415
@ -1,4 +1,4 @@
|
|||||||
import { Body, Inject, Post, Provide } from '@midwayjs/core';
|
import { Body, Get, Inject, Post, Provide } from '@midwayjs/core';
|
||||||
import {
|
import {
|
||||||
CoolController,
|
CoolController,
|
||||||
BaseController,
|
BaseController,
|
||||||
@ -23,4 +23,10 @@ export class AppDictInfoController extends BaseController {
|
|||||||
async data(@Body('types') types: string[] = []) {
|
async data(@Body('types') types: string[] = []) {
|
||||||
return this.ok(await this.dictInfoService.data(types));
|
return this.ok(await this.dictInfoService.data(types));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@CoolTag(TagTypes.IGNORE_TOKEN)
|
||||||
|
@Get('/types', { summary: '获得所有字典类型' })
|
||||||
|
async types() {
|
||||||
|
return this.ok(await this.dictInfoService.types());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user