diff --git a/app/controller/user.ts b/app/controller/user.ts index 6a84ad8..620ec0c 100644 --- a/app/controller/user.ts +++ b/app/controller/user.ts @@ -6,6 +6,6 @@ import { Context } from 'egg'; export default class User extends BaseController { constructor (ctx: Context) { super(ctx); - this.setEntity(this.ctx.repo.sys.User); + this.setEntity(this.ctx.repo.User); } }