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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package jnpf.base;
 
import jnpf.base.entity.SystemEntity;
import jnpf.base.fallback.SystemApiFallback;
import jnpf.base.model.AppAuthorizationModel;
import jnpf.base.model.base.SystemApiByIdsModel;
import jnpf.base.model.base.SystemApiListModel;
import jnpf.base.model.base.SystemApiModel;
import jnpf.permission.model.user.WorkHandoverModel;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
/**
 * 调用系统菜单Api
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2021-03-24
 */
@FeignClient(name = FeignName.SYSTEM_SERVER_NAME, fallback = SystemApiFallback.class, path = "/System")
public interface SystemApi {
 
    @GetMapping("/getList")
    List<SystemEntity> getList();
 
    /**
     * 获取列表
     *
     * @param model
     * @return
     */
    @PostMapping("/getList")
    List<SystemEntity> getList(@RequestBody SystemApiListModel model);
 
    /**
     * 通过ids获取系统信息
     *
     * @param model@return
     */
    @PostMapping("/getListByIds")
    List<SystemEntity> getListByIds(@RequestBody SystemApiByIdsModel model);
 
    /**
     * 通过id获取系统信息
     *
     * @param systemId
     * @return
     */
    @GetMapping("/getInfoById")
    SystemEntity getInfoById(@RequestParam("systemId") String systemId);
 
    /**
     * 通过id获取系统信息
     *
     * @param enCode
     * @return
     */
    @GetMapping("/getInfoByEnCode")
    SystemEntity getInfoByEnCode(@RequestParam("enCode") String enCode);
 
    @PostMapping("/findSystemAdmin")
    List<SystemEntity> findSystemAdmin(@RequestBody SystemApiModel model);
 
    /**
     * 获取列表
     *
     * @return
     */
    @PostMapping("/getListAll")
    List<SystemEntity> getListAll();
 
    @PostMapping("/addCommonWordsNum")
    void addCommonWordsNum(@RequestBody String commonWordsText);
 
 
    /**
     * 获取当前用户创建应用所有菜单id
     *
     * @param userId
     * @return
     */
    @GetMapping("/getListByCreUser")
    List<SystemEntity> getListByCreUser(@RequestParam("userId") String userId);
 
    /**
     * 获取当前用户有编辑权限的应用
     *
     * @param userId
     * @return
     */
    @GetMapping("/getAuthListByUser")
    List<SystemEntity> getAuthListByUser(@RequestParam("userId") String userId, @RequestParam(value = "isStand")Boolean isStand);
 
    /**
     * 工作交接-交接应用
     *
     * @param workHandoverModel
     */
    @PostMapping("/workHandover")
    void workHandover(@RequestBody WorkHandoverModel workHandoverModel);
 
    @PostMapping("/changeSystemAuthorizion")
    void changeSystemAuthorizion(@RequestBody AppAuthorizationModel model);
}