package com.kxs.system.biz.controller;

import cn.hutool.core.util.StrUtil;
import com.kxs.common.core.constant.SecurityConstants;
import com.kxs.common.core.util.R;
import com.kxs.common.security.annotation.Inner;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 登录控制器
 *
 * @author 没秃顶的码农
 * @date 2023/11/03
 */
@RestController
@AllArgsConstructor
@RequestMapping("/login")
@Tag(description = "login", name = "登录管理")
public class LoginController {

	private final RedisTemplate<String, Object> redisTemplate;

	private static final Integer DEFAULT_IMAGE_WIDTH = 100;

	private static final Integer DEFAULT_IMAGE_HEIGHT = 40;

	@GetMapping("/test")
	@Inner(value = false)
	 public R getCode(@RequestParam Map randomStr){
		return R.ok(randomStr);
	 }

	@PostMapping("/testPost")
	@Inner(value = false)
	 public R testPost(@RequestBody Map randomStr){
		return R.ok(randomStr);
	 }

}
