package com.github.imloama.api.base;


import com.github.imloama.api.utils.RequestUtil;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Data
public abstract class BaseController {

    @Autowired
    private HttpServletRequest request;

    @Autowired
    private HttpServletResponse response;

    @Autowired
    private StringRedisTemplate redisTemplate;

    public String getStrParam(String key){
        return RequestUtil.getStrParam(this.request, key);
    }


}

@@ -382,37 +382,39 @@
 Autowired%0A    pr
-ivate
+otected
  HttpServletRequ
@@ -448,21 +448,23 @@
 d%0A    pr
-ivate
+otected
  HttpSer
@@ -512,13 +512,15 @@
   pr
-ivate
+otected
  Str

change variables from priviate to protected in BaseController