ShipmentApi.java
1.08 KB
package com.huaheng.api.general.controller;
import com.huaheng.api.general.domain.ShipmentDomain;
import com.huaheng.api.general.service.ShipmentApiService;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("/api/shipmentApi")
@Api(tags = {"出库单接口"}, value = "出库单接口shipment")
public class ShipmentApi {
@Resource
private ShipmentApiService shipmentApiService;
/**
* 同步出库单
*/
@Log(title = "出库单添加", action = BusinessType.INSERT)
@PostMapping("/shipment")
@ApiOperation("出库单添加公共接口")
@ResponseBody
public AjaxResult Shipment(@RequestBody ShipmentDomain shipmentDomain)
{
AjaxResult ajaxResult = shipmentApiService.shipment(shipmentDomain);
return ajaxResult;
}
}