作者 陈志颖

docs:编辑合伙人dsl

  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dataSourceId
  5 + description: 订单数据来源id
  6 + type:
  7 + primitive: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: account  
5 - description: 合伙人登录账号 4 + name: platform
  5 + description: 订单数据来源平台
6 type: 6 type:
7 primitive: string 7 primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dataSource
  5 + description: 订单数据来源
  6 + type:
  7 + schema: dataSource
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: deliveryCode
  5 + description: 发货单号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: partnerInfo
  5 + description: 合伙人信息
  6 + type:
  7 + schema: partnerInfo
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: partnerAccount
  5 + description: 合伙人账号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: permissions
  5 + description: 用户权限
  6 + type:
  7 + array: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: email
  5 + description: 邮件地址
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: entryTime
  5 + description: 入职时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: extension
  5 + description: 分机
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: gender
  5 + description: 性别
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: jobNumber
  5 + description: 工号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: privateNumber
  5 + description: 私人电话
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: workplace
  5 + description: 工作地
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dataSource
  5 + description: 订单数据来源
  6 + attributes:
  7 + - ref: dataSourceId
  8 + required: true
  9 + - ref: platform
  10 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: orderItem
  5 + description: 订单货品
  6 + attributes:
  7 + - ref: actualNumber
  8 + required: true
  9 + - ref: dividendRatio
  10 + required: true
  11 + - ref: dividendStatus
  12 + required: true
  13 + - ref: expectNumber
  14 + required: true
  15 + - ref: itemName
  16 + required: true
  17 + - ref: itemStatistics
  18 + required: true
  19 + - ref: orderItemId
  20 + required: true
  21 + - ref: price
  22 + required: true
  23 + - ref: remarks
  24 + required: true
  25 + - ref: companyId
  26 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: partnerInfo
  5 + description: 合伙人信息
  6 + attributes:
  7 + - ref: partnerAccount
  8 + required: true
  9 + - ref: partnerName
  10 + required: true
  11 + - ref: regionInfo
  12 + required: true
@@ -14,3 +14,17 @@ metadata: @@ -14,3 +14,17 @@ metadata:
14 required: true 14 required: true
15 - ref: userName 15 - ref: userName
16 required: true 16 required: true
  17 + - ref: email
  18 + required: true
  19 + - ref: gender
  20 + required: true
  21 + - ref: entryTime
  22 + required: true
  23 + - ref: extension
  24 + required: true
  25 + - ref: workplace
  26 + required: true
  27 + - ref: privateNumber
  28 + required: true
  29 + - ref: jobNumber
  30 + required: true
@@ -84,4 +84,6 @@ @@ -84,4 +84,6 @@
84 ### 分离领域 84 ### 分离领域
85 ![dispatch](http://gitlab.fjmaimaimai.com/chenzhiying/img-folder/raw/master/dispatch.png) 85 ![dispatch](http://gitlab.fjmaimaimai.com/chenzhiying/img-folder/raw/master/dispatch.png)
86 86
87 -## 功能模块划分 87 +## 功能模块实现
  88 +### 订单任务状态机
  89 +![order-fsm](http://gitlab.fjmaimaimai.com/chenzhiying/img-folder/raw/master/order-fsm.png)