package jnpf.base;
|
|
import jnpf.base.entity.ModuleButtonEntity;
|
import jnpf.base.fallback.ModuleButtonApiFallback;
|
import jnpf.base.model.button.ModuleButtonModel;
|
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 java.util.List;
|
|
/**
|
* @author :JNPF开发平台组
|
* @version: V3.1.0
|
* @copyright 引迈信息技术有限公司
|
* @date :2022/4/7 14:37
|
*/
|
@FeignClient(name = FeignName.SYSTEM_SERVER_NAME , fallback = ModuleButtonApiFallback.class, path = "/ModuleButton")
|
public interface ModuleButtonApi {
|
|
@GetMapping("/getList")
|
List<ModuleButtonEntity> getList();
|
|
/**
|
* 通过moduleIds获取按钮权限
|
*
|
|
* @return
|
*/
|
@PostMapping("/getListByModuleId")
|
List<ModuleButtonEntity> getListByModuleIds(@RequestBody ModuleButtonModel moduleButtonModel);
|
|
/**
|
* 通过moduleIds获取按钮权限
|
*
|
* @param ids
|
* @return
|
*/
|
@PostMapping("/getListByIds")
|
List<ModuleButtonEntity> getListByIds(@RequestBody List<String> ids);
|
|
}
|