正在显示
20 个修改的文件
包含
311 行增加
和
1 行删除
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: productRecord | ||
| 5 | + path: /product-records | ||
| 6 | + endpoints: | ||
| 7 | + - method: createProductRecord | ||
| 8 | + route: | ||
| 9 | + post: / | ||
| 10 | + - method: updateProductRecord | ||
| 11 | + route: | ||
| 12 | + put: /{productRecordId} | ||
| 13 | + - method: getProductRecord | ||
| 14 | + route: | ||
| 15 | + get: /{productRecordId} | ||
| 16 | + - method: removeProductRecord | ||
| 17 | + route: | ||
| 18 | + delete: /{productRecordId} | ||
| 19 | + - method: listProductRecord | ||
| 20 | + route: | ||
| 21 | + get: / | ||
| 22 | + params: | ||
| 23 | + - name: offset | ||
| 24 | + - name: limit | ||
| 25 | + - method: approveProductRecord | ||
| 26 | + route: | ||
| 27 | + post: /approve |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: employeeProductRecord | ||
| 5 | + description: 员工生产记录 | ||
| 6 | + attributes: | ||
| 7 | + - ref: employeeProductRecordId | ||
| 8 | + required: true | ||
| 9 | + - ref: workStation | ||
| 10 | + required: true | ||
| 11 | + - ref: workOn | ||
| 12 | + required: true | ||
| 13 | + - ref: participateType | ||
| 14 | + required: true | ||
| 15 | + - ref: productWeigh | ||
| 16 | + required: true | ||
| 17 | + - ref: secondLevelWeigh | ||
| 18 | + required: true | ||
| 19 | + - ref: createdAt | ||
| 20 | + required: true | ||
| 21 | + - ref: updatedAt | ||
| 22 | + required: true | ||
| 23 | + - ref: deletedAt | ||
| 24 | + required: true | ||
| 25 | + - name: ext | ||
| 26 | + description: 扩展 | ||
| 27 | + type: | ||
| 28 | + primitive: string | ||
| 29 | + - name: version | ||
| 30 | + description: 版本号 | ||
| 31 | + type: | ||
| 32 | + primitive: int | ||
| 33 | + - name: productRecordInfo | ||
| 34 | + description: 生产记录信息 | ||
| 35 | + type: | ||
| 36 | + schema: productRecordInfo |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: productPlanDispatchRecord | ||
| 5 | + description: 生产计划 | ||
| 6 | + attributes: | ||
| 7 | + - ref: productPlanDispatchRecordId | ||
| 8 | + required: true | ||
| 9 | + - ref: companyId | ||
| 10 | + required: true | ||
| 11 | + - ref: orgId | ||
| 12 | + required: true | ||
| 13 | + - ref: batchNumber | ||
| 14 | + required: true | ||
| 15 | + - ref: productDate | ||
| 16 | + required: true | ||
| 17 | + - ref: planDispatchStatus | ||
| 18 | + required: true | ||
| 19 | + - ref: workStation | ||
| 20 | + required: true | ||
| 21 | + - ref: createdAt | ||
| 22 | + required: true | ||
| 23 | + - ref: updatedAt | ||
| 24 | + required: true | ||
| 25 | + - ref: deletedAt | ||
| 26 | + required: true | ||
| 27 | + - name: planDispatchRecordExt | ||
| 28 | + description: 计划调度记录扩展数据 | ||
| 29 | + type: | ||
| 30 | + primitive: string | ||
| 31 | + - name: ext | ||
| 32 | + description: 其他扩展数据 | ||
| 33 | + type: | ||
| 34 | + primitive: string |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: workshopProductRecord | ||
| 5 | + description: 员工生产记录 | ||
| 6 | + attributes: | ||
| 7 | + - ref: workshopProductRecordId | ||
| 8 | + required: true | ||
| 9 | + - ref: companyId | ||
| 10 | + required: true | ||
| 11 | + - ref: orgId | ||
| 12 | + required: true | ||
| 13 | + - ref: workStation | ||
| 14 | + required: true | ||
| 15 | + - name: productDate | ||
| 16 | + description: 生产日期 | ||
| 17 | + type: | ||
| 18 | + primitive: string | ||
| 19 | + - ref: productWeigh | ||
| 20 | + required: true | ||
| 21 | + - ref: secondLevelWeigh | ||
| 22 | + required: true | ||
| 23 | + - ref: createdAt | ||
| 24 | + required: true | ||
| 25 | + - ref: updatedAt | ||
| 26 | + required: true | ||
| 27 | + - ref: deletedAt | ||
| 28 | + required: true | ||
| 29 | + - name: ext | ||
| 30 | + description: 扩展 | ||
| 31 | + type: | ||
| 32 | + primitive: string | ||
| 33 | + - name: version | ||
| 34 | + description: 版本号 | ||
| 35 | + type: | ||
| 36 | + primitive: int | ||
| 37 | + - name: productRecordInfo | ||
| 38 | + description: 生产记录信息 | ||
| 39 | + type: | ||
| 40 | + schema: productRecordInfo |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: workshopWorkTimeRecord | ||
| 5 | + description: 车间工时记录 | ||
| 6 | + attributes: | ||
| 7 | + - name: workshopWorkTimeRecordId | ||
| 8 | + description: 车间工时记录ID | ||
| 9 | + type: | ||
| 10 | + primitive: string | ||
| 11 | + - ref: workStation | ||
| 12 | + required: true | ||
| 13 | + - ref: createdAt | ||
| 14 | + required: true | ||
| 15 | + - ref: companyId | ||
| 16 | + required: true | ||
| 17 | + - ref: orgId | ||
| 18 | + required: true | ||
| 19 | + - name: workshopWorkTimeRecordInfo | ||
| 20 | + description: 记录信息 | ||
| 21 | + type: | ||
| 22 | + primitive: string | ||
| 23 | + - name: ext | ||
| 24 | + description: 扩展数据 | ||
| 25 | + type: | ||
| 26 | + primitive: string | ||
| 27 | + - name: recordDate | ||
| 28 | + description: 记录日期 | ||
| 29 | + type: | ||
| 30 | + primitive: string | ||
| 31 | + |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listProductRecord | ||
| 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: productRecords | ||
| 16 | + type: | ||
| 17 | + array: productRecord | ||
| 18 | + required: true |
-
请 注册 或 登录 后发表评论