|
@@ -0,0 +1,33 @@
|
|
|
|
+package com.yonge.cooleshow.admin.controller.open;
|
|
|
|
+
|
|
|
|
+import com.yonge.cooleshow.biz.dal.entity.SysConfig;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.service.SysConfigService;
|
|
|
|
+import com.yonge.cooleshow.common.constant.SysConfigConstant;
|
|
|
|
+import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
|
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 系统配置控制层
|
|
|
|
+ */
|
|
|
|
+@RestController
|
|
|
|
+@Api(tags = "系统参数设置")
|
|
|
|
+@RequestMapping(value = "/open/sysConfig")
|
|
|
|
+public class OpenSysConfigController extends BaseController {
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "查询客服手机号")
|
|
|
|
+ @GetMapping(value = "/queryCustomerServicePhone")
|
|
|
|
+ public HttpResponseResult<String> queryCustomerServicePhone() {
|
|
|
|
+ SysConfig sysConfig = sysConfigService.findByParamName(SysConfigConstant.CUSTOMER_SERVICE_PHONE);
|
|
|
|
+ return succeed(sysConfig.getParamValue());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|