update_teach_target
Update student or class profile fields such as name, grade, textbook, subject, parent phone, or color. Only the fields you specify are modified; others remain unchanged.
Instructions
改教学对象档案(学生/班级信息修改)→ :9090。返回 {ok, id, updated:['basic'/'profile']}。
create_teach_target 只能建、建完改不了——本工具补上「改」:改名/年级/教材/学科/家长手机/色,或整体覆写肖像。 🔴 只改传入的字段:不传的保持原值(BE updateById NOT_NULL 跳空);基本维不动肖像,肖像走独立整覆写。 🔴 target_type 必传(BE 靠它选学生表/班级表);改肖像务必先 get_student_profile 取全量再整体回传(传 {} 会清空)。 参数: target_id : 对象 id(字符串雪花号)——必填 target_type : 'student' | 'class'——必填(决定改哪张表) name : 新对象名(不传=不改) grade_no : 年级 1-12(字典 biz_edu_grade) grade_year : grade_no 生效学年起始年(如 2026) textbook_edition : 教材版本码(biz_edu_edition:1浙教/2人教/3北师大/4苏教,兼容中文标签) subject : 学科码(biz_edu_subject:1数学/2科学/3语文/4英语,兼容中文标签) parent_phone : 家长手机号(仅学生) color : 日历着色 profile : 肖像 dict(整体覆写,非增量!结构见 create_teach_target 的 profile 说明)—— 改肖像典型流程 = get_student_profile 读回 → 本地改 → 整体传回
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | ||
| profile | No | ||
| subject | No | ||
| grade_no | No | ||
| target_id | Yes | ||
| grade_year | No | ||
| target_type | Yes | ||
| parent_phone | No | ||
| textbook_edition | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||