package com.zcloud.fire.check.web;


import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.jjb.saas.framework.auth.model.SSOUser;
import com.jjb.saas.framework.auth.utils.AuthContext;
import com.zcloud.fire.check.api.FireCheckRecordDeviceServiceI;
import com.zcloud.fire.check.dto.FireCheckRecordDeviceAddCmd;
import com.zcloud.fire.check.dto.FireCheckRecordDevicePageQry;
import com.zcloud.fire.check.dto.FireCheckRecordDeviceUpdateCmd;
import com.zcloud.fire.check.dto.clientobject.FireCheckRecordDeviceCO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;

/**
 * web-adapter
 *
 * @Author zhaokai
 * @Date 2025-12-12 11:10:02
 */
@Api(tags = "消防点位检查记录消防器材表")
@RequestMapping("/${application.gateway}/fireCheckRecordDevice")
@RestController
@AllArgsConstructor
public class FireCheckRecordDeviceController {
    private final FireCheckRecordDeviceServiceI fireCheckRecordDeviceService;



    @ApiOperation("打回修改")
    @PostMapping("/edit")
    public SingleResponse edit(@Validated @RequestBody FireCheckRecordDeviceUpdateCmd fireCheckRecordDeviceUpdateCmd) {
        fireCheckRecordDeviceService.edit(fireCheckRecordDeviceUpdateCmd);
        return SingleResponse.buildSuccess();
    }
}

