晏有为
2024-05-15 9116abf53b1dd05f342e89ed5e287964433637fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.yuanchu.mom.controller;
 
import com.yuanchu.mom.annotation.ValueAuth;
import com.yuanchu.mom.pojo.Post;
import com.yuanchu.mom.util.HeaderToken;
import com.yuanchu.mom.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@RestController
@AllArgsConstructor
@RequestMapping("/post")
@Api("岗位模块")
public class PostController {
 
    @Autowired
    private HeaderToken headerToken;
 
    @ValueAuth
    @ApiOperation(value = "获取岗位列表")
    @PostMapping(value = "/selectPostList/{companyId}")
    public Result<List<Post>> selectPostList(@PathVariable String companyId){
        return Result.success(headerToken.postUrl(companyId));
    }
}