2019-09-29 11:37:48 +08:00

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);
}
}