package com.zhongshu.card.server.core.controller.projectAbout;


import com.github.microservice.models.project.ProjectConfigQueryParam;
import com.github.microservice.net.ResultContent;
import com.zhongshu.card.server.core.service.projectAbout.ProjectConfigService;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
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;

@Slf4j
@RestController
@RequestMapping("openAPI/projectConfig/v1")
@Tag(name = "项目配置")
@Hidden
public class ProjectConfigOpenApiController {

    @Autowired
    private ProjectConfigService projectConfigService;

    /**
     * 设备上线通知
     */
    @Operation(summary = "查询项目的配置信息")
    @PostMapping(value = "iotQueryProjectConfig", consumes = MediaType.APPLICATION_JSON_VALUE)
    public ResultContent iotQueryProjectConfig(@RequestBody ProjectConfigQueryParam param) {
        return projectConfigService.iotQueryProjectConfig(param);
    }

}
