docs 补充缺少的@Override和注释

2.X
AprilWind 8 months ago
parent 5627f6ae0d
commit 2105c4a637

@ -20,6 +20,7 @@ public class RemoteFileServiceMock implements RemoteFileService {
* @param file
* @return
*/
@Override
public RemoteFile upload(String name, String originalFilename, String contentType, byte[] file) {
log.warn("服务调用异常 -> 降级处理");
return null;
@ -31,11 +32,18 @@ public class RemoteFileServiceMock implements RemoteFileService {
* @param ossIds ossId
* @return url
*/
@Override
public String selectUrlByIds(String ossIds) {
log.warn("服务调用异常 -> 降级处理");
return StringUtils.EMPTY;
}
/**
* ossId
*
* @param ossIds ossId
* @return
*/
@Override
public List<RemoteFile> selectByIds(String ossIds) {
log.warn("服务调用异常 -> 降级处理");

@ -15,5 +15,10 @@ public interface RemoteMessageService {
*/
void publishMessage(Long sessionKey, String message);
/**
* ()
*
* @param message
*/
void publishAll(String message);
}

@ -20,6 +20,7 @@ public class RemoteMessageServiceStub implements RemoteMessageService {
* @param sessionKey session id
* @param message
*/
@Override
public void publishMessage(Long sessionKey, String message) {
try {
remoteMessageService.publishMessage(sessionKey, message);
@ -28,6 +29,12 @@ public class RemoteMessageServiceStub implements RemoteMessageService {
}
}
/**
* ()
*
* @param message
*/
@Override
public void publishAll(String message) {
try {
remoteMessageService.publishAll(message);

@ -81,6 +81,7 @@ public class RemoteFileServiceImpl implements RemoteFileService {
* @param ossIds ossId
* @return
*/
@Override
public List<RemoteFile> selectByIds(String ossIds){
List<SysOssVo> sysOssVos = sysOssService.listByIds(StringUtils.splitTo(ossIds, Convert::toLong));
return MapstructUtils.convert(sysOssVos, RemoteFile.class);

@ -26,6 +26,7 @@ public class RemoteMailServiceImpl implements RemoteMailService {
* @param subject
* @param text
*/
@Override
public void send(String to, String subject, String text) throws ServiceException {
MailUtils.sendText(to, subject, text);
}

@ -18,6 +18,12 @@ public class RemoteDeptServiceImpl implements RemoteDeptService {
private final ISysDeptService sysDeptService;
/**
* ID
*
* @param deptIds ID
* @return
*/
@Override
public String selectDeptNameByIds(String deptIds) {
return sysDeptService.selectDeptNameByIds(deptIds);

@ -23,7 +23,12 @@ public class RemoteDictServiceImpl implements RemoteDictService {
private final ISysDictTypeService sysDictTypeService;
/**
*
*
* @param dictType
* @return
*/
@Override
public List<RemoteDictDataVo> selectDictDataByType(String dictType) {
List<SysDictDataVo> list = sysDictTypeService.selectDictDataByType(dictType);

@ -26,6 +26,11 @@ public class RemoteLogServiceImpl implements RemoteLogService {
private final ISysOperLogService operLogService;
private final ISysLogininforService logininforService;
/**
*
*
* @param remoteOperLogBo
*/
@Async
@Override
public void saveLog(RemoteOperLogBo remoteOperLogBo) {
@ -33,6 +38,11 @@ public class RemoteLogServiceImpl implements RemoteLogService {
operLogService.insertOperlog(sysOperLogBo);
}
/**
* 访
*
* @param remoteLogininforBo 访
*/
@Async
@Override
public void saveLogininfor(RemoteLogininforBo remoteLogininforBo) {

@ -26,7 +26,10 @@ public class RemoteSocialServiceImpl implements RemoteSocialService {
private final ISysSocialService sysSocialService;
/**
* authId
* authId
*
* @param authId id
* @return
*/
@Override
public List<RemoteSocialVo> selectByAuthId(String authId) {
@ -34,6 +37,11 @@ public class RemoteSocialServiceImpl implements RemoteSocialService {
return MapstructUtils.convert(list, RemoteSocialVo.class);
}
/**
*
*
* @param bo
*/
@Override
public List<RemoteSocialVo> queryList(RemoteSocialBo bo) {
SysSocialBo params = MapstructUtils.convert(bo, SysSocialBo.class);
@ -43,6 +51,8 @@ public class RemoteSocialServiceImpl implements RemoteSocialService {
/**
*
*
* @param bo
*/
@Override
public void insertByBo(RemoteSocialBo bo) {
@ -51,6 +61,8 @@ public class RemoteSocialServiceImpl implements RemoteSocialService {
/**
*
*
* @param bo
*/
@Override
public void updateByBo(RemoteSocialBo bo) {
@ -59,6 +71,9 @@ public class RemoteSocialServiceImpl implements RemoteSocialService {
/**
*
*
* @param socialId ID
* @return
*/
@Override
public Boolean deleteWithValidById(Long socialId) {

@ -46,6 +46,13 @@ public class RemoteUserServiceImpl implements RemoteUserService {
private final ISysDeptService deptService;
private final SysUserMapper userMapper;
/**
*
*
* @param username
* @param tenantId id
* @return
*/
@Override
public LoginUser getUserInfo(String username, String tenantId) throws UserException {
return TenantHelper.dynamic(tenantId, () -> {
@ -62,6 +69,13 @@ public class RemoteUserServiceImpl implements RemoteUserService {
});
}
/**
* id
*
* @param userId id
* @param tenantId id
* @return
*/
@Override
public LoginUser getUserInfo(Long userId, String tenantId) throws UserException {
return TenantHelper.dynamic(tenantId, () -> {
@ -78,6 +92,13 @@ public class RemoteUserServiceImpl implements RemoteUserService {
});
}
/**
*
*
* @param phonenumber
* @param tenantId id
* @return
*/
@Override
public LoginUser getUserInfoByPhonenumber(String phonenumber, String tenantId) throws UserException {
return TenantHelper.dynamic(tenantId, () -> {
@ -94,6 +115,13 @@ public class RemoteUserServiceImpl implements RemoteUserService {
});
}
/**
*
*
* @param email
* @param tenantId id
* @return
*/
@Override
public LoginUser getUserInfoByEmail(String email, String tenantId) throws UserException {
return TenantHelper.dynamic(tenantId, () -> {
@ -110,6 +138,12 @@ public class RemoteUserServiceImpl implements RemoteUserService {
});
}
/**
* openid
*
* @param openid openid
* @return
*/
@Override
public XcxLoginUser getUserInfoByOpenid(String openid) throws UserException {
// todo 自行实现 userService.selectUserByOpenid(openid);
@ -131,6 +165,12 @@ public class RemoteUserServiceImpl implements RemoteUserService {
return loginUser;
}
/**
*
*
* @param remoteUserBo
* @return
*/
@Override
public Boolean registerUserInfo(RemoteUserBo remoteUserBo) throws UserException, ServiceException {
SysUserBo sysUserBo = MapstructUtils.convert(remoteUserBo, SysUserBo.class);
@ -246,12 +286,24 @@ public class RemoteUserServiceImpl implements RemoteUserService {
DataPermissionHelper.ignore(() -> userMapper.updateById(sysUser));
}
/**
* ID
*
* @param userIds ids
* @return
*/
@Override
public List<RemoteUserVo> selectListByIds(List<Long> userIds) {
List<SysUserVo> sysUserVos = userService.selectUserByIds(userIds, null);
return MapstructUtils.convert(sysUserVos, RemoteUserVo.class);
}
/**
* IDID
*
* @param roleIds ids
* @return ids
*/
@Override
public List<Long> selectUserIdsByRoleIds(List<Long> roleIds) {
return userService.selectUserIdsByRoleIds(roleIds);

@ -12,45 +12,60 @@ import java.util.List;
*/
public interface ISysSocialService {
/**
*
* ID
*
* @param id
* @return IDSysSocialVonull
*/
SysSocialVo queryById(String id);
/**
*
*
* @param bo SysSocialBo
* @return SysSocialVo
*/
List<SysSocialVo> queryList(SysSocialBo bo);
/**
*
* ID
*
* @param userId
* @return IDSysSocialVo
*/
List<SysSocialVo> queryListByUserId(Long userId);
/**
*
*
* @param bo SysSocialBo
* @return truefalse
*/
Boolean insertByBo(SysSocialBo bo);
/**
*
*
* @param bo SysSocialBo
* @return truefalse
*/
Boolean updateByBo(SysSocialBo bo);
/**
*
*
* @param id
* @return truefalse
*/
Boolean deleteWithValidById(Long id);
/**
* authId SysSocial SysUser SysSocialAuthResult
* ID
*
* @param authId ID
* @return SysSocial
* @return SysSocialSysSocialVo
*/
List<SysSocialVo> selectByAuthId(String authId);
}

@ -26,9 +26,11 @@ public class SysSocialServiceImpl implements ISysSocialService {
private final SysSocialMapper baseMapper;
/**
*
* ID
*
* @param id
* @return IDSysSocialVonull
*/
@Override
public SysSocialVo queryById(String id) {
@ -36,7 +38,10 @@ public class SysSocialServiceImpl implements ISysSocialService {
}
/**
*
*
*
* @param bo SysSocialBo
* @return SysSocialVo
*/
@Override
public List<SysSocialVo> queryList(SysSocialBo bo) {
@ -47,14 +52,22 @@ public class SysSocialServiceImpl implements ISysSocialService {
return baseMapper.selectVoList(lqw);
}
/**
* ID
*
* @param userId
* @return IDSysSocialVo
*/
@Override
public List<SysSocialVo> queryListByUserId(Long userId) {
return baseMapper.selectVoList(new LambdaQueryWrapper<SysSocial>().eq(SysSocial::getUserId, userId));
}
/**
*
*
*
* @param bo SysSocialBo
* @return truefalse
*/
@Override
public Boolean insertByBo(SysSocialBo bo) {
@ -73,6 +86,9 @@ public class SysSocialServiceImpl implements ISysSocialService {
/**
*
*
* @param bo SysSocialBo
* @return truefalse
*/
@Override
public Boolean updateByBo(SysSocialBo bo) {
@ -81,7 +97,6 @@ public class SysSocialServiceImpl implements ISysSocialService {
return baseMapper.updateById(update) > 0;
}
/**
*
*/
@ -89,21 +104,22 @@ public class SysSocialServiceImpl implements ISysSocialService {
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
*
* @param id
* @return truefalse
*/
@Override
public Boolean deleteWithValidById(Long id) {
return baseMapper.deleteById(id) > 0;
}
/**
* authId
* ID
*
* @param authId id
* @return
* @param authId ID
* @return SysSocialSysSocialVo
*/
@Override
public List<SysSocialVo> selectByAuthId(String authId) {

Loading…
Cancel
Save