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


import com.yh.saas.plugin.yiliangyiyun.entity.DriverPayeeInfo;
import com.yh.saas.plugin.yiliangyiyun.service.IDriverPayeeInfoService;
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 Gongdc
 * @since 2021-05-29
 */
@RestController
@RequestMapping("/driverPayeeInfo")
public class DriverPayeeInfoController {

    @Autowired
    private IDriverPayeeInfoService driverPayeeInfoService;
    /**
     * 删除收款人信息
     * @param example
     */
    @PostMapping("/api/deleteDriverPayee")
    public void deleteDriverPayee(@RequestBody DriverPayeeInfo example){
        driverPayeeInfoService.deleteDriverPayee(example.getId());
    }
}

