|
@@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -81,16 +82,20 @@ public class EmailConfigServiceImpl implements EmailConfigService {
|
|
|
} catch (MessagingException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
+ vo.setMsg(ResultCode.CONNECT_SUCCESS.getMsg());
|
|
|
vo.setData(true);
|
|
|
return vo;
|
|
|
}
|
|
|
vo = new ResultVo(ResultCode.CONNECT_ERROR);
|
|
|
vo.setData(false);
|
|
|
+ vo.setMsg(ResultCode.CONNECT_ERROR.getMsg());
|
|
|
return vo;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void deleteEmailConfig(List<Integer> idList) {
|
|
|
+ public void deleteEmailConfig(Integer id) {
|
|
|
+ List<Integer> idList = new ArrayList<>();
|
|
|
+ idList.add(id);
|
|
|
emailConfigMapper.deleteEmailConfigByIds(idList);
|
|
|
}
|
|
|
|