package com.bonus.bracelet.controller;

import com.bonus.bracelet.service.IConsControlService;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.entity.bracelet.BraceletParamsDto;
import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @className:ConsControlController
 * @author:cwchen
 * @date:2024-08-08-9:56
 * @version:1.0
 * @description:施工管控
 */
@RestController
@RequestMapping("/consControl/")
@Slf4j
public class ConsControlController {

    @Resource(name = "IConsControlService")
    private IConsControlService service;

    @GetMapping("getBallDeviceLists")
    @SysLog(title = "施工管控", businessType = OperaType.QUERY, logType = 0, module = "施工管控->实时监控", details = "实时监控")
    public AjaxResult getBallDeviceLists(BraceletParamsDto dto){
        return service.getBallDeviceLists(dto);
    }

}
