@Override
    public boolean authUser(Integer id) {
        User user = repository.findOne(id);
        return user.getEnable() == 1;
    }
@Author : ChinaLHR
@Date : Create in 21:22 2017/10/23
@Email : 13435500980@163.com
quark-chat/src/main/java/com/quark/chat/service/impl/ChatServiceImpl.java