配置Security白名单
This commit is contained in:
parent
687168001f
commit
b6c5c4129d
@ -16,6 +16,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@ -114,7 +115,7 @@ public class CompanyStaffController {
|
||||
/**
|
||||
* 查询员工
|
||||
*
|
||||
* @param id
|
||||
* @param id 员工ID
|
||||
* @author 小李
|
||||
* @date 17:59 2024/8/6
|
||||
**/
|
||||
@ -226,7 +227,7 @@ public class CompanyStaffController {
|
||||
@PostMapping("/resetPassword")
|
||||
@Operation(summary = "重置员工登录密码")
|
||||
@PreAuthorize("@ss.hasPermission('company:staff:resetPassword')")
|
||||
public CommonResult resetPassword(@RequestBody CompanyStaffRespVO staffRespVO) {
|
||||
public CommonResult<T> resetPassword(@RequestBody CompanyStaffRespVO staffRespVO) {
|
||||
staffService.resetPassword(staffRespVO);
|
||||
return CommonResult.ok();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user