正在显示
8 个修改的文件
包含
124 行增加
和
0 行删除
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: attendance | ||
| 5 | + path: /attendances | ||
| 6 | + endpoints: | ||
| 7 | + - method: createAttendance | ||
| 8 | + route: | ||
| 9 | + post: / | ||
| 10 | + - method: updateAttendance | ||
| 11 | + route: | ||
| 12 | + put: /{productAttendanceId} | ||
| 13 | + - method: getAttendance | ||
| 14 | + route: | ||
| 15 | + get: /{productAttendanceId} | ||
| 16 | + - method: removeAttendance | ||
| 17 | + route: | ||
| 18 | + delete: /{productAttendanceId} | ||
| 19 | + - method: listAttendance | ||
| 20 | + route: | ||
| 21 | + get: / | ||
| 22 | + params: | ||
| 23 | + - name: offset | ||
| 24 | + - name: limit | ||
| 25 | + - method: approveAttendance | ||
| 26 | + route: | ||
| 27 | + post: /approve |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: approveAttendance | ||
| 5 | + type: command | ||
| 6 | + description: 审核工时 | ||
| 7 | + payload: | ||
| 8 | + - ref: productAttendanceId | ||
| 9 | + required: true | ||
| 10 | + - name: workTimeAfter | ||
| 11 | + description: 工时 | ||
| 12 | + type: | ||
| 13 | + primitive: float64 | ||
| 14 | + result: | ||
| 15 | + - name: attendance | ||
| 16 | + type: | ||
| 17 | + schema: productAttendanceRecord | ||
| 18 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: listAttendance | ||
| 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: attendances | ||
| 16 | + type: | ||
| 17 | + array: productAttendanceRecord | ||
| 18 | + required: true |
-
请 注册 或 登录 后发表评论