作者 yangfu

model fix

正在显示 20 个修改的文件 包含 310 行增加0 行删除
version: v1
kind: HttpApi
metadata:
service: productRecord
path: /product-records
endpoints:
- method: createProductRecord
route:
post: /
- method: updateProductRecord
route:
put: /{productRecordId}
- method: getProductRecord
route:
get: /{productRecordId}
- method: removeProductRecord
route:
delete: /{productRecordId}
- method: listProductRecord
route:
get: /
params:
- name: offset
- name: limit
- method: approveProductRecord
route:
post: /approve
\ No newline at end of file
... ...
version: v1
kind: Attribute
metadata:
name: employeeProductRecordId
description: 员工产能记录ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: participateType
description: 参与类型 1:正常 2:支援
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: productWeigh
description: 产能
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: secondLevelWeigh
description: 二级品产能
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: workshopProductRecordId
description: 车间生产记录ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: planDispatchStatus
description: 计划状态 1:上线 2:下线
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: productPlanDispatchRecordId
description: 生产计划调度ID
type:
primitive: int
... ...
version: v1
kind: Schema
metadata:
name: employeeProductRecord
description: 员工生产记录
attributes:
- ref: employeeProductRecordId
required: true
- ref: workStation
required: true
- ref: workOn
required: true
- ref: participateType
required: true
- ref: productWeigh
required: true
- ref: secondLevelWeigh
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- name: ext
description: 扩展
type:
primitive: string
- name: version
description: 版本号
type:
primitive: int
- name: productRecordInfo
description: 生产记录信息
type:
schema: productRecordInfo
... ...
version: v1
kind: Schema
metadata:
name: productPlanDispatchRecord
description: 生产计划
attributes:
- ref: productPlanDispatchRecordId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: batchNumber
required: true
- ref: productDate
required: true
- ref: planDispatchStatus
required: true
- ref: workStation
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- name: planDispatchRecordExt
description: 计划调度记录扩展数据
type:
primitive: string
- name: ext
description: 其他扩展数据
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: workshopProductRecord
description: 员工生产记录
attributes:
- ref: workshopProductRecordId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: workStation
required: true
- name: productDate
description: 生产日期
type:
primitive: string
- ref: productWeigh
required: true
- ref: secondLevelWeigh
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- name: ext
description: 扩展
type:
primitive: string
- name: version
description: 版本号
type:
primitive: int
- name: productRecordInfo
description: 生产记录信息
type:
schema: productRecordInfo
... ...
version: v1
kind: Schema
metadata:
name: workshopWorkTimeRecord
description: 车间工时记录
attributes:
- name: workshopWorkTimeRecordId
description: 车间工时记录ID
type:
primitive: string
- ref: workStation
required: true
- ref: createdAt
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- name: workshopWorkTimeRecordInfo
description: 记录信息
type:
primitive: string
- name: ext
description: 扩展数据
type:
primitive: string
- name: recordDate
description: 记录日期
type:
primitive: string
... ...
version: v1
kind: Method
metadata:
name: approveProductRecord
type: command
description: 生产记录审核
payload:
- ref: productRecordId
required: true
result:
- name: productRecord
type:
schema: productRecord
required: true
... ...
version: v1
kind: Method
metadata:
name: createProductRecord
type: command
description: 创建生产记录服务
payload:
- ref: productRecordId
required: true
result:
- name: productRecord
type:
schema: productRecord
required: true
... ...
version: v1
kind: Method
metadata:
name: getProductRecord
type: query
description: 返回生产记录服务
payload:
- ref: productRecordId
required: true
result:
- name: productRecord
type:
schema: productRecord
required: true
... ...
version: v1
kind: Method
metadata:
name: listProductRecord
type: query
description: 返回生产记录服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: productRecords
type:
array: productRecord
required: true
... ...
version: v1
kind: Method
metadata:
name: removeProductRecord
type: command
description: 移除生产记录服务
payload:
- ref: productRecordId
required: true
result:
- name: productRecord
type:
schema: productRecord
required: true
... ...
version: v1
kind: Method
metadata:
name: updateProductRecord
type: command
description: 更新生产记录服务
payload:
- ref: productRecordId
required: true
result:
- name: productRecord
type:
schema: productRecord
required: true
... ...
version: v1
kind: Service
metadata:
name: productRecord
description: 生产记录服务
... ...