正在显示
38 个修改的文件
包含
492 行增加
和
0 行删除
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: productMaterial | ||
| 5 | + path: /product-materials | ||
| 6 | + endpoints: | ||
| 7 | + - method: createProductMaterial | ||
| 8 | + route: | ||
| 9 | + post: / | ||
| 10 | + - method: updateProductMaterial | ||
| 11 | + route: | ||
| 12 | + put: /{productMaterialId} | ||
| 13 | + - method: getProductMaterial | ||
| 14 | + route: | ||
| 15 | + get: /{productMaterialId} | ||
| 16 | + - method: removeProductMaterial | ||
| 17 | + route: | ||
| 18 | + delete: /{productMaterialId} | ||
| 19 | + - method: listProductMaterial | ||
| 20 | + route: | ||
| 21 | + get: / | ||
| 22 | + params: | ||
| 23 | + - name: offset | ||
| 24 | + - name: limit |
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: productMaterialGroup | ||
| 5 | + path: /product-material-groups | ||
| 6 | + endpoints: | ||
| 7 | + - method: createProductMaterialGroup | ||
| 8 | + route: | ||
| 9 | + post: / | ||
| 10 | + - method: updateProductMaterialGroup | ||
| 11 | + route: | ||
| 12 | + put: /{productMaterialGroupId} | ||
| 13 | + - method: getProductMaterialGroup | ||
| 14 | + route: | ||
| 15 | + get: /{productMaterialGroupId} | ||
| 16 | + - method: removeProductMaterialGroup | ||
| 17 | + route: | ||
| 18 | + delete: /{productMaterialGroupId} | ||
| 19 | + - method: listProductMaterialGroup | ||
| 20 | + route: | ||
| 21 | + get: / | ||
| 22 | + params: | ||
| 23 | + - name: offset | ||
| 24 | + - name: limit |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: deviceDailyRunningRecord | ||
| 5 | + description: 设备每日运行记录(汇总) | ||
| 6 | + attributes: | ||
| 7 | + - ref: deviceDailyRunningRecordId | ||
| 8 | + required: true | ||
| 9 | + - ref: companyId | ||
| 10 | + required: true | ||
| 11 | + - ref: orgId | ||
| 12 | + required: true | ||
| 13 | + - ref: workStation | ||
| 14 | + required: true | ||
| 15 | + - ref: deviceId | ||
| 16 | + required: true | ||
| 17 | + - ref: deviceCode | ||
| 18 | + required: true | ||
| 19 | + - ref: deviceRunningRecordInfo | ||
| 20 | + required: true | ||
| 21 | + - ref: createdAt | ||
| 22 | + required: true | ||
| 23 | + - ref: updatedAt | ||
| 24 | + required: true | ||
| 25 | + - ref: deletedAt | ||
| 26 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: deviceRunningData | ||
| 5 | + description: 设备运行数据 | ||
| 6 | + attributes: | ||
| 7 | + - ref: startupState | ||
| 8 | + required: true | ||
| 9 | + - ref: comStatus | ||
| 10 | + required: true | ||
| 11 | + - ref: count | ||
| 12 | + required: true | ||
| 13 | + - ref: frontTemp | ||
| 14 | + required: true | ||
| 15 | + - ref: temp1 | ||
| 16 | + required: true | ||
| 17 | + - name: productType | ||
| 18 | + description: 当前产品种类(产品编号) | ||
| 19 | + type: | ||
| 20 | + primitive: string | ||
| 21 | + - ref: deviceCode | ||
| 22 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: deviceRunningRecord | ||
| 5 | + description: 设备运行记录 | ||
| 6 | + attributes: | ||
| 7 | + - ref: deviceRunningRecordId | ||
| 8 | + required: true | ||
| 9 | + - ref: companyId | ||
| 10 | + required: true | ||
| 11 | + - ref: orgId | ||
| 12 | + required: true | ||
| 13 | + - ref: workStation | ||
| 14 | + required: true | ||
| 15 | + - ref: deviceId | ||
| 16 | + required: true | ||
| 17 | + - ref: deviceCode | ||
| 18 | + required: true | ||
| 19 | + - ref: deviceRunningRecordInfo | ||
| 20 | + required: true | ||
| 21 | + - ref: createdAt | ||
| 22 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: productMaterial | ||
| 5 | + description: 生产物料 | ||
| 6 | + attributes: | ||
| 7 | + - ref: productMaterialId | ||
| 8 | + required: true | ||
| 9 | + - ref: companyId | ||
| 10 | + required: true | ||
| 11 | + - ref: orgId | ||
| 12 | + required: true | ||
| 13 | + - ref: productMaterialGroupId | ||
| 14 | + required: true | ||
| 15 | + - ref: materialNumber | ||
| 16 | + required: true | ||
| 17 | + - ref: materialName | ||
| 18 | + required: true | ||
| 19 | + - ref: materialAttribute | ||
| 20 | + required: true | ||
| 21 | + - ref: materialCategory | ||
| 22 | + required: true | ||
| 23 | + - ref: productMaterialExt | ||
| 24 | + required: true | ||
| 25 | + - ref: createdAt | ||
| 26 | + required: true | ||
| 27 | + - ref: updatedAt | ||
| 28 | + required: true | ||
| 29 | + - ref: deletedAt | ||
| 30 | + required: true | ||
| 31 | + - name: ext | ||
| 32 | + description: 扩展 | ||
| 33 | + type: | ||
| 34 | + primitive: string |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: productMaterialGroup | ||
| 5 | + description: 物料分组 | ||
| 6 | + attributes: | ||
| 7 | + - ref: productMaterialGroupId | ||
| 8 | + required: true | ||
| 9 | + - ref: companyId | ||
| 10 | + required: true | ||
| 11 | + - ref: orgId | ||
| 12 | + required: true | ||
| 13 | + - ref: pid | ||
| 14 | + required: true | ||
| 15 | + - ref: path | ||
| 16 | + required: true | ||
| 17 | + - ref: materialGroupName | ||
| 18 | + required: true | ||
| 19 | + - ref: materialGroupNumber | ||
| 20 | + required: true | ||
| 21 | + - ref: createdAt | ||
| 22 | + required: true | ||
| 23 | + - ref: updatedAt | ||
| 24 | + required: true | ||
| 25 | + - ref: deletedAt | ||
| 26 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: createProductMaterial | ||
| 5 | + type: command | ||
| 6 | + description: 创建生产物料服务 | ||
| 7 | + payload: | ||
| 8 | + - ref: productMaterialGroupId | ||
| 9 | + required: true | ||
| 10 | + - ref: materialNumber | ||
| 11 | + required: true | ||
| 12 | + - ref: materialName | ||
| 13 | + required: true | ||
| 14 | + - ref: materialAttribute | ||
| 15 | + required: true | ||
| 16 | + - ref: materialCategory | ||
| 17 | + required: true | ||
| 18 | + - ref: productMaterialExt | ||
| 19 | + required: true | ||
| 20 | + result: | ||
| 21 | + - name: productMaterial | ||
| 22 | + type: | ||
| 23 | + schema: productMaterial | ||
| 24 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listProductMaterial | ||
| 5 | + type: query | ||
| 6 | + description: 返回生产物料服务列表 | ||
| 7 | + payload: | ||
| 8 | + - ref: offset | ||
| 9 | + required: true | ||
| 10 | + - ref: limit | ||
| 11 | + required: true | ||
| 12 | + - ref: productMaterialGroupId | ||
| 13 | + required: true | ||
| 14 | + - ref: materialName | ||
| 15 | + required: true | ||
| 16 | + - ref: materialCategory | ||
| 17 | + required: true | ||
| 18 | + result: | ||
| 19 | + - ref: count | ||
| 20 | + required: true | ||
| 21 | + - name: productMaterials | ||
| 22 | + type: | ||
| 23 | + array: productMaterial | ||
| 24 | + required: true |
allied-creation-manufacture/services/productMaterialGroup/methods/createProductMaterialGroup.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: createProductMaterialGroup | ||
| 5 | + type: command | ||
| 6 | + description: 创建物料分组服务 | ||
| 7 | + payload: | ||
| 8 | + - ref: pid | ||
| 9 | + required: true | ||
| 10 | + - ref: materialGroupName | ||
| 11 | + required: true | ||
| 12 | + - ref: materialGroupNumber | ||
| 13 | + result: | ||
| 14 | + - name: productMaterialGroup | ||
| 15 | + type: | ||
| 16 | + schema: productMaterialGroup | ||
| 17 | + required: true |
allied-creation-manufacture/services/productMaterialGroup/methods/listProductMaterialGroup.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listProductMaterialGroup | ||
| 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: productMaterialGroups | ||
| 16 | + type: | ||
| 17 | + array: productMaterialGroup | ||
| 18 | + required: true |
allied-creation-manufacture/services/productMaterialGroup/methods/removeProductMaterialGroup.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: removeProductMaterialGroup | ||
| 5 | + type: command | ||
| 6 | + description: 移除物料分组服务 | ||
| 7 | + payload: | ||
| 8 | + - ref: productMaterialGroupId | ||
| 9 | + required: true | ||
| 10 | + result: | ||
| 11 | + - name: productMaterialGroup | ||
| 12 | + type: | ||
| 13 | + schema: productMaterialGroup | ||
| 14 | + required: true |
allied-creation-manufacture/services/productMaterialGroup/methods/updateProductMaterialGroup.yaml
0 → 100644
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: updateProductMaterialGroup | ||
| 5 | + type: command | ||
| 6 | + description: 更新物料分组服务 | ||
| 7 | + payload: | ||
| 8 | + - ref: productMaterialGroupId | ||
| 9 | + required: true | ||
| 10 | + - ref: materialGroupName | ||
| 11 | + required: true | ||
| 12 | + - ref: materialGroupNumber | ||
| 13 | + required: true | ||
| 14 | + result: | ||
| 15 | + - name: productMaterialGroup | ||
| 16 | + type: | ||
| 17 | + schema: productMaterialGroup | ||
| 18 | + required: true |
-
请 注册 或 登录 后发表评论