package com.njcn.device.pms.controller.majornetwork;

import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.enums.common.LogEnum;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.common.utils.HttpResultUtil;
import com.njcn.device.pms.pojo.param.RStatDevSignalParam;
import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam;
import com.njcn.device.pms.pojo.vo.RStatDevSignalVO;
import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO;
import com.njcn.device.pms.service.majornetwork.RStatDevSignalDService;
import com.njcn.web.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Title RStatDevSignalDController
 * @Package com.njcn.device.pms.controller.majornetwork
 * @Author jianghaifei
 * @Date 2022-11-11 16:04
 * @Version V1.0
 */
@RestController
@Api(tags = "终端通信管理")
@RequiredArgsConstructor
@RequestMapping("/rStatDevSignal")
public class RStatDevSignalDController extends BaseController {

    private final RStatDevSignalDService rStatDevSignalDService;

    @PostMapping("getRStatDevSignalList")
    @OperateInfo(info = LogEnum.BUSINESS_COMMON)
    @ApiOperation("终端通信管理台账")
    public HttpResult<List<RStatDevSignalVO>> getRStatDevSignalList(@RequestBody RStatDevSignalParam rStatDevSignalParam) {
        String methodDescribe = getMethodDescribe("getRStatDevSignalList");
        List<RStatDevSignalVO> list = rStatDevSignalDService.getRStatDevSignalList(rStatDevSignalParam);
        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
    }
}
