yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
52
53
54
55
56
package com.qianwen.smartman.modules.dnc.controller;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.google.common.collect.Lists;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import java.util.stream.Collectors;
import com.qianwen.core.boot.ctrl.BladeController;
import com.qianwen.core.mp.support.Query;
import com.qianwen.core.oss.model.BladeFile;
import com.qianwen.core.scanner.modular.annotation.GetResource;
import com.qianwen.core.scanner.modular.annotation.PostResource;
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
import com.qianwen.core.secure.annotation.PreAuth;
import com.qianwen.core.tool.api.R;
import com.qianwen.smartman.modules.dnc.service.IDncArtBagLogService;
import com.qianwen.smartman.modules.dnc.vo.DncArtBagLogPageVO;
import com.qianwen.smartman.modules.dnc.vo.DncArtBagLogVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
@Api(value = "工艺包日志管理", tags = {"工艺包日志管理"})
@ApiResource({"blade-dnc/dnc-art-bag-log"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/controller/DncArtBagLogController.class */
public class DncArtBagLogController extends BladeController {
    private final IDncArtBagLogService dncArtBagLogService;
 
    public DncArtBagLogController(final IDncArtBagLogService dncArtBagLogService) {
        this.dncArtBagLogService = dncArtBagLogService;
    }
 
    @PreAuth
    @PostResource({"/page"})
    @ApiOperation("工艺包日志分页")
    public R<IPage<DncArtBagLogVO>> page(@RequestBody DncArtBagLogPageVO dncArtBagLogPageVO, Query query) {
        return R.data(this.dncArtBagLogService.page(query, dncArtBagLogPageVO));
    }
 
    @PreAuth
    @GetResource({"/list-file-class"})
    @ApiOperation("文件类型")
    public R<List<String>> listFileClass() {
        return R.data(Lists.newArrayList((Iterable) this.dncArtBagLogService.listFileClass().stream().map((v0) -> {
            return v0.toLowerCase();
        }).collect(Collectors.toSet())));
    }
 
    @PreAuth
    @PostResource({"/export"})
    @ApiOperation("工艺包日志导出")
    public R<BladeFile> export(@RequestBody DncArtBagLogPageVO dncArtBagLogPageVO) {
        return R.data(this.dncArtBagLogService.export(dncArtBagLogPageVO));
    }
}