作者 tangxuhui

新增 字典方法,消息方法

  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: dictionary
  5 + path: /dictionarys
  6 + endpoints:
  7 + - method: createDictionary
  8 + route:
  9 + post: /
  10 + - method: updateDictionary
  11 + route:
  12 + put: /{Id}
  13 + - method: getDictionary
  14 + route:
  15 + get: /{Id}
  16 + - method: removeDictionary
  17 + route:
  18 + delete: /{Id}
  19 + - method: listDictionary
  20 + route:
  21 + get: /
  22 + params:
  23 + - name: offset
  24 + - name: limit
  1 +version: v1
  2 +kind: Project
  3 +metadata:
  4 + name: project
  5 + description: 天联平台基础
  6 + version: 0.0.1
  7 + repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic
  8 + contact:
  9 + name:
  10 + email:
@@ -16,14 +16,16 @@ metadata: @@ -16,14 +16,16 @@ metadata:
16 description: 字典名称 16 description: 字典名称
17 type: 17 type:
18 primitive: string 18 primitive: string
19 - - name: enableStatus  
20 - description: 启用状态(启用:1 禁用:2)  
21 - type:  
22 - primitive: int  
23 - name: desc 19 - name: desc
24 description: 备注信息 20 description: 备注信息
25 type: 21 type:
26 primitive: string 22 primitive: string
  23 + - name: canDelete
  24 + description: 是否可以删除【1:不可以】【2:可以】
  25 + typee:
  26 + primitive: int
  27 + - name: canEdit
  28 + description: 是否可以编辑【1:不可以】【2:可以】
27 - name: dictItems 29 - name: dictItems
28 description: 字典值列表 30 description: 字典值列表
29 type: 31 type:
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createDictionary
  5 + type: command
  6 + description: 创建数据字典设置
  7 + payload:
  8 + - name: dictionary
  9 + type:
  10 + schema: dictionary
  11 + required: true
  12 + result:
  13 + - name: dictionary
  14 + type:
  15 + schema: dictionary
  16 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getDictionary
  5 + type: query
  6 + description: 返回数据字典设置
  7 + payload:
  8 + - ref: dictCode
  9 + required: true
  10 + result:
  11 + - name: dictionary
  12 + type:
  13 + schema: dictionary
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listDictionary
  5 + type: query
  6 + description: 返回数据字典设置列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + result:
  13 + - ref: count
  14 + required: true
  15 + - name: dictionarys
  16 + type:
  17 + array: dictionary
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeDictionary
  5 + type: command
  6 + description: 移除数据字典设置
  7 + payload:
  8 + - ref: dictionaryId
  9 + required: true
  10 + result:
  11 + - name: dictionary
  12 + type:
  13 + schema: dictionary
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateDictionary
  5 + type: command
  6 + description: 更新数据字典设置
  7 + payload:
  8 + - name: dictionary
  9 + type:
  10 + schema: dictionary
  11 + required: true
  12 + result:
  13 + - name: dictionary
  14 + type:
  15 + schema: dictionary
  16 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: dictionary
  5 + description: 数据字典设置
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: agreeJoinCreationProject
  5 + type: command
  6 + description: 消息:共创申请审核通过
  7 + payload:
  8 + - name: userId
  9 + description: 接收方用户id
  10 + type:
  11 + primitive: int64
  12 + - name: creationProjectId
  13 + description: 共创项目id
  14 + type:
  15 + primitive: int64
  16 + - name: creationProjectName
  17 + description: 共创项目名称
  18 + type:
  19 + primitive: string
  20 + - name: creationProjectNumber
  21 + description: 共创项目编号
  22 + type:
  23 + primitive: string
  24 + result:
  25 + - ref: noticePersonalId
  26 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getNoticePersonalList
  5 + type: query
  6 + description: 获取消息列表
  7 + payload:
  8 + - name: userId
  9 + description: 接收方用户的id
  10 + type:
  11 + primitive: int64
  12 + - name: offset
  13 + description: 分页偏移量
  14 + type:
  15 + primitive: int64
  16 + - name: limit
  17 + description: 每页限制数量 默认20
  18 + type:
  19 + primitive: int64
  20 + - name: isRead
  21 + description: 是否是已读
  22 + type:
  23 + primitive: int
  24 + result:
  25 + - name: noticePersonal
  26 + type:
  27 + schema: noticePersonal
  28 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: informExpectedDividends
  5 + type: command
  6 + description: 消息:分红预算消息
  7 + payload:
  8 + - name: userId
  9 + description: 用户id
  10 + type:
  11 + primitive: int64
  12 + - name: creationProjectId
  13 + description: 共创项目id
  14 + type:
  15 + primitive: int64
  16 + - name: creationProjectName
  17 + description: 共创项目名称
  18 + type:
  19 + primitive: string
  20 + - name: creationContractId
  21 + description: 共创合约id
  22 + type:
  23 + primitive: int64
  24 + - name: creationContractName
  25 + description: 共创合约名称
  26 + type:
  27 + primitive: string
  28 + - name: creationContractNumber
  29 + description: 共创合约编号
  30 + type:
  31 + primitive: string
  32 + - name: productName
  33 + description: 产品名称
  34 + type:
  35 + primitive: string
  36 + result:
  37 + - ref: noticePersonalId
  38 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: informJoinCreationContract
  5 + type: command
  6 + description: 消息:共创确认
  7 + payload:
  8 + - name: userId
  9 + description: 接收方用户id
  10 + type:
  11 + primitive: int64
  12 + - name: creationProjectId
  13 + description: 共创项目id
  14 + type:
  15 + primitive: int64
  16 + - name: creationProjectName
  17 + description: 共创项目名称
  18 + type:
  19 + primitive: string
  20 + - name: creationContractId
  21 + description: 共创合约id
  22 + type:
  23 + primitive: int64
  24 + - name: creationContractName
  25 + description: 共创合约名称
  26 + type:
  27 + primitive: string
  28 + - name: creationContractNumber
  29 + description: 共创合约编号
  30 + type:
  31 + primitive: string
  32 + result:
  33 + - ref: noticePersonalId
  34 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: refuseJoinCreationProject
  5 + type: command
  6 + description: 消息:共创申请审核拒绝
  7 + payload:
  8 + - name: userId
  9 + description: 接收方用户id
  10 + type:
  11 + primitive: int64
  12 + - name: creationProjectId
  13 + description: 共创项目id
  14 + type:
  15 + primitive: int64
  16 + - name: creationProjectName
  17 + description: 共创项目名称
  18 + type:
  19 + primitive: string
  20 + - name: creationProjectNumber
  21 + description: 共创项目编号
  22 + type:
  23 + primitive: string
  24 + result:
  25 + - ref: noticePersonalId
  26 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: noticePersonal
  5 + description: 个人消息通知
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getNoticeSetting
  5 + type: query
  6 + description: 返回编排消息通知内容
  7 + payload:
  8 + - ref: noticeSettingId
  9 + required: true
  10 + result:
  11 + - name: noticeSetting
  12 + type:
  13 + schema: noticeSetting
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listNoticeSetting
  5 + type: query
  6 + description: 返回编排消息通知内容列表
  7 + payload:
  8 + - ref: offset
  9 + required: true
  10 + - ref: limit
  11 + required: true
  12 + result:
  13 + - ref: count
  14 + required: true
  15 + - name: noticeSettings
  16 + type:
  17 + array: noticeSetting
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeNoticeSetting
  5 + type: command
  6 + description: 移除编排消息通知内容
  7 + payload:
  8 + - ref: noticeSettingId
  9 + required: true
  10 + result:
  11 + - name: noticeSetting
  12 + type:
  13 + schema: noticeSetting
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateNoticeSetting
  5 + type: command
  6 + description: 更新编排消息通知内容
  7 + payload:
  8 + - name: dictionary
  9 + type:
  10 + schema: dictionary
  11 + required: true
  12 + result:
  13 + - name: noticeSetting
  14 + type:
  15 + schema: noticeSetting
  16 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: noticeSetting
  5 + description: 编排消息通知内容