package com.sckw.contract.controller;

import com.sckw.contract.api.model.dto.req.LogisticsScoreDetailFeignDto;
import com.sckw.contract.service.IKwcContractLogisticsScoreService;
import com.sckw.core.web.response.HttpResult;
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;

/**
 * 物流企业评分Controller
 *
 * @author tangyishan
 * @date 2025-12-05
 */
@RestController
@RequestMapping("/api/logisticsScore")
public class KwcContractLogisticsScoreApiController {
    @Autowired
    private IKwcContractLogisticsScoreService kwcContractLogisticsScoreService;
    /**
     * 系统修改物流企业评分
     */
    @PostMapping("/updateLogisticsScore")
    public HttpResult updateLogisticsScore(@Validated @RequestBody LogisticsScoreDetailFeignDto detailDto) {
        return HttpResult.ok(kwcContractLogisticsScoreService.updateLogisticsScoreBySystem(detailDto));
    }
}
