package com.fjhx.controller.supplier;

import com.fjhx.params.supplier.SupplierKeepVo;
import com.fjhx.service.supplier.SupplierKeepService;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
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 java.util.List;

/**
 * <p>
 * 供应商维护记录 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2022-08-08
 */
@RestController
@RequestMapping("/supplierKeep")
public class SupplierKeepController {

    @Autowired
    private SupplierKeepService supplierKeepService;

    /**
     * 供应商维护记录列表
     */
    @PostMapping("/details")
    public R details(@RequestBody SupplierKeepVo supplierKeepVo) {
        List<SupplierKeepVo> result = supplierKeepService.getDetails(supplierKeepVo.getId());
        return R.success(result);
    }

}

