-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.6.0 三级等保重磅更新:1、【新增】双因子方式登录;2、【新增】定期修改密码;3、【新增】最大活跃时间;4、【新增】敏感数据脱敏;…
…5、【新增】登录锁定配置;6、【新增】密码复杂度配置;7、【新增】三级等保可配置
- Loading branch information
zhuoda
committed
Sep 3, 2024
1 parent
50f5324
commit 85c6087
Showing
160 changed files
with
4,091 additions
and
1,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
import net.lab1024.sa.base.common.domain.PageResult; | ||
import net.lab1024.sa.base.common.domain.ResponseDTO; | ||
import net.lab1024.sa.base.common.util.SmartRequestUtil; | ||
import net.lab1024.sa.base.module.support.apiencrypt.annotation.ApiDecrypt; | ||
import net.lab1024.sa.base.module.support.securityprotect.service.Level3ProtectConfigService; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import javax.annotation.Resource; | ||
|
@@ -23,7 +25,7 @@ | |
* @Date 2021-12-09 22:57:49 | ||
* @Wechat zhuoda1024 | ||
* @Email [email protected] | ||
* @Copyright <a href="https://1024lab.net">1024创新实验室</a> | ||
* @Copyright <a href="https://1024lab.net">1024创新实验室</a> | ||
*/ | ||
@RestController | ||
@Tag(name = AdminSwaggerTagConst.System.SYSTEM_EMPLOYEE) | ||
|
@@ -32,6 +34,9 @@ public class EmployeeController { | |
@Resource | ||
private EmployeeService employeeService; | ||
|
||
@Resource | ||
private Level3ProtectConfigService level3ProtectConfigService; | ||
|
||
@PostMapping("/employee/query") | ||
@Operation(summary = "员工管理查询 @author 卓大") | ||
public ResponseDTO<PageResult<EmployeeVO>> query(@Valid @RequestBody EmployeeQueryForm query) { | ||
|
@@ -89,9 +94,17 @@ public ResponseDTO<String> batchUpdateDepartment(@Valid @RequestBody EmployeeBat | |
|
||
@Operation(summary = "修改密码 @author 卓大") | ||
@PostMapping("/employee/update/password") | ||
@ApiDecrypt | ||
public ResponseDTO<String> updatePassword(@Valid @RequestBody EmployeeUpdatePasswordForm updatePasswordForm) { | ||
updatePasswordForm.setEmployeeId(SmartRequestUtil.getRequestUserId()); | ||
return employeeService.updatePassword(updatePasswordForm); | ||
return employeeService.updatePassword(SmartRequestUtil.getRequestUser(), updatePasswordForm); | ||
} | ||
|
||
@Operation(summary = "获取密码复杂度 @author 卓大") | ||
@GetMapping("/employee/getPasswordComplexityEnabled") | ||
@ApiDecrypt | ||
public ResponseDTO<Boolean> getPasswordComplexityEnabled() { | ||
return ResponseDTO.ok(level3ProtectConfigService.isPasswordComplexityEnabled()); | ||
} | ||
|
||
@Operation(summary = "重置员工密码 @author 卓大") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.