Commit 5d0238b9 by levphon

Revert "接口加上, consumes = MediaType.APPLICATION_JSON_VALUE,防止上传文件type传递"

This reverts commit 0a7132f5.
1 parent 5e597d53
...@@ -10,6 +10,7 @@ import org.springframework.cloud.openfeign.FeignClient; ...@@ -10,6 +10,7 @@ import org.springframework.cloud.openfeign.FeignClient;
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.ResponseBody;
import java.util.List; import java.util.List;
...@@ -27,6 +28,7 @@ public interface MileFeignService { ...@@ -27,6 +28,7 @@ public interface MileFeignService {
* @return * @return
*/ */
@PostMapping(value = "/getdevicedetailmileagelist", consumes = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/getdevicedetailmileagelist", consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
R<List<JourneyDetailDTO>> getDeviceDetailMileageList(@RequestBody JourneyDetailRequest journeyDetailRequest); R<List<JourneyDetailDTO>> getDeviceDetailMileageList(@RequestBody JourneyDetailRequest journeyDetailRequest);
/** /**
...@@ -36,6 +38,6 @@ public interface MileFeignService { ...@@ -36,6 +38,6 @@ public interface MileFeignService {
* @return * @return
*/ */
@PostMapping(value = "/getdailyjourneyrecords", consumes = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/getdailyjourneyrecords", consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
R<List<JourneyDailyDTO>> getDailyJourneyRecords(@RequestBody JourneyDailyRequest journeyDailyRequest); R<List<JourneyDailyDTO>> getDailyJourneyRecords(@RequestBody JourneyDailyRequest journeyDailyRequest);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!