|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.ccsens.yanyuan.api; |
|
|
|
|
|
|
|
import cn.hutool.core.lang.Snowflake; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
@ -9,6 +10,7 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
|
|
|
@Api(tags = "DEBUG" , description = "DebugController | ") |
|
|
@ -17,13 +19,17 @@ import javax.servlet.http.HttpServletRequest; |
|
|
|
@Slf4j |
|
|
|
public class DebugController { |
|
|
|
|
|
|
|
@Resource |
|
|
|
private Snowflake snowflake; |
|
|
|
|
|
|
|
@ApiOperation(value = "/测试",notes = "") |
|
|
|
@ApiImplicitParams({ |
|
|
|
}) |
|
|
|
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse debug(HttpServletRequest request) throws Exception { |
|
|
|
long l = snowflake.nextId(); |
|
|
|
|
|
|
|
return JsonResponse.newInstance().ok("测试"); |
|
|
|
return JsonResponse.newInstance().ok("测试:" + l); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|