package com.yh.saas.plugin.yiliangyiyun.controller;


import com.yh.saas.plugin.yiliangyiyun.entity.CostManagementInfo;
import com.yh.saas.plugin.yiliangyiyun.service.ICostManagementInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 成本管理信息 前端控制器
 * </p>
 *
 * @author Gdc
 * @since 2021-10-09
 */
@RestController
@RequestMapping("/costManagementInfo")
public class CostManagementInfoController {


    @Autowired
    private ICostManagementInfoService costManagementInfoService;
    /**
     * 列表
     * @param costManagementInfo
     * @return
     */
    @GetMapping("/selectCostManagementInfo")
    public List<CostManagementInfo> selectCostManagementInfo(CostManagementInfo costManagementInfo) {
        return costManagementInfoService.selectCostManagementInfo(costManagementInfo);
    }


    /**
     * 编辑信息
     * @param costManagementInfo
     * @return
     */
    @PostMapping("/api/editCostManagementInfo")
    public String editCostManagementInfo(@RequestBody CostManagementInfo costManagementInfo){
        return costManagementInfoService.editCostManagementInfo(costManagementInfo);
    }
}

