|
|
@ -3,15 +3,21 @@ package org.jeecg.modules.api.service.impl; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.modules.api.service.LoginApiService; |
|
|
|
import org.jeecg.modules.bean.LoginReq; |
|
|
|
import org.jeecg.modules.cityConf.entity.CityConf; |
|
|
|
import org.jeecg.modules.cityConf.service.ICityConfService; |
|
|
|
import org.jeecg.modules.service.AppletLoginService; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class LoginApiServiceImpl implements LoginApiService { |
|
|
|
@Resource |
|
|
|
private AppletLoginService appletLoginService; |
|
|
|
//查询配置 |
|
|
|
@Resource |
|
|
|
private ICityConfService cityConfService; |
|
|
|
|
|
|
|
//小程序-登录接口 |
|
|
|
@Override |
|
|
@ -25,8 +31,12 @@ public class LoginApiServiceImpl implements LoginApiService { |
|
|
|
@Override |
|
|
|
public Result<?> getUserAgreement() |
|
|
|
{ |
|
|
|
|
|
|
|
return Result.OK("用户协议"); |
|
|
|
//查询用户协议 |
|
|
|
CityConf cityConf = cityConfService. |
|
|
|
lambdaQuery(). |
|
|
|
eq(CityConf::getKeyIcon, "userAgreement"). |
|
|
|
one(); |
|
|
|
return Result.OK(cityConf.getKeyDetails()); |
|
|
|
} |
|
|
|
|
|
|
|
//获取隐私政策 |
|
|
@ -34,8 +44,22 @@ public class LoginApiServiceImpl implements LoginApiService { |
|
|
|
public Result<?> getPrivacyPolicy() |
|
|
|
{ |
|
|
|
|
|
|
|
return Result.OK("隐私政策"); |
|
|
|
//查询隐私政策 |
|
|
|
CityConf cityConf = cityConfService. |
|
|
|
lambdaQuery(). |
|
|
|
eq(CityConf::getKeyIcon, "privacyPolicy"). |
|
|
|
one(); |
|
|
|
return Result.OK(cityConf.getKeyDetails()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询所有配置信息 |
|
|
|
@Override |
|
|
|
public Result<?> getConfigInfo(){ |
|
|
|
List<CityConf> list = cityConfService.list(); |
|
|
|
return Result.OK(list); |
|
|
|
} |
|
|
|
|
|
|
|
} |