package com.newfiber.api.pc.controller; import com.newfiber.api.core.annotation.SysLog; import com.newfiber.api.core.commons.ResultCode; import com.newfiber.api.core.commons.ResultObj; import com.newfiber.api.pc.model.entity.LedInfo; import com.newfiber.api.pc.service.LedInfoService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @description: Led屏幕信息获取控制层 * @author: 张鸿志 * @date: 2021/1/6 16:32 * @version: v1.0 */ @RestController @RequestMapping("/led") @Api(value = "LedInfoController",tags = "Led屏幕信息获取控制层") public class LedInfoController { @Autowired private LedInfoService ledInfoService; @PostMapping("/queryAll") @ApiOperation("查询所有的LED屏信息") @SysLog(actionType = "4",value = "查询所有的LED屏信息") public ResultObj<List<LedInfo>> queryAll(){ List<LedInfo> ledInfos = ledInfoService.selectList(null); return new ResultObj<>(ResultCode.OK,ledInfos); } }