ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
package jnpf.portal.service;
 
import jnpf.base.entity.SystemEntity;
import jnpf.base.service.SuperService;
import jnpf.permission.entity.UserEntity;
import jnpf.portal.entity.PortalDataEntity;
import jnpf.portal.model.*;
 
import java.util.List;
 
/**
 * 门户数据接口
 * <p>
 * 后期门户模板数据,将会以platform再做区分,
 * 故将formData抽离成单独的表
 *
 * @author YanYu
 * @since 2023-04-19
 */
public interface PortalDataService extends SuperService<PortalDataEntity> {
 
 
    String getModelDataForm(PortalModPrimary primary) throws Exception;
 
    void releaseModule(ReleaseModel releaseModel, String portalId) throws Exception;
 
    void deleteAll(String portalId);
 
    /**
     * 创建或更新门户自定义信息
     */
    void createOrUpdate(PortalCustomPrimary primary, String formData) throws Exception;
 
    /**
     * 创建或更新门户模板信息
     */
    void createOrUpdate(PortalModPrimary primary, String formData) throws Exception;
 
    /**
     * 创建或更新门户发布信息
     */
    void createOrUpdate(PortalReleasePrimary primary, String formData) throws Exception;
 
    /**
     * 获取门户显示信息
     *
     * @param menuId   菜单id
     * @param platform 平台:app/pc
     */
    PortalInfoAuthVO getDataFormView(String menuId, String platform) throws Exception;
 
    /**
     * 设置默认门户
     */
    void setCurrentDefault(SystemEntity systemEntity, UserEntity userEntity, String platform, String portalId);
 
    /**
     * 获取当前系统默认门户
     *
     * @param systemId
     * @param userId
     * @param platform
     * @return
     */
    String getCurrentDefault(List<String> authPortalIds, String systemId, String userId, String platform);
 
    List<PortalListVO> selectorMenu();
}