Code Monkey home page Code Monkey logo

hzero-message's Introduction

hzero-message

消息管理
-- Home Page --

Introduction

消息管理,平台统一的消息推送入口

Documentation

Features

  • 公告管理:管理系统的公告与通知
  • 模板管理:发送消息的内容模板
  • 账户配置:邮箱、短信、企业微信、微信公众号、钉钉、webhook配置
  • 消息发送配置:模板与账户关联
  • 消息接收配置:允许用户指定消息接收方式
  • 消息监控:消息发送的记录

Architecture

Functions

  • 公告管理

  • 模板管理

  • 邮箱账户

  • 消息发送配置

  • 消息接收配置

Dependencies

  • 服务 maven 坐标
<dependency>
    <groupId>org.hzero</groupId>
    <artifactId>hzero-message-saas</artifactId>
    <version>${hzero.service.version}</version>
</dependency>

Contributing

欢迎参与项目贡献!比如提交PR修复一个bug,或者新建Issue讨论新特性或者变更。

Copyright (c) 2020-present, HZERO

hzero-message's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

hzero-message's Issues

创建 公告/通知 接收记录,为何需要将任一草稿状态的历史记录也一并创建?

代码路径 org.hzero.message.app.service.impl.NoticeReceiverServiceImpl#createNoticeReceiver

相关代码

NoticePublished noticePublished = new NoticePublished().setNoticeId(noticeId).setTenantId(organizationId)
                .setPublishedStatusCode(HmsgConstant.PublishedStatus.DRAFT);
        int count = noticePublishedRepository.selectCount(noticePublished);
        if (count > 0) {
            noticePublished = noticePublishedRepository.selectOne(noticePublished);
            List<NoticeReceiver> oldReceiverList = noticeReceiverRepository
                    .select(new NoticeReceiver().setPublishedId(noticePublished.getPublishedId()));
            noticeReceiveList.addAll(oldReceiverList);
            for (NoticeReceiver noticeReceiver : noticeReceiveList) {
                noticeReceiver.setPublishedId(noticePublished.getPublishedId());
                noticeReceiver.setReceiverSourceId(noticeReceiver.getReceiverSourceId() == null ? BaseConstants.DEFAULT_TENANT_ID : noticeReceiver.getReceiverSourceId());
            }
            noticeReceiverRepository.batchDelete(oldReceiverList);
            noticeReceiverRepository.batchInsert(noticeReceiveList.stream().distinct().collect(Collectors.toList()));
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.