作者 陈志颖

docs:订单dsl调整

正在显示 28 个修改的文件 包含 101 行增加73 行删除
version: v1
kind: Attribute
metadata:
name: goodsDetail
description: 商品详情
type:
schema: goodsDetail
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: goodsDividend
description: 货品分红统计
description: 商品分红支付信息
type:
schema: goodsDividend
schema: dividend
... ...
version: v1
kind: Attribute
metadata:
name: goodsDividendStatus
description: 商品分红支付状态
type:
primitive: int
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: goodsId
description: 订单项id
description: 商品id
type:
primitive: int64
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: goodsName
description: 品名称
description: 品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: expectNumber
name: goodsNum
description: 预定的货品数量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: dividendRatio
description: 合伙人分红比例
name: goodsTotalPrice
description: 商品单价
type:
primitive: float64
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: remark
description: 品备注信息
description: 品备注信息
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: price
description: 货品单价
name: adjustedTotalPrice
description: 调整后的总价
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: num
description: 数量
name: goodsDetailId
description: 商品详情id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: reason
description: 商品调整原因
type:
primitive: string
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: orderDetail
description: 订单详情
type:
schema: orderDetail
schema: orderDetail
\ No newline at end of file
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: orderDividend
description: 订单分红统计
description: 订单分红信息
type:
schema: dividend
... ...
version: v1
kind: Attribute
metadata:
name: dividendStatus
description: 合伙人分红支付转状态
name: orderDividendStatus
description: 订单分红支付状态
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: actualDividend
description: 实际分红
name: orderNum
description: 订单商品总数
type:
primitive: float32
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: orderStatus
description: 订单状态(1.发货;2.收货;3.退货;4.取消;5.完成)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: expectDividend
description: 预计分红
name: totalPrice
description: 订单总价
type:
primitive: float32
primitive: float64
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: orderType
description: 订单类型
description: 订单类型(1.实际订单;2.意向订单)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: expensesDividend
description: 支出分红
name: adjustedNum
description: 调整后的订单商品总数
type:
primitive: float32
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: receivedDividend
description: 已收分红
name: adjustedTotalPrice
description: 调整后的订单商品总价
type:
primitive: float32
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: uncollectedDividend
description: 未收分红
name: orderDetailId
description: 订单详情id
type:
primitive: float32
primitive: float64
... ...
... ... @@ -6,27 +6,19 @@ metadata:
attributes:
- ref: goodsId
required: true
- ref: actualNumber
required: true
- ref: dividendStatus
required: true
- ref: expectNumber
- ref: goodsNum
required: true
- ref: goodsDividend
required: true
- ref: dividendRatio
- ref: goodsDividendStatus
required: true
- ref: goodsName
required: true
- ref: price
- ref: goodsTotalPrice
required: true
- ref: remark
required: true
- ref: orderId
required: true
- ref: companyId
- ref: orderNo
required: true
- name: reason
description: 原因
type:
primitive: string
- name: goodsDetail
required: true
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: goodsDividend
description: 货品分红
name: goodsDetail
description: 商品详情
attributes:
- ref: actualDividend
- ref: goodsDetailId
required: true
- ref: expectDividend
- ref: adjustedNum
required: true
- ref: uncollectedDividend
- ref: adjustedTotalPrice
required: true
- ref: receivedDividend
required: true
- ref: expensesDividend
- ref: reason
required: true
... ...
... ... @@ -4,6 +4,8 @@ metadata:
name: order
description: 订单实体
attributes:
- ref: orderId
required: true
- ref: buyer
required: true
- ref: companyId
... ... @@ -12,19 +14,23 @@ metadata:
required: true
- ref: isDisable
required: true
- ref: orderCode
- ref: orderNo
required: true
- ref: orderDetail
required: true
- ref: orderDividend
required: true
- ref: orderGoods
- ref: orderDividendStatus
required: true
- ref: orderId
- ref: orderGoods
required: true
- ref: orderSource
required: true
- ref: orderType
required: true
- ref: orderStatus
required: true
- ref: orderTotalPrice
required: true
- ref: remark
required: true
... ...
... ... @@ -4,23 +4,27 @@ metadata:
name: orderDetail
description: 订单详情
attributes:
- name: orderCount
- name: orderDetailId
description: 订单详情id
type:
primitive: int64
- name: orderNo
descriptiopn: 订单编号
type:
primitive: string
- name: orderNum
description: 订单数量
type:
primitive: int
- name: orderAmount
- name: totalPrice
description: 订单总金额
type:
primitive: float64
- name: orderAdjustCount
- name: adjustedNum
description: 调整后订单数量
type:
primitive: int
- name: orderAdjustmount
- name: adjustedTotalPrice
description: 调整后订单总金额
type:
primitive: float64
- name: price
description: 单价
type:
primitive: float64
primitive: float64
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: command
description: 创建订单增删改查
payload:
- ref: orderCode
- ref: orderNo
required: true
result:
- name: order
... ...
... ... @@ -21,9 +21,9 @@
```
├─conf 项目配置文件
├─deploy 项目部署文件
├─document 项目dsl文档、openapi文档
├─document 项目dsl文档、openapi文档
├─pkg
│ ├─application 应用服务层
│ ├─application 应用服务层(调度编排仓储、dao、领域服务等,完成User Case)
│ │ ├─order 订单应用服务
│ │ ├─dividend 分红应用服务
│ │ ├─company 公司管理服务
... ... @@ -32,11 +32,11 @@
│ │ ├─partner 合伙人应用服务
│ │ └─users 用户管理应用服务
│ ├─domain 领域模型层(核心数据处理,接口定义)
│ │ ├─event 领域事件定义
│ │ └─service 领域服务定义
│ │ ├─event 领域事件定义
│ │ └─service 领域服务定义
│ ├─infrastructure 基础设施层
│ │ ├─dao 特殊的数据库操作
│ │ ├─domainService 实现领域服务
│ │ ├─dao 特殊的数据库操作
│ │ ├─domainService 实现领域服务(操作多个领域对象,实现领域内的业务逻辑)
│ │ ├─pg 数据库模型定义
│ │ ├─repository 数据仓储具体实现(对应domain定义数据库的数据存储接口)
│ │ └─serviceGateway 其他系统服务调用
... ...