|
@ -4,12 +4,12 @@ import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
|
|
import com.epmet.entity.UserPointStatisticalDailyEntity; |
|
|
|
|
|
import com.epmet.service.UserPointStatisticalDailyService; |
|
|
import org.apache.logging.log4j.LogManager; |
|
|
import org.apache.logging.log4j.LogManager; |
|
|
import org.apache.logging.log4j.Logger; |
|
|
import org.apache.logging.log4j.Logger; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
import java.util.HashMap; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
@ -27,6 +27,8 @@ public class TestController { |
|
|
private Logger logger = LogManager.getLogger(TestController.class); |
|
|
private Logger logger = LogManager.getLogger(TestController.class); |
|
|
@Autowired |
|
|
@Autowired |
|
|
private LoginUserUtil loginUserUtil; |
|
|
private LoginUserUtil loginUserUtil; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private UserPointStatisticalDailyService userPointStatisticalDailyService; |
|
|
@GetMapping("test") |
|
|
@GetMapping("test") |
|
|
public Result test(@LoginUser TokenDto tokenDto){ |
|
|
public Result test(@LoginUser TokenDto tokenDto){ |
|
|
Map map=new HashMap<>(); |
|
|
Map map=new HashMap<>(); |
|
@ -42,5 +44,10 @@ public class TestController { |
|
|
result.setData("success"); |
|
|
result.setData("success"); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
@PostMapping("testinsert") |
|
|
|
|
|
public Result testInsert(@RequestBody UserPointStatisticalDailyEntity entity){ |
|
|
|
|
|
userPointStatisticalDailyService.test(entity); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|