| | |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | public Result selectDevicePrincipal() { |
| | | return Result.success(deviceService.selectDevicePrincipal()); |
| | | } |
| | | |
| | | @ApiOperation(value = "通过设备分类获取设备列表") |
| | | @PostMapping("/selectDeviceByCategory") |
| | | @ValueAuth |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "category", value = "设备分类"), |
| | | }) |
| | | public Result selectDeviceByCategory(String category) { |
| | | return Result.success(deviceService.selectDeviceByCategory(category)); |
| | | } |
| | | } |
| | | |