附近增加用户类型
This commit is contained in:
@ -9,6 +9,7 @@ import com.ruoyi.wgz.bo.req.WgzRealNameAuthenticationReq;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes;
|
||||
import com.ruoyi.wgz.domain.WgzUser;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
@ -87,10 +88,10 @@ public interface IWgzUserService extends IServicePlus<WgzUser> {
|
||||
*/
|
||||
WgzAppPersonalBasicInformationRes userPersonalBasicInformation(WgzAppPersonalBasicInformationReq req);
|
||||
|
||||
// /**
|
||||
// * 务工者APP实名认证
|
||||
// * @param req APP务工者实名认证业务对象
|
||||
// * @return bool
|
||||
// */
|
||||
// Boolean userRealNameAuthentication(WgzRealNameAuthenticationReq req);
|
||||
/**
|
||||
* 务工者APP实名认证
|
||||
* @param req APP务工者实名认证业务对象
|
||||
* @return bool
|
||||
*/
|
||||
Boolean userRealNameAuthentication(@Validated @RequestBody WgzRealNameAuthenticationReq req);
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.wgz.bo.WgzUserQueryBo;
|
||||
import com.ruoyi.wgz.bo.req.WgzAppPersonalBasicInformationReq;
|
||||
import com.ruoyi.wgz.bo.req.WgzAppUserRegisterReq;
|
||||
import com.ruoyi.wgz.bo.req.WgzRealNameAuthenticationReq;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes;
|
||||
import com.ruoyi.wgz.common.SnowflakeIdUtil;
|
||||
import com.ruoyi.wgz.domain.WgzUser;
|
||||
@ -143,4 +144,14 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
return wgzAppPersonalBasicInformationRes;
|
||||
}
|
||||
|
||||
//实名认证
|
||||
@Override
|
||||
public Boolean userRealNameAuthentication(WgzRealNameAuthenticationReq req) {
|
||||
//1、对指定用户进行实名认证
|
||||
WgzUser user = new WgzUser();
|
||||
BeanUtils.copyProperties(req,user);
|
||||
int update = baseMapper.update(user, new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, req.getUserId()));
|
||||
return update>0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user