@sokeai/cli 1.0.91 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ metadata:
|
|
|
37
37
|
1. 创建/更新前查询 `+list-categories`,`--train-type` 使用真实分类 UUID。
|
|
38
38
|
2. `--train-form` 对应接口字段 `train_form`,支持名称或编码:`线上=1`、`线下=2`、`混合培训=3`、`其他=4`、`集中培训=5`、`现场培训=6`;筛选、创建和更新时统一传对应编码。
|
|
39
39
|
3. `--lecturer-source` 对应接口字段 `lecturer_source`,支持名称或编码:`无=0`、`内培=1`、`外聘=2`、`内培+外聘=3`。
|
|
40
|
-
4. 创建/更新必填计划名称(`title`)、计划分类(`train_type`)、承办部门(`exec_arr`)、培训年份(`year`)、培训月份(`month
|
|
40
|
+
4. 创建/更新必填计划名称(`title`)、计划分类(`train_type`)、承办部门(`exec_arr`)、培训年份(`year`)、培训月份(`month`);更新另需计划ID(`uuid`)。`status`、`train-form`、`lecturer-source` 为可选字段。
|
|
41
41
|
5. `exec_arr` 是承办部门数组,每项必须包含部门 `uuid`、名称 `show_name` 和部门 ID `dept_id`,例如 `[{'uuid':'344014737','show_name':'测试授客学堂','dept_id':'344014737'}]`。
|
|
42
42
|
6. 更新目标 UUID 必须来自当前列表或创建响应;更新请求固定带 `action=update`。
|
|
43
43
|
7. `+track --uuid` 和 `+list-classes --plan-id` 均指向培训计划 UUID。
|
|
@@ -54,6 +54,6 @@ soke-cli training-plan +delete --uuids "PLAN-UUID-1,PLAN-UUID-2" --format json
|
|
|
54
54
|
|
|
55
55
|
## 业务字段
|
|
56
56
|
|
|
57
|
-
创建和更新的必填字段是计划名称(`title`)、计划分类(`train_type`)、承办部门(`exec_arr`)、培训年份(`year`)、培训月份(`month
|
|
57
|
+
创建和更新的必填字段是计划名称(`title`)、计划分类(`train_type`)、承办部门(`exec_arr`)、培训年份(`year`)、培训月份(`month`);更新另外必填计划ID(`uuid`)。`status`、`train-form` 和 `lecturer-source` 为可选字段,分别支持原有编码及文档中的名称映射。其余字段按需传入:人数 `person-num`、次数 `number`、天数 `days`、预算 `funding`、大纲 `outline`、讲师来源 `lecturer_source`、地点 `place`、课时 `hours`、目的 `purpose`、备注 `remark` 等。
|
|
58
58
|
|
|
59
59
|
统计中 `fundingTotal` 和 `actualFunding` 是金额字符串;跟踪中 `learning_num_all` 和费用字段也可能是字符串,计算前先安全转换。
|