package com.nantian.cloud.demo.controller;


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

@RestController
@Api(value = "demo", tags = "测试")
@RequestMapping("/hello")
public class Test1Controller {

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



        return "ok 张三";
    }
}
