作者 tangxuhui

新增 字典方法,消息方法

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: 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: 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: 编排消息通知内容
... ...