| | |
| | | package com.dy.pmsGlobal.global; |
| | | |
| | | |
| | | import com.dy.common.aop.SsoPowerAop; |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.pmsGlobal.pojoBa.BaSysSet; |
| | | import com.dy.pmsGlobal.pojoBa.BaUser; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @return 唯一系统设置 |
| | | */ |
| | | //@GetMapping(path = "one", consumes = MediaType.TEXT_PLAIN_VALUE)//指前端向后传的参数类型 |
| | | @GetMapping(path = "one") |
| | | @GetMapping(path = "single") |
| | | //@SsoAop() //只有登录验证,没有权限验证 |
| | | @SsoPowerAop(power = "-1") //登录与权限同时验证 |
| | | public BaseResponse<BaUser> single() { |
| | | public BaseResponse<BaSysSet> single() { |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectSingle()); |
| | | } catch (Exception e) { |