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


import com.yh.saas.plugin.yiliangyiyun.entity.ReceivingUser;
import com.yh.saas.plugin.yiliangyiyun.service.IReceivingUserService;
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-08-19
 */
@RestController
@RequestMapping("/receivingUser")
public class ReceivingUserController {
    @Autowired
    private IReceivingUserService receivingUserService;
    /**
     * 删除
     *
     * @param example
     * @return
     */
    @PostMapping("/deleteInfo")
    public void deleteInfo(@RequestBody ReceivingUser example) {
        receivingUserService.deleteInfo(example.getId());
    }

}

