mirror of
https://github.com/apgzs/cool-admin-api.git
synced 2025-04-05 19:41:46 +08:00
12 lines
378 B
TypeScript
12 lines
378 B
TypeScript
import { BaseController } from '../lib/base/controller';
|
|
import routerDecorator from '../lib/router';
|
|
import { Context } from 'egg';
|
|
|
|
@routerDecorator.prefix('/user', [ 'add', 'delete', 'update', 'info', 'list', 'page' ])
|
|
export default class User extends BaseController {
|
|
constructor (ctx: Context) {
|
|
super(ctx);
|
|
this.setEntity(this.ctx.repo.User);
|
|
}
|
|
}
|