chore: src/modules/demo/controller/open/i18n.ts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { CoolController, BaseController } from '@cool-midway/core';
|
||||
import { DemoI18nService } from '../../service/i18n';
|
||||
|
||||
/**
|
||||
* 国际化
|
||||
*/
|
||||
@CoolController({
|
||||
serviceApis: [
|
||||
{
|
||||
method: 'en',
|
||||
summary: '翻译成英文',
|
||||
},
|
||||
{
|
||||
method: 'tw',
|
||||
summary: '翻译成繁体',
|
||||
},
|
||||
],
|
||||
service: DemoI18nService,
|
||||
})
|
||||
export class DemoI18nController extends BaseController {}
|
||||
Reference in New Issue
Block a user