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


import com.yh.saas.plugin.yiliangyiyun.entity.FillingDetailInfo;
import com.yh.saas.plugin.yiliangyiyun.service.IFillingDetailInfoService;
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;

/**
 * <p>
 * 记录加油明细 前端控制器
 * </p>
 *
 * @author Gdc
 * @since 2022-06-24
 */
@RestController
@RequestMapping("/fillingDetailInfo")
public class FillingDetailInfoController {
    @Autowired
    private IFillingDetailInfoService fillingDetailInfoService;
    /**
     * 添加明细
     *
     * @param fillingDetailInfo
     * @return
     */
    @PostMapping("/api/addFillingDetail")
    public String addFillingDetail(@RequestBody FillingDetailInfo fillingDetailInfo) {
        return fillingDetailInfoService.addFillingDetail(fillingDetailInfo);
    }
}

