package vip.xiaonuo.quality.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
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 vip.xiaonuo.common.pojo.CommonResult;
import vip.xiaonuo.quality.entity.QualityManufacturer;
import vip.xiaonuo.quality.entity.QualityMiddleware;
import vip.xiaonuo.quality.param.QualityManufacturerParam;
import vip.xiaonuo.quality.param.QualityMiddlewareParam;
import vip.xiaonuo.quality.service.IQualityMiddlewareService;

import java.util.List;

/**
 * <p>
 * 中间体质量趋势 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-11
 */
@RestController
@Api(tags = "中间体质量趋势")
@ApiSupport(author = "wang", order = 1)
@Validated
public class QualityMiddlewareController {

    @Autowired
    private IQualityMiddlewareService middlewareService;

    @PostMapping("/quality-middleware/getList")
    @ApiOperationSupport(order = 1)
    @ApiOperation("中间体质量趋势分析")
    public CommonResult<List<QualityMiddleware>> getList(@RequestBody QualityMiddlewareParam middlewareParam) {
        return CommonResult.data(middlewareService.getList(middlewareParam));
    }
}
