Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
fcdd47a8
Commit
fcdd47a8
authored
Nov 20, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wifi、客服电话配置接口
parent
7f9e80af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
ConfigController.java
...in/java/share/web/controller/system/ConfigController.java
+60
-0
No files found.
share-front/src/main/java/share/web/controller/system/ConfigController.java
0 → 100644
View file @
fcdd47a8
package
share
.
web
.
controller
.
system
;
import
cn.hutool.core.map.MapUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.R
;
import
share.system.domain.vo.SStoreVo
;
import
share.system.request.SStoreRequest
;
import
share.system.service.ISysConfigService
;
import
java.util.List
;
import
java.util.Map
;
/**
* @className: share.web.controller.system.ConfigController
* @description: 系统参数配置
* @author: lwj
* @create: 2023-11-20 12:05
*/
@RestController
@RequestMapping
(
"/config"
)
@Api
(
tags
=
"系统参数配置信息"
)
public
class
ConfigController
extends
BaseController
{
@Autowired
private
ISysConfigService
configService
;
/**
* 查询Wi-Fi账号密码配置
*/
@ApiOperation
(
value
=
"Wi-Fi账号密码配置"
)
@RequestMapping
(
value
=
"/wifi"
,
method
=
RequestMethod
.
GET
)
public
R
<
Map
<
String
,
String
>>
wifi
()
{
Map
<
String
,
String
>
map
=
MapUtil
.
newHashMap
();
map
.
put
(
"wif_username"
,
configService
.
selectConfigByKey
(
"wechat.wifi.username"
));
map
.
put
(
"wif_password"
,
configService
.
selectConfigByKey
(
"wechat.wifi.password"
));
return
R
.
ok
(
map
);
}
/**
* 小程序客服电话
*/
@ApiOperation
(
value
=
"小程序客服电话配置"
)
@RequestMapping
(
value
=
"/customer/service"
,
method
=
RequestMethod
.
GET
)
public
R
<
Map
<
String
,
String
>>
customerService
()
{
Map
<
String
,
String
>
map
=
MapUtil
.
newHashMap
();
map
.
put
(
"customerServicePhone"
,
configService
.
selectConfigByKey
(
"wechat.customer.service.phone"
));
return
R
.
ok
(
map
);
}
}
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