晏有为
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
package com.yuanchu.mom.controller;
 
 
import com.yuanchu.mom.pojo.User;
import com.yuanchu.mom.util.HeaderToken;
import com.yuanchu.mom.vo.Result;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
 
@AllArgsConstructor
@RestController
@RequestMapping("/simple")
@Api("人员模块")
public class SimpleController {
 
    @Autowired
    private HeaderToken headerToken;
 
    @PostMapping( value = "/selectSimpleList/companyId")
    public Result<List<User>> selectSimpleList(@PathVariable String companyId){
        return  Result.success(headerToken.userUrl(companyId));
    }
}