| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.Battinf; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.service.BattGroupStationUserService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.swing.*; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("BattGroupUser") |
| | | @Api(tags = "电池组|站点-用户") |
| | | @Api(tags = "用户管理-电池组|站点-用户") |
| | | public class BattGroupStationUserController { |
| | | |
| | | @Autowired |
| | |
| | | return new Response<List<UserInf>>().set(1,userList); |
| | | } |
| | | |
| | | @GetMapping("stationInfoList") |
| | | @ApiOperation(tags = "在线监测-设备状态查询",value = "机房名称查询") |
| | | public Response<List<Battinf>> getStationInfoList(){ |
| | | Long uId = ActionUtil.getUser().getUId(); |
| | | List<Battinf> list = service.getStationInfoList(uId); |
| | | return new Response<List<Battinf>>().set(1,list); |
| | | } |
| | | |
| | | } |