package com.corewing.app.modules.qc;

import com.corewing.app.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Api(tags = "QC配置")
@RestController
@RequestMapping("/api/qc/config")
public class QcConfigController {

    @ApiOperation("获取测试配置")
    @GetMapping("/test-params")
    public Result<Map<String, Object>> getTestParams(@RequestParam("productType") String productType) {
        Map<String, Object> params = new HashMap<>();
        // 后续可根据 productType 返回不同的测试参数/阈值
        params.put("productType", productType);
        return Result.success(params);
    }
}
