正在显示
78 个修改的文件
包含
1410 行增加
和
1 行删除
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: device | ||
5 | + path: /devices | ||
6 | + endpoints: | ||
7 | + - method: createDevice | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateDevice | ||
11 | + route: | ||
12 | + put: /{deviceId} | ||
13 | + - method: getDevice | ||
14 | + route: | ||
15 | + get: /{deviceId} | ||
16 | + - method: removeDevice | ||
17 | + route: | ||
18 | + delete: /{deviceId} | ||
19 | + - method: listDevice | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: product | ||
5 | + path: /products | ||
6 | + endpoints: | ||
7 | + - method: createProduct | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProduct | ||
11 | + route: | ||
12 | + put: /{productId} | ||
13 | + - method: getProduct | ||
14 | + route: | ||
15 | + get: /{productId} | ||
16 | + - method: removeProduct | ||
17 | + route: | ||
18 | + delete: /{productId} | ||
19 | + - method: listProduct | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: productCalendar | ||
5 | + path: /product-calendars | ||
6 | + endpoints: | ||
7 | + - method: createProductCalendar | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProductCalendar | ||
11 | + route: | ||
12 | + put: /{productCalendarId} | ||
13 | + - method: getProductCalendar | ||
14 | + route: | ||
15 | + get: /{productCalendarId} | ||
16 | + - method: removeProductCalendar | ||
17 | + route: | ||
18 | + delete: /{productCalendarId} | ||
19 | + - method: listProductCalendar | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: productGroup | ||
5 | + path: /product-groups | ||
6 | + endpoints: | ||
7 | + - method: createProductGroup | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProductGroup | ||
11 | + route: | ||
12 | + put: /{productGroupId} | ||
13 | + - method: getProductGroup | ||
14 | + route: | ||
15 | + get: /{productGroupId} | ||
16 | + - method: removeProductGroup | ||
17 | + route: | ||
18 | + delete: /{productGroupId} | ||
19 | + - method: listProductGroup | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: productJob | ||
5 | + path: /product-jobs | ||
6 | + endpoints: | ||
7 | + - method: createProductJob | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProductJob | ||
11 | + route: | ||
12 | + put: /{productJobId} | ||
13 | + - method: getProductJob | ||
14 | + route: | ||
15 | + get: /{productJobId} | ||
16 | + - method: removeProductJob | ||
17 | + route: | ||
18 | + delete: /{productJobId} | ||
19 | + - method: listProductJob | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: productLine | ||
5 | + path: /product-lines | ||
6 | + endpoints: | ||
7 | + - method: createProductLine | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProductLine | ||
11 | + route: | ||
12 | + put: /{lineId} | ||
13 | + - method: getProductLine | ||
14 | + route: | ||
15 | + get: /{lineId} | ||
16 | + - method: removeProductLine | ||
17 | + route: | ||
18 | + delete: /{lineId} | ||
19 | + - method: listProductLine | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: productPlan | ||
5 | + path: /product-plans | ||
6 | + endpoints: | ||
7 | + - method: createProductPlan | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProductPlan | ||
11 | + route: | ||
12 | + put: /{productPlanId} | ||
13 | + - method: getProductPlan | ||
14 | + route: | ||
15 | + get: /{productPlanId} | ||
16 | + - method: removeProductPlan | ||
17 | + route: | ||
18 | + delete: /{productPlanId} | ||
19 | + - method: listProductPlan | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit | ||
25 | + - method: receiveMaterial | ||
26 | + route: | ||
27 | + post: /receive-material | ||
28 | + - method: returnMaterial | ||
29 | + route: | ||
30 | + post: /return-material | ||
31 | + - method: setOnline | ||
32 | + route: | ||
33 | + post: /set-online | ||
34 | + - method: setOnline | ||
35 | + route: | ||
36 | + post: /set-offline | ||
37 | + - method: switch | ||
38 | + route: | ||
39 | + post: /switch | ||
40 | + - method: submitProductRecord | ||
41 | + route: | ||
42 | + post: /submit-product-record |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: productSection | ||
5 | + path: /product-sections | ||
6 | + endpoints: | ||
7 | + - method: createProductSection | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateProductSection | ||
11 | + route: | ||
12 | + put: /{sectionId} | ||
13 | + - method: getProductSection | ||
14 | + route: | ||
15 | + get: /{sectionId} | ||
16 | + - method: removeProductSection | ||
17 | + route: | ||
18 | + delete: /{sectionId} | ||
19 | + - method: listProductSection | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: unitConversion | ||
5 | + path: /unit-conversions | ||
6 | + endpoints: | ||
7 | + - method: createUnitConversion | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateUnitConversion | ||
11 | + route: | ||
12 | + put: /{unitConversionId} | ||
13 | + - method: getUnitConversion | ||
14 | + route: | ||
15 | + get: /{unitConversionId} | ||
16 | + - method: removeUnitConversion | ||
17 | + route: | ||
18 | + delete: /{unitConversionId} | ||
19 | + - method: listUnitConversion | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: workshop | ||
5 | + path: /workshops | ||
6 | + endpoints: | ||
7 | + - method: createWorkshop | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateWorkshop | ||
11 | + route: | ||
12 | + put: /{workshopId} | ||
13 | + - method: getWorkshop | ||
14 | + route: | ||
15 | + get: /{workshopId} | ||
16 | + - method: removeWorkshop | ||
17 | + route: | ||
18 | + delete: /{workshopId} | ||
19 | + - method: listWorkshop | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
@@ -6,6 +6,10 @@ metadata: | @@ -6,6 +6,10 @@ metadata: | ||
6 | attributes: | 6 | attributes: |
7 | - ref: deviceId | 7 | - ref: deviceId |
8 | required: true | 8 | required: true |
9 | + - ref: companyId | ||
10 | + required: true | ||
11 | + - ref: orgId | ||
12 | + required: true | ||
9 | - ref: deviceCode | 13 | - ref: deviceCode |
10 | required: true | 14 | required: true |
11 | - ref: deviceName | 15 | - ref: deviceName |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createDevice | ||
5 | + type: command | ||
6 | + description: 创建设备服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: deviceCode | ||
13 | + required: true | ||
14 | + - ref: deviceName | ||
15 | + required: true | ||
16 | + - ref: deviceModel | ||
17 | + required: true | ||
18 | + - ref: deviceType | ||
19 | + required: true | ||
20 | + - ref: workshopId | ||
21 | + required: true | ||
22 | + - ref: lineId | ||
23 | + required: true | ||
24 | + - ref: sectionId | ||
25 | + required: true | ||
26 | + - ref: brand | ||
27 | + required: true | ||
28 | + - ref: deviceStatus | ||
29 | + required: true | ||
30 | + - ref: riskLevel | ||
31 | + required: true | ||
32 | + result: | ||
33 | + - name: device | ||
34 | + type: | ||
35 | + schema: device | ||
36 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listDevice | ||
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: devices | ||
16 | + type: | ||
17 | + array: device | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateDevice | ||
5 | + type: command | ||
6 | + description: 更新设备服务 | ||
7 | + payload: | ||
8 | + - ref: deviceId | ||
9 | + required: true | ||
10 | + - ref: deviceCode | ||
11 | + required: true | ||
12 | + - ref: deviceName | ||
13 | + required: true | ||
14 | + - ref: deviceModel | ||
15 | + required: true | ||
16 | + - ref: deviceType | ||
17 | + required: true | ||
18 | + - ref: workshopId | ||
19 | + required: true | ||
20 | + - ref: lineId | ||
21 | + required: true | ||
22 | + - ref: sectionId | ||
23 | + required: true | ||
24 | + - ref: brand | ||
25 | + required: true | ||
26 | + - ref: deviceStatus | ||
27 | + required: true | ||
28 | + - ref: riskLevel | ||
29 | + required: true | ||
30 | + result: | ||
31 | + - name: device | ||
32 | + type: | ||
33 | + schema: device | ||
34 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProduct | ||
5 | + type: command | ||
6 | + description: 创建产品服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: productCode | ||
13 | + required: true | ||
14 | + - ref: productName | ||
15 | + required: true | ||
16 | + - ref: productCategory | ||
17 | + required: true | ||
18 | + - name: productSpec | ||
19 | + description: 产品规格 | ||
20 | + type: | ||
21 | + schema: unitQuantity | ||
22 | + result: | ||
23 | + - name: product | ||
24 | + type: | ||
25 | + schema: product | ||
26 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProduct | ||
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: products | ||
16 | + type: | ||
17 | + array: product | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProduct | ||
5 | + type: command | ||
6 | + description: 更新产品服务 | ||
7 | + payload: | ||
8 | + - ref: productId | ||
9 | + required: true | ||
10 | + - ref: productCode | ||
11 | + required: true | ||
12 | + - ref: productName | ||
13 | + required: true | ||
14 | + - ref: productCategory | ||
15 | + required: true | ||
16 | + - name: productSpec | ||
17 | + description: 产品规格 | ||
18 | + type: | ||
19 | + schema: unitQuantity | ||
20 | + result: | ||
21 | + - name: product | ||
22 | + type: | ||
23 | + schema: product | ||
24 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProductCalendar | ||
5 | + type: command | ||
6 | + description: 创建工厂日历服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: workshopId | ||
13 | + required: true | ||
14 | + - ref: lineId | ||
15 | + required: true | ||
16 | + - ref: sectionId | ||
17 | + required: true | ||
18 | + - ref: workOn | ||
19 | + required: true | ||
20 | + - ref: calendarSelected | ||
21 | + required: true | ||
22 | + - ref: inWorkAt | ||
23 | + required: true | ||
24 | + - ref: outWorkAt | ||
25 | + required: true | ||
26 | + - ref: breakTime | ||
27 | + required: true | ||
28 | + - ref: workTime | ||
29 | + required: true | ||
30 | + result: | ||
31 | + - name: productCalendar | ||
32 | + type: | ||
33 | + schema: productCalendar | ||
34 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProductCalendar | ||
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: productCalendars | ||
16 | + type: | ||
17 | + array: productCalendar | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProductCalendar | ||
5 | + type: command | ||
6 | + description: 更新工厂日历服务 | ||
7 | + payload: | ||
8 | + - ref: productCalendarId | ||
9 | + required: true | ||
10 | + - ref: workshopId | ||
11 | + required: true | ||
12 | + - ref: lineId | ||
13 | + required: true | ||
14 | + - ref: sectionId | ||
15 | + required: true | ||
16 | + - ref: workOn | ||
17 | + required: true | ||
18 | + - ref: calendarSelected | ||
19 | + required: true | ||
20 | + - ref: inWorkAt | ||
21 | + required: true | ||
22 | + - ref: outWorkAt | ||
23 | + required: true | ||
24 | + - ref: breakTime | ||
25 | + required: true | ||
26 | + - ref: workTime | ||
27 | + required: true | ||
28 | + result: | ||
29 | + - name: productCalendar | ||
30 | + type: | ||
31 | + schema: productCalendar | ||
32 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProductGroup | ||
5 | + type: command | ||
6 | + description: 创建生产班组服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: workshopId | ||
13 | + required: true | ||
14 | + - ref: lineId | ||
15 | + required: true | ||
16 | + - ref: sectionId | ||
17 | + required: true | ||
18 | + - ref: groupName | ||
19 | + required: true | ||
20 | + - ref: groupLeader | ||
21 | + required: true | ||
22 | + - ref: groupMembers | ||
23 | + required: true | ||
24 | + - ref: workOn | ||
25 | + required: true | ||
26 | + result: | ||
27 | + - name: productGroup | ||
28 | + type: | ||
29 | + schema: productGroup | ||
30 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProductGroup | ||
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: productGroups | ||
16 | + type: | ||
17 | + array: productGroup | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProductGroup | ||
5 | + type: command | ||
6 | + description: 更新生产班组服务 | ||
7 | + payload: | ||
8 | + - ref: productGroupId | ||
9 | + required: true | ||
10 | + - ref: workshopId | ||
11 | + required: true | ||
12 | + - ref: lineId | ||
13 | + required: true | ||
14 | + - ref: sectionId | ||
15 | + required: true | ||
16 | + - ref: groupName | ||
17 | + required: true | ||
18 | + - ref: groupLeader | ||
19 | + required: true | ||
20 | + - ref: groupMembers | ||
21 | + required: true | ||
22 | + - ref: workOn | ||
23 | + required: true | ||
24 | + result: | ||
25 | + - name: productGroup | ||
26 | + type: | ||
27 | + schema: productGroup | ||
28 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProductJob | ||
5 | + type: command | ||
6 | + description: 创建工位服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: jobName | ||
13 | + required: true | ||
14 | + - ref: workshopId | ||
15 | + required: true | ||
16 | + - ref: lineId | ||
17 | + required: true | ||
18 | + - ref: sectionId | ||
19 | + required: true | ||
20 | + - name: relatedDevices | ||
21 | + description: 关联设备列表 | ||
22 | + type: | ||
23 | + array: int | ||
24 | + result: | ||
25 | + - name: productJob | ||
26 | + type: | ||
27 | + schema: productJob | ||
28 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProductJob | ||
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: productJobs | ||
16 | + type: | ||
17 | + array: productJob | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProductJob | ||
5 | + type: command | ||
6 | + description: 更新工位服务 | ||
7 | + payload: | ||
8 | + - ref: productJobId | ||
9 | + required: true | ||
10 | + - ref: jobName | ||
11 | + required: true | ||
12 | + - ref: workshopId | ||
13 | + required: true | ||
14 | + - ref: lineId | ||
15 | + required: true | ||
16 | + - ref: sectionId | ||
17 | + required: true | ||
18 | + - name: relatedDevices | ||
19 | + description: 关联设备列表 | ||
20 | + type: | ||
21 | + array: int | ||
22 | + result: | ||
23 | + - name: productJob | ||
24 | + type: | ||
25 | + schema: productJob | ||
26 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProductLine | ||
5 | + type: command | ||
6 | + description: 创建生产线 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: lineName | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: productLine | ||
14 | + type: | ||
15 | + schema: productLine | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProductLine | ||
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: productLines | ||
16 | + type: | ||
17 | + array: productLine | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProductLine | ||
5 | + type: command | ||
6 | + description: 更新生产线 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: lineId | ||
11 | + required: true | ||
12 | + - ref: lineName | ||
13 | + required: true | ||
14 | + result: | ||
15 | + - name: productLine | ||
16 | + type: | ||
17 | + schema: productLine | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProductPlan | ||
5 | + type: command | ||
6 | + description: 创建生产计划服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: workshopId | ||
13 | + required: true | ||
14 | + - ref: batchNumber | ||
15 | + required: true | ||
16 | + - ref: productDate | ||
17 | + required: true | ||
18 | + - ref: workOn | ||
19 | + required: true | ||
20 | + - ref: machine | ||
21 | + required: true | ||
22 | + - ref: planProductName | ||
23 | + required: true | ||
24 | + - ref: planDevoted | ||
25 | + required: true | ||
26 | + - ref: remark | ||
27 | + required: true | ||
28 | + result: | ||
29 | + - name: productPlan | ||
30 | + type: | ||
31 | + schema: productPlan | ||
32 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProductPlan | ||
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: productPlans | ||
16 | + type: | ||
17 | + array: productPlan | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: setOnline | ||
5 | + type: command | ||
6 | + description: 计划上线 | ||
7 | + payload: | ||
8 | + - ref: productPlanId | ||
9 | + required: true | ||
10 | + - ref: workshopId | ||
11 | + required: true | ||
12 | + - ref: lineId | ||
13 | + required: true | ||
14 | + - ref: sectionId | ||
15 | + required: true | ||
16 | + result: | ||
17 | + - name: productPlan | ||
18 | + type: | ||
19 | + schema: productPlan | ||
20 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: switch | ||
5 | + type: command | ||
6 | + description: 换单 | ||
7 | + payload: | ||
8 | + - name: fromProductPlanId | ||
9 | + description: 下线计划ID | ||
10 | + type: | ||
11 | + primitive: int | ||
12 | + - name: toProductPlanId | ||
13 | + description: 上线计划ID | ||
14 | + type: | ||
15 | + primitive: int | ||
16 | + result: | ||
17 | + - name: productPlan | ||
18 | + type: | ||
19 | + schema: productPlan | ||
20 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProductPlan | ||
5 | + type: command | ||
6 | + description: 更新生产计划服务 | ||
7 | + payload: | ||
8 | + - ref: productPlanId | ||
9 | + required: true | ||
10 | + - ref: companyId | ||
11 | + required: false | ||
12 | + - ref: orgId | ||
13 | + required: false | ||
14 | + - ref: workshopId | ||
15 | + required: true | ||
16 | + - ref: batchNumber | ||
17 | + required: true | ||
18 | + - ref: productDate | ||
19 | + required: true | ||
20 | + - ref: workOn | ||
21 | + required: true | ||
22 | + - ref: machine | ||
23 | + required: true | ||
24 | + - ref: planProductName | ||
25 | + required: true | ||
26 | + - ref: planDevoted | ||
27 | + required: true | ||
28 | + - ref: remark | ||
29 | + required: true | ||
30 | + result: | ||
31 | + - name: productPlan | ||
32 | + type: | ||
33 | + schema: productPlan | ||
34 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createProductSection | ||
5 | + type: command | ||
6 | + description: 创建工段服务 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: lineId | ||
11 | + required: true | ||
12 | + - ref: sectionName | ||
13 | + required: true | ||
14 | + result: | ||
15 | + - name: productSection | ||
16 | + type: | ||
17 | + schema: productSection | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: getProductSection | ||
5 | + type: query | ||
6 | + description: 返回工段服务 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: sectionId | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: productSection | ||
14 | + type: | ||
15 | + schema: productSection | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listProductSection | ||
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: productSections | ||
16 | + type: | ||
17 | + array: productSection | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: removeProductSection | ||
5 | + type: command | ||
6 | + description: 移除工段服务 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: sectionId | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: productSection | ||
14 | + type: | ||
15 | + schema: productSection | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateProductSection | ||
5 | + type: command | ||
6 | + description: 更新工段服务 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: sectionId | ||
11 | + required: true | ||
12 | + - ref: sectionName | ||
13 | + required: true | ||
14 | + result: | ||
15 | + - name: productSection | ||
16 | + type: | ||
17 | + schema: productSection | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createUnitConversion | ||
5 | + type: command | ||
6 | + description: 创建单位换算服务 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: orgId | ||
11 | + required: true | ||
12 | + - ref: workshopId | ||
13 | + required: true | ||
14 | + - ref: lineId | ||
15 | + required: true | ||
16 | + - ref: sectionId | ||
17 | + required: true | ||
18 | + - ref: material | ||
19 | + required: true | ||
20 | + - ref: fromUnitQuantity | ||
21 | + required: true | ||
22 | + - ref: toUnitQuantity | ||
23 | + required: true | ||
24 | + - ref: intelligentWeighingFlag | ||
25 | + required: true | ||
26 | + result: | ||
27 | + - name: unitConversion | ||
28 | + type: | ||
29 | + schema: unitConversion | ||
30 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listUnitConversion | ||
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: unitConversions | ||
16 | + type: | ||
17 | + array: unitConversion | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateUnitConversion | ||
5 | + type: command | ||
6 | + description: 更新单位换算服务 | ||
7 | + payload: | ||
8 | + - ref: unitConversionId | ||
9 | + required: true | ||
10 | + - ref: companyId | ||
11 | + required: false | ||
12 | + - ref: orgId | ||
13 | + required: false | ||
14 | + - ref: workshopId | ||
15 | + required: true | ||
16 | + - ref: lineId | ||
17 | + required: true | ||
18 | + - ref: sectionId | ||
19 | + required: true | ||
20 | + - ref: material | ||
21 | + required: true | ||
22 | + - ref: fromUnitQuantity | ||
23 | + required: true | ||
24 | + - ref: toUnitQuantity | ||
25 | + required: true | ||
26 | + - ref: intelligentWeighingFlag | ||
27 | + required: true | ||
28 | + result: | ||
29 | + - name: unitConversion | ||
30 | + type: | ||
31 | + schema: unitConversion | ||
32 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createWorkshop | ||
5 | + type: command | ||
6 | + description: 创建车间服务 | ||
7 | + payload: | ||
8 | + - ref: workshopName | ||
9 | + required: true | ||
10 | + - name: principalId | ||
11 | + description: 负责人ID | ||
12 | + type: | ||
13 | + primitive: int | ||
14 | + result: | ||
15 | + - name: workshop | ||
16 | + type: | ||
17 | + schema: workshop | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listWorkshop | ||
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: workshops | ||
16 | + type: | ||
17 | + array: workshop | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateWorkshop | ||
5 | + type: command | ||
6 | + description: 更新车间服务 | ||
7 | + payload: | ||
8 | + - ref: workshopId | ||
9 | + required: true | ||
10 | + - ref: workshopName | ||
11 | + required: true | ||
12 | + - name: principalId | ||
13 | + description: 负责人ID | ||
14 | + type: | ||
15 | + primitive: int | ||
16 | + required: true | ||
17 | + result: | ||
18 | + - name: workshop | ||
19 | + type: | ||
20 | + schema: workshop | ||
21 | + required: true |
-
请 注册 或 登录 后发表评论