package com.ruoyi.management.controller;
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.utils.page.PageDTO;
|
import com.ruoyi.common.security.service.TokenService;
|
import com.ruoyi.management.domain.SlStoreManagement;
|
import com.ruoyi.management.domain.dto.StoreManagementQuery;
|
import com.ruoyi.management.domain.vo.SlStoreManagementInventoryVO;
|
import com.ruoyi.management.service.SlStoreManagementService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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;
|
|
import javax.annotation.Resource;
|
|
@RestController
|
@RequestMapping("/sl-management-inventory")
|
@Api(value = "库存管理接口", tags = "库存管理接口", description = "库存管理接口")
|
public class SlManagementInventoryController {
|
|
@Resource
|
private SlStoreManagementService slStoreManagementService;
|
@Resource
|
private TokenService tokenService;
|
@PostMapping("/getManagementInventoryList")
|
@ApiOperation(value = "分页获取库存管理")
|
public R<PageDTO<SlStoreManagementInventoryVO>> getManagementInventoryList(@RequestBody StoreManagementQuery storeManagementQuery) {
|
tokenService.getLoginUser();
|
return R.ok(slStoreManagementService.getManagementInventoryList(storeManagementQuery));
|
}
|
}
|