From c740e78d91441d5b1289e2ff8b608a4e14189860 Mon Sep 17 00:00:00 2001 From: liberhe <411497616@qq.com> Date: Fri, 15 Dec 2023 19:09:43 +0800 Subject: [PATCH] add approve auth --- src/main/java/com/dl/officialsite/hiring/HireController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/dl/officialsite/hiring/HireController.java b/src/main/java/com/dl/officialsite/hiring/HireController.java index cc5264bd..a768bbf2 100644 --- a/src/main/java/com/dl/officialsite/hiring/HireController.java +++ b/src/main/java/com/dl/officialsite/hiring/HireController.java @@ -6,6 +6,7 @@ import java.util.List; +import com.dl.officialsite.login.Auth; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; @@ -37,6 +38,7 @@ public class HireController { * 添加简历 */ @PostMapping + @Auth("admin") public BaseResponse add(@RequestParam String address,@RequestBody HiringVO hiringVO) { HiringVO hiringVO1 = hireService.add(hiringVO); return BaseResponse.successWithData(hiringVO1);