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