|
@ -9,8 +9,10 @@ import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.dto.OperMenuDTO; |
|
|
import com.epmet.dto.OperMenuDTO; |
|
|
|
|
|
import com.epmet.dto.OperUserDTO; |
|
|
import com.epmet.dto.form.UserInfoDto; |
|
|
import com.epmet.dto.form.UserInfoDto; |
|
|
import com.epmet.excel.OperMenuExcel; |
|
|
import com.epmet.excel.OperMenuExcel; |
|
|
|
|
|
import com.epmet.feign.EpmetUserFeignClient; |
|
|
import com.epmet.service.OperMenuService; |
|
|
import com.epmet.service.OperMenuService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
@ -98,4 +100,12 @@ public class OperMenuController { |
|
|
Set<String> set = operMenuService.getUserPermissions(userInfo); |
|
|
Set<String> set = operMenuService.getUserPermissions(userInfo); |
|
|
return new Result<Set<String>>().ok(set); |
|
|
return new Result<Set<String>>().ok(set); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private EpmetUserFeignClient epmetUserFeignClient; |
|
|
|
|
|
@GetMapping("test") |
|
|
|
|
|
public Result<OperUserDTO> test(){ |
|
|
|
|
|
System.out.println("=============================================="); |
|
|
|
|
|
return epmetUserFeignClient.info("1"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|