郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
package com.gkhy.safePlatform.account.service;
 
import com.gkhy.safePlatform.account.model.dto.req.AppAddReqDTO;
import com.gkhy.safePlatform.account.model.dto.req.AppModReqDTO;
import com.gkhy.safePlatform.account.model.dto.resp.AppVersionRespDTO;
import com.gkhy.safePlatform.account.model.dto.resp.ObjectItemRespDTO;
import com.gkhy.safePlatform.account.model.query.AppVersionPageQuery;
import com.gkhy.safePlatform.commons.co.ContextCacheUser;
import com.gkhy.safePlatform.commons.query.PageQuery;
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
 
import java.util.List;
 
public interface AppVersionService {
 
    /**
    * @Description: 获取 app 上传地址和 objectName
    */
    ObjectItemRespDTO getAppPresignedUrl(ContextCacheUser currentUser, String filename);
 
    /**
    * @Description: 新增 app 版本
    */
    void addAppVersion(ContextCacheUser currentUser, AppAddReqDTO reqDTO);
 
    /**
    * @Description: 修改 app 版本
    */
    void modAppVersion(ContextCacheUser currentUser, AppModReqDTO reqDTO);
 
    /**
    * @Description: 删除 app 版本
    */
    void delAppVersion(ContextCacheUser currentUser, Long id);
 
    /**
    * @Description: 分页
    */
    SearchResultVO<List<AppVersionRespDTO>> listAppVersionByPage(ContextCacheUser currentUser, PageQuery<AppVersionPageQuery> pageQuery);
 
 
    /**
    * @Description: 获取 appType 的最新版本
    */
    AppVersionRespDTO getLastestAppRelease(ContextCacheUser currentUser, Byte appType);
}