Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ece9d396
authored
Sep 15, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
子女端:隐私/关于我们
parent
3730169d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
server-module/src/main/java/com/makeit/module/controller/children/config/SaasPrivacyConfigChildrenController.java
server-module/src/main/java/com/makeit/module/controller/children/config/SaasPrivacyConfigChildrenController.java
0 → 100644
View file @
ece9d396
package
com
.
makeit
.
module
.
controller
.
children
.
config
;
import
com.makeit.common.response.ApiResponseEntity
;
import
com.makeit.common.response.ApiResponseUtils
;
import
com.makeit.dto.saas.SaasPrivacyConfigDTO
;
import
com.makeit.service.saas.SaasPrivacyConfigService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
*
* @author lzy
* @date 2022年5月28日
* @description
*/
@Api
(
tags
=
"子女端小程序-隐私政策-关于我们"
)
@RestController
@RequestMapping
(
"/children/sys/privacyConfig"
)
public
class
SaasPrivacyConfigChildrenController
{
@Autowired
private
SaasPrivacyConfigService
saasPrivacyConfigService
;
@ApiOperation
(
value
=
"获取隐私政策-关于我们"
,
notes
=
""
)
@PostMapping
(
"/view"
)
public
ApiResponseEntity
<
SaasPrivacyConfigDTO
>
view
(
@RequestBody
SaasPrivacyConfigDTO
saasPrivacyConfigDTO
){
return
ApiResponseUtils
.
success
(
saasPrivacyConfigService
.
view
(
saasPrivacyConfigDTO
.
getCategory
()));
}
@ApiOperation
(
value
=
"获取关于我们"
,
notes
=
""
)
@PostMapping
(
"/viewAbout"
)
public
ApiResponseEntity
<
SaasPrivacyConfigDTO
>
viewAbout
(
@RequestBody
SaasPrivacyConfigDTO
saasPrivacyConfigDTO
){
return
ApiResponseUtils
.
success
(
saasPrivacyConfigService
.
view
(
saasPrivacyConfigDTO
.
getCategory
()));
}
}
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