package com.nantian.cloud.demo.controller;


import com.nantian.sc.cloud.common.security.annotation.Inner;
import com.nantian.sc.cloud.common.security.util.SecurityUtils;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
@Api(value = "demo2", tags = "测试")
@RequestMapping("/hello2")
public class Test1Controller2 {

    @Inner(value = false)
    @GetMapping("/{info}")
    public String info() {
        //String username = SecurityUtils.getUser().getUsername();



        return "ok 张三";
    }
}
