package com.bonus.canteen.core.supply.controller;

import com.bonus.canteen.core.supply.po.AllocDrpModel;
import com.bonus.canteen.core.supply.service.DrpMetadataService;
import com.bonus.common.core.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
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;

@RestController
@RequestMapping({"/api/v2/drp/metadata"})
@Api(
   value = "出入库配置",
   tags = {"出入库配置"}
)
public class MetadataController {
//   private static final Logger log = LoggerFactory.getLogger(MetadataController.class);
//   @Autowired
//   @Lazy
//   private DrpMetadataService drpMetadataService;
//
//   @ApiOperation("查询配置")
//   @PostMapping({"/query"})
//   public AjaxResult queryMetadata(@RequestBody Long request) {
//      return AjaxResult.success(drpMetadataService.queryMetadata(request));
//   }
//
//   @ApiOperation("保存配置")
//   @PostMapping({"/save"})
//   public AjaxResult saveMetadata(@RequestBody AllocDrpModel content) {
//      this.drpMetadataService.saveMetadata(content);
//      return AjaxResult.success();
//   }
//
//   @ApiOperation("保存供应商评分周期配置")
//   @PostMapping({"/save/supplier-score/period"})
//   public AjaxResult saveSupplierScorePeriod(@RequestBody DrpSupplierScorePeriodDTO  content) {
//      this.drpMetadataService.saveSupplierScorePeriod(content);
//      return AjaxResult.success();
//   }
//
//   @ApiOperation("查询供应商评分周期")
//   @PostMapping({"/query/supplier-score/period"})
//   public AjaxResult querySupplierScorePeriod(@RequestBody Long request) {
//      return AjaxResult.success(this.drpMetadataService.querySupplierScorePeriod(request));
//   }
}
