Commit 22fc7b3e authored by lining's avatar lining

feat: common/contact接口

parent dbe2483e
...@@ -45,4 +45,7 @@ public class SysParamConstants { ...@@ -45,4 +45,7 @@ public class SysParamConstants {
* 公众号名称 * 公众号名称
*/ */
public final static String MP_NAME = "MP_NAME"; public final static String MP_NAME = "MP_NAME";
public final static String SERVICE_PHONE = "SERVICE_PHONE";
} }
...@@ -55,5 +55,11 @@ public class HomeCommonController { ...@@ -55,5 +55,11 @@ public class HomeCommonController {
return homeCommonService.mPInfo(); return homeCommonService.mPInfo();
} }
@ApiOperation(value = "联系方式")
@GetMapping("contact")
public Result contact() {
return homeCommonService.contact();
}
} }
...@@ -121,7 +121,10 @@ public class HomeCommonService { ...@@ -121,7 +121,10 @@ public class HomeCommonService {
return ResultGenerator.success(map, null); return ResultGenerator.success(map, null);
} }
public Result contact() {
String servicePhone = sysParamMapper.selectOne(SysParam.builder().code(SysParamConstants.SERVICE_PHONE).build()).getValue();
return ResultGenerator.success(servicePhone, null);
}
} }
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