Search in sources :

Example 1 with WarehouseShelf

use of com.whoiszxl.entity.WarehouseShelf in project shopzz by whoiszxl.

the class WarehouseShelfController method save.

@SaCheckLogin
@PostMapping
@ApiOperation(value = "新增仓库货架", notes = "新增仓库货架", response = ResponseResult.class)
public ResponseResult<Boolean> save(@RequestBody WarehouseShelfSaveCommand warehouseShelfSaveCommand) {
    WarehouseShelf warehouse = dozerUtils.map(warehouseShelfSaveCommand, WarehouseShelf.class);
    boolean saveFlag = warehouseShelfService.save(warehouse);
    return ResponseResult.buildByFlag(saveFlag);
}
Also used : WarehouseShelf(com.whoiszxl.entity.WarehouseShelf) SaCheckLogin(cn.dev33.satoken.annotation.SaCheckLogin) ApiOperation(io.swagger.annotations.ApiOperation)

Example 2 with WarehouseShelf

use of com.whoiszxl.entity.WarehouseShelf in project shopzz by whoiszxl.

the class WarehouseShelfController method update.

@SaCheckLogin
@PutMapping
@ApiOperation(value = "更新仓库货架", notes = "更新仓库货架", response = ResponseResult.class)
public ResponseResult<Boolean> update(@RequestBody WarehouseShelfUpdateCommand warehouseShelfUpdateCommand) {
    WarehouseShelf warehouse = dozerUtils.map(warehouseShelfUpdateCommand, WarehouseShelf.class);
    boolean updateFlag = warehouseShelfService.updateById(warehouse);
    return ResponseResult.buildByFlag(updateFlag);
}
Also used : WarehouseShelf(com.whoiszxl.entity.WarehouseShelf) SaCheckLogin(cn.dev33.satoken.annotation.SaCheckLogin) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

SaCheckLogin (cn.dev33.satoken.annotation.SaCheckLogin)2 WarehouseShelf (com.whoiszxl.entity.WarehouseShelf)2 ApiOperation (io.swagger.annotations.ApiOperation)2