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 getList(); /** * 获取列表 * * @param model * @return */ @PostMapping("/getList") List getList(@RequestBody SystemApiListModel model); /** * 通过ids获取系统信息 * * @param model@return */ @PostMapping("/getListByIds") List 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 findSystemAdmin(@RequestBody SystemApiModel model); /** * 获取列表 * * @return */ @PostMapping("/getListAll") List getListAll(); @PostMapping("/addCommonWordsNum") void addCommonWordsNum(@RequestBody String commonWordsText); /** * 获取当前用户创建应用所有菜单id * * @param userId * @return */ @GetMapping("/getListByCreUser") List getListByCreUser(@RequestParam("userId") String userId); /** * 获取当前用户有编辑权限的应用 * * @param userId * @return */ @GetMapping("/getAuthListByUser") List 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); }