蓝牙指引权限和定位指引权限

master
382696293@qq.com 2 years ago
parent cbaf1d2907
commit 08675503f4

@ -7,7 +7,9 @@ public enum SystemSettingKeyEnum {
USER_AGREEMENT("USER_AGREEMENT", "用户协议"),
PRIVACY_AGREEMENT("PRIVACY_AGREEMENT", "隐私协议"),
INTEGRAL_RULE("INTEGRAL_RULE", "积分规则"),
ABOUT_US("ABOUT_US", "关于我们");
ABOUT_US("ABOUT_US", "关于我们"),
BLUETOOTH_GUIDANCE_PERMISSIONS("BLUETOOTH_GUIDANCE_PERMISSIONS", "蓝牙指引权限"),
LOCATION_GUIDANCE_PERMISSIONS("LOCATION_GUIDANCE_PERMISSIONS", "定位指引权限");
private final String key;
private final String remark;

@ -58,4 +58,25 @@ public class SystemSettingController extends BaseController {
return AjaxResult.success(systemSettingService.getAboutUs());
}
/**
*
*
* @return
*/
@GetMapping("/getBluetoothGuidance")
public AjaxResult getBluetoothGuidance() {
return AjaxResult.success(systemSettingService.getBluetoothGuidance());
}
/**
*
*
* @return
*/
@GetMapping("/getLocationGuidance")
public AjaxResult getLocationGuidance() {
return AjaxResult.success(systemSettingService.getLocationGuidance());
}
}

@ -12,4 +12,8 @@ public interface ISystemSettingService {
WxSystemSetting getIntegralRule();
WxSystemSetting getAboutUs();
WxSystemSetting getBluetoothGuidance();
WxSystemSetting getLocationGuidance();
}

@ -54,4 +54,23 @@ public class SystemSettingServiceImpl implements ISystemSettingService {
return systemSettingMapper.getSystemSettingByKey(SystemSettingKeyEnum.ABOUT_US.getKey());
}
/**
*
*
* @return
*/
@Override
public WxSystemSetting getBluetoothGuidance() {
return systemSettingMapper.getSystemSettingByKey(SystemSettingKeyEnum.BLUETOOTH_GUIDANCE_PERMISSIONS.getKey());
}
/**
*
*
* @return
*/
@Override
public WxSystemSetting getLocationGuidance() {
return systemSettingMapper.getSystemSettingByKey(SystemSettingKeyEnum.LOCATION_GUIDANCE_PERMISSIONS.getKey());
}
}

Loading…
Cancel
Save