|
@@ -1,25 +1,20 @@
|
|
|
package com.zswl.dataservice.controller.openApi;
|
|
package com.zswl.dataservice.controller.openApi;
|
|
|
|
|
|
|
|
-import com.github.microservice.models.hxz.ServerTimeModel;
|
|
|
|
|
-import com.github.microservice.models.hxz.ServerTimeResult;
|
|
|
|
|
import com.zswl.dataservice.model.openApi.SystemTimeModel;
|
|
import com.zswl.dataservice.model.openApi.SystemTimeModel;
|
|
|
import com.zswl.dataservice.model.openApi.SystemTimeParam;
|
|
import com.zswl.dataservice.model.openApi.SystemTimeParam;
|
|
|
-import com.zswl.dataservice.service.openApi.SystemTimeService;
|
|
|
|
|
|
|
+import com.zswl.dataservice.service.openApi.business.SystemTimeService;
|
|
|
import com.zswl.dataservice.utils.HttpUtils;
|
|
import com.zswl.dataservice.utils.HttpUtils;
|
|
|
import com.zswl.dataservice.utils.result.ResultContent;
|
|
import com.zswl.dataservice.utils.result.ResultContent;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
-import jakarta.servlet.ServletInputStream;
|
|
|
|
|
import jakarta.servlet.http.HttpServletRequest;
|
|
import jakarta.servlet.http.HttpServletRequest;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.http.HttpRequest;
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
-import org.springframework.web.util.ContentCachingRequestWrapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 系统时间服务
|
|
* 系统时间服务
|
|
@@ -38,8 +33,8 @@ public class SystemTimeController {
|
|
|
|
|
|
|
|
@Operation(summary = "获取服务器时间接口")
|
|
@Operation(summary = "获取服务器时间接口")
|
|
|
@PostMapping(value = "serverTime", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
@PostMapping(value = "serverTime", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- public ResultContent<SystemTimeModel> serverTime(HttpServletRequest request) {
|
|
|
|
|
- SystemTimeParam param = HttpUtils.toBean(request, SystemTimeParam.class);
|
|
|
|
|
|
|
+ public ResultContent<SystemTimeModel> serverTime(HttpServletRequest request,@RequestBody SystemTimeParam param) {
|
|
|
|
|
+// SystemTimeParam param = HttpUtils.toBean(request, SystemTimeParam.class);
|
|
|
|
|
|
|
|
return systemTimeService.serverTime(param);
|
|
return systemTimeService.serverTime(param);
|
|
|
}
|
|
}
|