Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0a7132f5
authored
Apr 01, 2022
by
levphon
1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口加上, consumes = MediaType.APPLICATION_JSON_VALUE,防止上传文件type传递
1 parent
d38373cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
src/main/java/cn/com/glsx/devicemonitor/api/feign/MileFeignService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/MileFeignService.java
View file @
0a7132f
...
@@ -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
);
}
}
@liuyf
刘宇峰
@liuyf
mentioned in commit
5d0238b9
May 15, 2022
mentioned in commit
5d0238b9
Toggle commit list
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment