美文网首页
小企业Finance服务外部事件

小企业Finance服务外部事件

作者: 经纬1988 | 来源:发表于2017-07-07 10:21 被阅读0次

小企业Finance服务外部事件

消息名:xqy_finance_external_events

消息类型:topic

描述

Finance通过本消息,发布对外部系统提供的公用事件。包括建账、删账(未实现)、结账、反结账等。
消息者通过订阅该消息,根据操作类型(operation)解析并处理相应的事件。

消息格式

Json格式的字符串。

{
    "operation": "操作类型",
    "content": {
        // 内容
    }
}

事件列表

新建账套
{
    "operation": "account_ create",
    "content": {
        "customerId": 123,  // type:integer
        "operator": "fujw"  
    }
}
删除账套
{
    "operation": "account_delete",
    "content": {
        "customerId": 123,  // type:integer
        "operator": "fujw"
    }
}
结账
{
    "operation": "account_close",
    "content": {
        "customerId": 123,  // type:integer
        "operator": "fujw",
        "period": "201706"  // format:yyyyMM
    }
}
反结账
{
    "operation": "account_reopen",
    "content": {
        "customerId": 123,  // type:integer
        "operator": "fujw",
        "period": "201706"  // format:yyyyMM
    }
}

相关文章

网友评论

      本文标题:小企业Finance服务外部事件

      本文链接:https://www.haomeiwen.com/subject/qsdlhxtx.html