修改邮件

master
星期八 5 years ago
parent 01b8c23ee3
commit 83bafd0915
  1. 10
      src/main/java/com/lq/cms/emun/AjaxResultEnum.java
  2. 4
      src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java
  3. 4
      src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java
  4. 3
      src/main/java/com/lq/cms/service/impl/SysResourceServiceImpl.java
  5. 3
      src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java
  6. 4
      src/main/profile/dev/email.properties
  7. 4
      src/main/profile/test/email.properties

@ -5,9 +5,17 @@ package com.lq.cms.emun;
* 结果返回结果枚举 * 结果返回结果枚举
**/ **/
public enum AjaxResultEnum { public enum AjaxResultEnum {
/**
* 成功返回值
*/
SUCCESS(200,"操作成功!"), SUCCESS(200,"操作成功!"),
/**
* 警告返回值
*/
WARN(400,"参数不合法!"), WARN(400,"参数不合法!"),
/**
* 异常返回值
*/
ERROR(500,"系统异常!") ERROR(500,"系统异常!")
; ;

@ -18,6 +18,10 @@ import java.util.List;
*/ */
public abstract class AdminBaseServiceImpl<T,V extends AdminBaseVo> implements AdminBaseService<T,V>{ public abstract class AdminBaseServiceImpl<T,V extends AdminBaseVo> implements AdminBaseService<T,V>{
/**
* 返回dao
* @return
*/
abstract AdminBaseDao<T,V> getAdminBaseDao(); abstract AdminBaseDao<T,V> getAdminBaseDao();
@Override @Override

@ -28,10 +28,6 @@ public class SysPermissionServiceImpl implements SysPermissionService{
@Autowired @Autowired
private SysPermissionDao sysPermissionDao; private SysPermissionDao sysPermissionDao;
@Autowired
private SysResourceDao sysResourceDao;
@Autowired
private SysUserDao sysUserDao;
@Override @Override
public List<SysPermissionVo> findListPage(SysPermissionVo vo) { public List<SysPermissionVo> findListPage(SysPermissionVo vo) {

@ -73,9 +73,7 @@ public class SysResourceServiceImpl implements SysResourceService {
menusItem.add(menus); menusItem.add(menus);
} }
list.add(menusItem); list.add(menusItem);
}); });
return list; return list;
} }
@ -103,7 +101,6 @@ public class SysResourceServiceImpl implements SysResourceService {
} }
list.add(menusItem); list.add(menusItem);
} }
return list; return list;
} }
} }

@ -81,7 +81,6 @@ public class SysRoleResourcePermissionServiceImpl implements SysRoleResourcePer
} }
ztreeItem.add(ztreeItme1); ztreeItem.add(ztreeItme1);
} }
ztreeList.add(ztreeItem); ztreeList.add(ztreeItem);
} }
return ztreeList; return ztreeList;
@ -110,9 +109,7 @@ public class SysRoleResourcePermissionServiceImpl implements SysRoleResourcePer
sysRoleResourcePermission.setStatus(StatusTypeEnum.STATUS_ACTIVITY_YES.getValue()); sysRoleResourcePermission.setStatus(StatusTypeEnum.STATUS_ACTIVITY_YES.getValue());
sysRoleResourcePermissionDao.update(sysRoleResourcePermission); sysRoleResourcePermissionDao.update(sysRoleResourcePermission);
} }
} }
return true; return true;
} }

@ -1,4 +1,4 @@
email.host=smtp.163.com email.host=smtp.163.com
email.port=25 email.port=25
email.username=qi_liang_gz@163.com email.username=
email.password=a970209468 email.password=

@ -1,4 +1,4 @@
email.host=smtp.163.com email.host=smtp.163.com
email.port=25 email.port=25
email.username=qi_liang_gz@163.com email.username=
email.password=a970209468 email.password=
Loading…
Cancel
Save