Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
b2aa04ee
Commit
b2aa04ee
authored
Nov 15, 2024
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口
parent
3e0c6c4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
LmyxmonitorimageController.java
...rs/website/controller/web/LmyxmonitorimageController.java
+6
-2
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/web/LmyxmonitorimageController.java
View file @
b2aa04ee
...
...
@@ -10,6 +10,7 @@ import cn.hutool.json.JSONUtil;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.util.Query
;
import
com.github.wxiaoqi.security.common.util.process.SystemConfig
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.upyuns.platform.rs.website.biz.LmyxmonitorimageBiz
;
import
com.upyuns.platform.rs.website.entity.Lmyxmonitorimage
;
...
...
@@ -34,6 +35,9 @@ public class LmyxmonitorimageController extends BaseController<LmyxmonitorimageB
@Value
(
"${universal.baseUploadPath}"
)
private
String
baseUploadPath
;
@Value
(
"${universal.url}"
)
private
String
xx_url
;
@RequestMapping
(
value
=
"/app/unauth/baseAdd"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
ObjectRestResponse
<
Lmyxmonitorimage
>
appUnauthbaseAdd
(
@RequestBody
Lmyxmonitorimage
entity
){
...
...
@@ -178,8 +182,8 @@ public class LmyxmonitorimageController extends BaseController<LmyxmonitorimageB
if
(
false
==
response
.
isOk
())
{
throw
new
HttpException
(
"Server response error with status code: [{}]"
,
response
.
getStatus
());
}
response
.
writeBody
(
new
File
(
baseUploadPath
+
"/sanhua/"
),
null
);
return
ObjectRestResponse
.
succ
();
response
.
writeBody
(
new
File
(
baseUploadPath
+
"/sanhua/"
+
id
+
".zip"
),
null
);
return
ObjectRestResponse
.
succ
(
xx_url
+
SystemConfig
.
XXMP_URL
+
"/sanhua/"
+
id
+
".zip"
);
}
@Data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment