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
817fa0f3
Commit
817fa0f3
authored
Dec 09, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
84dd078d
8b72919c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
CommonInfoController.java
.../platform/rs/website/controller/CommonInfoController.java
+5
-8
CommonInfoWebController.java
...rm/rs/website/controller/web/CommonInfoWebController.java
+19
-0
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/CommonInfoController.java
View file @
817fa0f3
...
...
@@ -5,22 +5,19 @@ import com.github.wxiaoqi.security.common.rest.BaseController;
import
com.upyuns.platform.rs.website.biz.CommonInfoBiz
;
import
com.upyuns.platform.rs.website.dto.CommonInfoDto
;
import
com.upyuns.platform.rs.website.entity.CommonInfo
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"commonInfo"
)
public
class
CommonInfoController
extends
BaseController
<
CommonInfoBiz
,
CommonInfo
>
{
@GetMapping
(
value
=
"getByType"
)
public
ObjectRestResponse
getByType
(
Integer
type
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
getByType
(
type
));
}
@GetMapping
(
value
=
"getAll"
)
public
ObjectRestResponse
getAll
(
CommonInfoDto
commonInfoDto
)
{
return
baseBiz
.
getAll
(
commonInfoDto
);
}
@PostMapping
(
value
=
"addUpdate"
)
public
ObjectRestResponse
addUpdate
(
@RequestBody
CommonInfo
commonInfo
)
{
return
baseBiz
.
addUpdate
(
commonInfo
);
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/web/CommonInfoWebController.java
0 → 100644
View file @
817fa0f3
package
com
.
upyuns
.
platform
.
rs
.
website
.
controller
.
web
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.upyuns.platform.rs.website.biz.CommonInfoBiz
;
import
com.upyuns.platform.rs.website.dto.CommonInfoDto
;
import
com.upyuns.platform.rs.website.entity.CommonInfo
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"commonInfo/web"
)
public
class
CommonInfoWebController
extends
BaseController
<
CommonInfoBiz
,
CommonInfo
>
{
@GetMapping
(
value
=
"/app/unauth/getByType"
)
public
ObjectRestResponse
getByType
(
Integer
type
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
getByType
(
type
));
}
}
\ No newline at end of file
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