无关风月
2024-09-03 56dfe0d4bf81262622a1919cceb2b039fd356209
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.ruoyi.management.controller;
 
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.security.service.TokenService;
import com.ruoyi.management.domain.SlStoreManagementImg;
import com.ruoyi.management.domain.dto.StoreManagementDTO;
import com.ruoyi.management.domain.dto.StoreManagementimgDTO;
import com.ruoyi.management.domain.dto.StoreManagementimgQuery;
import com.ruoyi.management.service.SlStoreManagementImgService;
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;
 
/**
 * <p>
 * 仓库对应平面图 前端控制器
 * </p>
 *
 * @author hjl
 * @since 2024-06-25
 */
@RestController
@RequestMapping("/sl-store-management-img")
@Api(value = "仓库对应平面图接口", tags = "仓库对应平面图接口", description = "仓库对应平面图接口")
public class SlStoreManagementImgController {
    @Resource
    private TokenService tokenService;
    @Resource
    private SlStoreManagementImgService slStoreManagementImgService;
    @PostMapping("/addStoreManagementimg")
    @ApiOperation(value = "添加/修改仓库管理平面圖")
    public R addStoreManagementimg(@RequestBody StoreManagementimgDTO storeManagementimgDTO) {
        tokenService.getLoginUser();
        return R.ok(slStoreManagementImgService.addStoreManagementimg(storeManagementimgDTO));
    }
 
    @PostMapping("/getStoreManagementimgOne")
    @ApiOperation(value = "获取仓库管理平面圖")
    public R<SlStoreManagementImg> getStoreManagementimgOne(@RequestBody StoreManagementimgQuery storeManagementimgQuery) {
        tokenService.getLoginUser();
        return R.ok(slStoreManagementImgService.getStoreManagementimgOne(storeManagementimgQuery));
    }
 
}