Skip to content

Commit

Permalink
add approve auth
Browse files Browse the repository at this point in the history
  • Loading branch information
liberhe committed Dec 15, 2023
1 parent 04607f0 commit c740e78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/dl/officialsite/hiring/HireController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c740e78

Please sign in to comment.