lrf 6 months ago
parent
commit
e4e0da078c
2 changed files with 2 additions and 1 deletions
  1. 2 0
      src/controller/frame/Login.controller.ts
  2. 0 1
      src/service/frame/File.service.ts

+ 2 - 0
src/controller/frame/Login.controller.ts

@@ -4,6 +4,7 @@ import { LoginType, LoginVO, UPwdDTO } from '../../frame/Options';
 import { JwtService } from '@midwayjs/jwt';
 import { LoginRecordService } from '../../service/frame/LoginRecord.service';
 import { RF } from '../../response/CustomerResponse';
+import { Validate } from '@midwayjs/validate';
 
 @Controller('/login')
 export class LoginController {
@@ -38,6 +39,7 @@ export class LoginController {
    * @param data 修改密码所需数据
    * @param type 账户类型
    */
+  @Validate()
   @Post('/updatePwd/:type')
   async updatePwd(@Body() data: UPwdDTO, @Param('type') type: string) {
     await this.loginService.updatePwd(data, LoginType[type]);

+ 0 - 1
src/service/frame/File.service.ts

@@ -28,7 +28,6 @@ export class FileService {
   // #region 递归清理未被使用的上传文件
   /**
    * 删除不在文件使用表登记的文件
-   * TODO:
    * 1.创建临时表,字段为文件地址;
    * 2.获取config中配置的${表名}.${字段名}.找到所有文件对象,并把uri拿出来存在临时表中
    * 3.获取存放根目录地址,递归检索目录下的文件,并查询下文件在临时表中是否存在: