Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
81e626a2
authored
2026-01-20 11:56:38 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
c930097a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
lego-admin/src/main/java/com/lego/web/controller/core/UpgradeController.java
lego-admin/src/main/java/com/lego/web/controller/core/UpgradeController.java
View file @
81e626a
...
...
@@ -32,19 +32,19 @@ public class UpgradeController extends BaseController {
private
final
IUpgradeService
service
;
/**
*
查询列表数据
*
固件升级
*
* @return
*/
@GetMapping
(
"latest"
)
public
UpgradeVo
latest
(
String
fileType
,
String
platformType
,
HttpServletRequest
request
)
{
public
R
<
UpgradeVo
>
latest
(
String
fileType
,
String
platformType
,
HttpServletRequest
request
)
{
String
language
=
request
.
getHeader
(
"content-language"
);
if
(
StringUtils
.
isBlank
(
language
))
language
=
"zh_CN"
;
UpgradeQueryBo
query
=
new
UpgradeQueryBo
();
query
.
setFileType
(
fileType
);
query
.
setPlatformType
(
platformType
);
return
service
.
latest
(
query
,
language
);
return
R
.
ok
(
service
.
latest
(
query
,
language
)
);
}
@PostMapping
(
"listPage"
)
...
...
Write
Preview
Styling with
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