lyh
9 小时以前 78aeb8a8c97a884a640d46755e4be706bde48b7d
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.lxzn.api.nc;
 
import com.lxzn.framework.domain.nc.DocInfo;
import com.lxzn.framework.domain.nc.request.DocInfoQueryRequest;
import com.lxzn.framework.domain.nc.request.DocInfoUploadRequest;
import com.lxzn.framework.model.response.QueryListResponseResult;
import com.lxzn.framework.model.response.QueryPageResponseResult;
import com.lxzn.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
@Api(value = "文档管理", description = "NC文档,其他文档管理")
public interface DocInfoControllerApi {
    @ApiOperation("添加文档")
    ResponseResult addDocInfo(MultipartFile file, DocInfoUploadRequest docInfo);
 
    @ApiOperation("编辑文档基本信息")
    ResponseResult editDocInfo(String id, DocInfo docInfo);
 
    @ApiOperation("删除文档接口")
    ResponseResult deleteDocInfo(String id);
 
    @ApiOperation("文档入库")
    ResponseResult pushDocFile(String id, MultipartFile file);
 
    @ApiOperation("文档出库")
    ResponseResult pullDocFile(HttpServletRequest request, HttpServletResponse response, String id);
 
    @ApiOperation("取消出库")
    ResponseResult cancelPullDocInfo(String id);
 
    @ApiOperation("文档发布")
    ResponseResult publishDocInfo(String id);
 
    @ApiOperation("文档重发布")
    ResponseResult republishDocInfo(String id);
 
    @ApiOperation("文档归档")
    ResponseResult pigeonholeDocInfo(String id);
 
    @ApiOperation("分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页最大记录数", required=true, paramType="path",dataType="int")
    })
    QueryPageResponseResult<DocInfo> findPageList(int page, int size, DocInfoQueryRequest docQuery);
 
    @ApiOperation("分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页最大记录数", required=true, paramType="path",dataType="int")
    })
    QueryPageResponseResult<DocInfo> findPageListByDevice(int page, int size, DocInfoQueryRequest docQuery);
 
 
    @ApiOperation("文档预览")
    QueryListResponseResult previewDocFile(String id);
 
    @ApiOperation("pdf文档预览")
    ResponseResult previewPdfDocFile(HttpServletRequest request, HttpServletResponse response, String id);
 
    @ApiOperation("查询工序下的文档列表")
    QueryListResponseResult<DocInfo> findList(DocInfoQueryRequest docQuery);
 
    @ApiOperation("批量删除文档接口")
    ResponseResult batchRemoveDocInfo(String[] docIds);
 
    @ApiOperation("文档下载")
    ResponseResult downloadDocFile(HttpServletRequest request, HttpServletResponse response, String id);
}