whycxzp
2021-01-08 d04fed7dfceee61b5dd6ba10f23ff16c80458f47
src/main/java/com/whyc/controller/UPSCommController.java
@@ -6,6 +6,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -25,6 +26,7 @@
    @GetMapping("status")
    @ApiOperation(value = "获取UPS状态")
    @RequiresRoles("admin")
    public Response<UPSComm> getStatus(){
        return service.getStauts();
    }