Commit 0a7132f5 by levphon

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

1 parent d38373cb
...@@ -10,7 +10,6 @@ import org.springframework.cloud.openfeign.FeignClient; ...@@ -10,7 +10,6 @@ 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;
...@@ -28,7 +27,6 @@ public interface MileFeignService { ...@@ -28,7 +27,6 @@ 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);
/** /**
...@@ -38,6 +36,6 @@ public interface MileFeignService { ...@@ -38,6 +36,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!