作者 yangfu
正在显示 34 个修改的文件 包含 456 行增加14 行删除
version: v1
kind: HttpApi
metadata:
service: dictionary
path: /dictionarys
endpoints:
- method: createDictionary
route:
post: /
- method: updateDictionary
route:
put: /{Id}
- method: getDictionary
route:
get: /{Id}
- method: removeDictionary
route:
delete: /{Id}
- method: listDictionary
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: content
description: 内容模板
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: isPush
description: 是否推送 【是:1】【否:2】
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: module
description: 消息对应的业务模块
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: moduleAction
description: 业务环节
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: noticeEmptyId
description: 消息id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: sysCode
description: 消息对应的编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: sysCode
description: 消息对应的编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: sysCode
description: 消息对应的编码
type:
primitive: string
... ...
version: v1
kind: Project
metadata:
name: project
description: 天联平台基础
version: 0.0.1
repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic
contact:
name:
email:
... ...
... ... @@ -16,14 +16,16 @@ metadata:
description: 字典名称
type:
primitive: string
- name: enableStatus
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- name: desc
description: 备注信息
type:
primitive: string
- name: canDelete
description: 是否可以删除【1:不可以】【2:可以】
typee:
primitive: int
- name: canEdit
description: 是否可以编辑【1:不可以】【2:可以】
- name: dictItems
description: 字典值列表
type:
... ...
version: v1
kind: Schema
metadata:
name: noticeEmpty
description: 系统默认的空白消息配置样板
attributes:
- ref: noticeEmptyId
required: true
- ref: content
required: true
- ref: isPush
required: true
- ref: module
required: true
- ref: moduleAction
required: true
- ref: sysCode
required: true
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: Schema
metadata:
name: noticePersonal
description: 个人的消息通知
description: 个人消息通知内容
attributes:
- ref: createdAt
required: true
... ... @@ -26,5 +26,7 @@ metadata:
required: true
- ref: organizationId
required: true
- ref: sysCode
required: true
- ref: userId
required: true
... ...
version: v1
kind: Schema
metadata:
name: noticeSetting
name: noticSetting
description: 编排消息通知内容
attributes:
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
- ref: companyId
required: true
- ref: content
required: true
- ref: isPush
required: true
- ref: module
required: true
- ref: moduleAction
required: true
- ref: noticeSettingId
required: true
- ref: organizationId
required: true
- ref: isPush
- ref: sysCode
required: true
- ref: noticeSettingId
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Method
metadata:
name: createDictionary
type: command
description: 创建数据字典设置
payload:
- name: dictionary
type:
schema: dictionary
required: true
result:
- name: dictionary
type:
schema: dictionary
required: true
... ...
version: v1
kind: Method
metadata:
name: getDictionary
type: query
description: 返回数据字典设置
payload:
- ref: dictCode
required: true
result:
- name: dictionary
type:
schema: dictionary
required: true
... ...
version: v1
kind: Method
metadata:
name: listDictionary
type: query
description: 返回数据字典设置列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: dictionarys
type:
array: dictionary
required: true
... ...
version: v1
kind: Method
metadata:
name: removeDictionary
type: command
description: 移除数据字典设置
payload:
- ref: dictionaryId
required: true
result:
- name: dictionary
type:
schema: dictionary
required: true
... ...
version: v1
kind: Method
metadata:
name: updateDictionary
type: command
description: 更新数据字典设置
payload:
- name: dictionary
type:
schema: dictionary
required: true
result:
- name: dictionary
type:
schema: dictionary
required: true
... ...
version: v1
kind: Service
metadata:
name: dictionary
description: 数据字典设置
... ...
version: v1
kind: Method
metadata:
name: agreeJoinCreationProject
type: command
description: 消息:共创申请审核通过
payload:
- name: userId
description: 接收方用户id
type:
primitive: int64
- name: creationProjectId
description: 共创项目id
type:
primitive: int64
- name: creationProjectName
description: 共创项目名称
type:
primitive: string
- name: creationProjectNumber
description: 共创项目编号
type:
primitive: string
result:
- ref: noticePersonalId
required: true
... ...
version: v1
kind: Method
metadata:
name: getNoticePersonalList
type: query
description: 获取消息列表
payload:
- name: userId
description: 接收方用户的id
type:
primitive: int64
- name: offset
description: 分页偏移量
type:
primitive: int64
- name: limit
description: 每页限制数量 默认20
type:
primitive: int64
- name: isRead
description: 是否是已读
type:
primitive: int
result:
- name: noticePersonal
type:
schema: noticePersonal
required: true
... ...
version: v1
kind: Method
metadata:
name: informExpectedDividends
type: command
description: 消息:分红预算消息
payload:
- name: userId
description: 用户id
type:
primitive: int64
- name: creationProjectId
description: 共创项目id
type:
primitive: int64
- name: creationProjectName
description: 共创项目名称
type:
primitive: string
- name: creationContractId
description: 共创合约id
type:
primitive: int64
- name: creationContractName
description: 共创合约名称
type:
primitive: string
- name: creationContractNumber
description: 共创合约编号
type:
primitive: string
- name: productName
description: 产品名称
type:
primitive: string
result:
- ref: noticePersonalId
required: true
... ...
version: v1
kind: Method
metadata:
name: informJoinCreationContract
type: command
description: 消息:共创确认
payload:
- name: userId
description: 接收方用户id
type:
primitive: int64
- name: creationProjectId
description: 共创项目id
type:
primitive: int64
- name: creationProjectName
description: 共创项目名称
type:
primitive: string
- name: creationContractId
description: 共创合约id
type:
primitive: int64
- name: creationContractName
description: 共创合约名称
type:
primitive: string
- name: creationContractNumber
description: 共创合约编号
type:
primitive: string
result:
- ref: noticePersonalId
required: true
... ...
version: v1
kind: Method
metadata:
name: refuseJoinCreationProject
type: command
description: 消息:共创申请审核拒绝
payload:
- name: userId
description: 接收方用户id
type:
primitive: int64
- name: creationProjectId
description: 共创项目id
type:
primitive: int64
- name: creationProjectName
description: 共创项目名称
type:
primitive: string
- name: creationProjectNumber
description: 共创项目编号
type:
primitive: string
result:
- ref: noticePersonalId
required: true
... ...
version: v1
kind: Service
metadata:
name: noticePersonal
description: 个人消息通知
... ...
version: v1
kind: Method
metadata:
name: getNoticeSetting
type: query
description: 返回编排消息通知内容
payload:
- ref: noticeSettingId
required: true
result:
- name: noticeSetting
type:
schema: noticeSetting
required: true
... ...
version: v1
kind: Method
metadata:
name: listNoticeSetting
type: query
description: 返回编排消息通知内容列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: noticeSettings
type:
array: noticeSetting
required: true
... ...
version: v1
kind: Method
metadata:
name: removeNoticeSetting
type: command
description: 移除编排消息通知内容
payload:
- ref: noticeSettingId
required: true
result:
- name: noticeSetting
type:
schema: noticeSetting
required: true
... ...
version: v1
kind: Method
metadata:
name: updateNoticeSetting
type: command
description: 更新编排消息通知内容
payload:
- name: dictionary
type:
schema: dictionary
required: true
result:
- name: noticeSetting
type:
schema: noticeSetting
required: true
... ...
version: v1
kind: Service
metadata:
name: noticeSetting
description: 编排消息通知内容
... ...
version: v1
kind: Attribute
metadata:
name: creationContractNumber
description: 共创合约编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderId
description: 分红订单ID
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: dividendsOrderNumber
description: 分红订单源单号
type:
primitive: int64
... ...