Remove some comments.

pull/235/head
ruibaby 2019-06-26 16:05:34 +08:00
parent da4d508f3c
commit a11fa76934
9 changed files with 0 additions and 92 deletions

View File

@ -376,11 +376,6 @@ public class AdminServiceImpl implements AdminService {
return token;
}
/**
* Get spring logs.
*
* @return recently logs.
*/
@Override
public String getSpringLogs() {
File file = new File(haloProperties.getWorkDir(), LOGS_PATH);

View File

@ -144,12 +144,6 @@ public class CategoryServiceImpl extends AbstractCrudService<Category, Integer>
return topCategory;
}
/**
* Get category by slug name
*
* @param slugName slug name
* @return Category
*/
@Override
public Category getBySlugName(String slugName) {
return categoryRepository.getBySlugName(slugName).orElseThrow(() -> new NotFoundException("该分类已存在").setErrorData(slugName));

View File

@ -36,12 +36,6 @@ public class LinkServiceImpl extends AbstractCrudService<Link, Integer> implemen
this.linkRepository = linkRepository;
}
/**
* List link dtos.
*
* @param sort sort
* @return all links
*/
@Override
public List<LinkDTO> listDtos(Sort sort) {
Assert.notNull(sort, "Sort info must not be null");

View File

@ -37,13 +37,6 @@ public class MailServiceImpl implements MailService {
}
/**
* Sends a simple email
*
* @param to recipient
* @param subject subject
* @param content content
*/
@Override
public void sendMail(String to, String subject, String content) {
loadConfig();
@ -63,14 +56,6 @@ public class MailServiceImpl implements MailService {
}
}
/**
* Sends template mail
*
* @param to recipient
* @param subject subject
* @param content content
* @param templateName template name
*/
@Override
public void sendTemplateMail(String to, String subject, Map<String, Object> content, String templateName) {
loadConfig();
@ -93,15 +78,6 @@ public class MailServiceImpl implements MailService {
}
}
/**
* Sends mail with attachments
*
* @param to recipient
* @param subject subject
* @param content content
* @param templateName template name
* @param attachFilename attachment path
*/
@Override
public void sendAttachMail(String to, String subject, Map<String, Object> content, String templateName, String attachFilename) {
loadConfig();

View File

@ -51,12 +51,6 @@ public class MenuServiceImpl extends AbstractCrudService<Menu, Integer> implemen
return create(menuParam.convertTo());
}
/**
* Lists as menu tree.
*
* @param sort sort info must not be null
* @return a menu tree
*/
@Override
public List<MenuVO> listAsTree(Sort sort) {
Assert.notNull(sort, "Sort info must not be null");

View File

@ -41,12 +41,6 @@ public class PhotoServiceImpl extends AbstractCrudService<Photo, Integer> implem
this.photoRepository = photoRepository;
}
/**
* List photo dtos.
*
* @param sort sort
* @return all photos
*/
@Override
public List<PhotoDTO> listDtos(Sort sort) {
Assert.notNull(sort, "Sort info must not be null");
@ -54,12 +48,6 @@ public class PhotoServiceImpl extends AbstractCrudService<Photo, Integer> implem
return listAll(sort).stream().map(photo -> (PhotoDTO) new PhotoDTO().convertFrom(photo)).collect(Collectors.toList());
}
/**
* Lists photo team vos.
*
* @param sort must not be null
* @return a list of photo team vo
*/
@Override
public List<PhotoTeamVO> listTeamVos(Sort sort) {
Assert.notNull(sort, "Sort info must not be null");
@ -88,13 +76,6 @@ public class PhotoServiceImpl extends AbstractCrudService<Photo, Integer> implem
return result;
}
/**
* List photos by team.
*
* @param team team
* @param sort sort
* @return list of photos
*/
@Override
public List<PhotoDTO> listByTeam(String team, Sort sort) {
List<Photo> photos = photoRepository.findByTeam(team, sort);

View File

@ -85,13 +85,6 @@ public class SheetServiceImpl extends BasePostServiceImpl<Sheet> implements Shee
return listAll(pageable);
}
/**
* Gets sheet by post status and url.
*
* @param status post status must not be null
* @param url sheet url must not be blank
* @return sheet info
*/
@Override
public Sheet getBy(PostStatus status, String url) {
Sheet sheet = super.getBy(status, url);

View File

@ -49,12 +49,6 @@ public class TagServiceImpl extends AbstractCrudService<Tag, Integer> implements
return super.create(tag);
}
/**
* Get tag by slug name
*
* @param slugName slug name
* @return Tag
*/
@Override
public Tag getBySlugNameOfNonNull(String slugName) {
return tagRepository.getBySlugName(slugName).orElseThrow(() -> new NotFoundException("该标签已存在").setErrorData(slugName));

View File

@ -78,24 +78,11 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
return getByUsername(username).orElseThrow(() -> new NotFoundException("The username dose not exist").setErrorData(username));
}
/**
* Gets user by email.
*
* @param email email must not be blank
* @return an optional user
*/
@Override
public Optional<User> getByEmail(String email) {
return userRepository.findByEmail(email);
}
/**
* Gets non null user by email.
*
* @param email email
* @return user info
* @throws NotFoundException throws when the username does not exist
*/
@Override
public User getByEmailOfNonNull(String email) {
return getByEmail(email).orElseThrow(() -> new NotFoundException("The email dose not exist").setErrorData(email));