Commit fcdd47a8 by YG8999

wifi、客服电话配置接口

parent 7f9e80af
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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment