环境

  1. @typescript-eslint/eslint-plugin@latest eslint-config-airbnb-base@latest eslint@^7.32.0 || ^8.2.0 eslint-plugin-import@^2.25.2 @typescript-eslint/parser@latest
  2. Would you like to install them now with npm? · No

待办

  • 返回数据 统一格式
  • 列表返回 pageSize无法使用
  • 操作日志

image.png

  • 登录日志

image.png

查询多条自带条件

  1. // 使用R所带条件查询
  2. R.list<SysUserRole>(this.repo, {
  3. page: query.page,
  4. limit: query.limit,
  5. params: `user_id=${id}`
  6. })
  1. list: Object { count: 1, total: 1, page: 1, }
  2. count: 1
  3. data: Array [ {…} ]
  4. page: 1
  5. pageCount: 1
  6. total: 1

版本升级

  • nest 升级到8.x版本
    • 需要适配nestjsx/crud (目前没有适配)
    • 适配typeorm高版本,做了大版本的迭代,需要修改业务代码