|
|
@@ -19,10 +19,12 @@ import com.yy.basedevelop.common.data.BaseReturnDto;
|
|
|
|
|
|
import com.yy.basedevelop.common.http.config.RedisService;
|
|
|
|
|
|
+import com.yy.basedevelop.common.http.config.TokenUtil;
|
|
|
import com.yy.basedevelop.common.util.DictUtil;
|
|
|
import com.yy.basedevelop.common.util.ExcelUtil;
|
|
|
import com.yy.basedevelop.common.util.HttpClientUtils;
|
|
|
import com.yy.basedevelop.common.util.OSSUtil;
|
|
|
+import com.yy.basedevelop.dto.LoginUser;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -60,7 +62,16 @@ public class DemoController {
|
|
|
@Autowired
|
|
|
private OSSUtil oSSUtil;
|
|
|
|
|
|
+ @GetMapping("aa")
|
|
|
+ public MyDto aa() {
|
|
|
|
|
|
+ sv.savee();
|
|
|
+ LoginUser u= TokenUtil.getUser();
|
|
|
+ if(u==null){
|
|
|
+ throw new RuntimeException("没有找到用户");
|
|
|
+ }
|
|
|
+ return MyDto.success(u);
|
|
|
+ }
|
|
|
|
|
|
@PostMapping("listdict")
|
|
|
public TestDemoDto listdict(@RequestBody TestDemoDto dto) {
|