package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.UserInf;
|
import com.whyc.service.BattGroupStationUserService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
/**
|
* 包机组-用户表
|
*/
|
@RestController
|
@RequestMapping("BattGroupUser")
|
@Api(tags = "用户管理-电池组|站点-用户")
|
public class BattGroupStationUserController {
|
|
@Autowired
|
private BattGroupStationUserService service;
|
|
@GetMapping("userList")
|
@ApiOperation(value = "查询站点对应的用户列表")
|
public Response<List<UserInf>> getUserList(@RequestParam Integer stationId){
|
List<UserInf> userList = service.getUserList(stationId);
|
return new Response<List<UserInf>>().set(1,userList);
|
}
|
|
}
|