Commit Graph
1 Commits
Author SHA1 Message Date
ssw f3bd0cc088 feat(p3-commands): v0.11e+ Phase D1 org/msg/datasource step machine
新建 3 _validate.ts (P3 命令 step machine 扩展):
- org/_validate.ts (1 step, 镜像 web organize/Form.vue + 后端 OrganizeController + PS036 层级限制)
- msg/_validate.ts (1 step, 镜像 web message/notice/Form.vue + 后端 MessageController + MSERR114 系统编码规则 + 4 种消息类型)
- datasource/_validate.ts (1 step, 镜像 web dataSource/Form.vue + 后端 DbLinkController + DB001 数据库类型 + host/port/user/password 必填)

每个 _validate.ts 完整导出:
- ValidationError + StepValidation interface
- validateBasicInfo
- validate<Datasource>Create

镜像 web 端:
- organize/Form.vue PS013 (parentId 必填, 不能与父级相同) / PS036 (层级限制)
- message/notice/Form.vue MSERR113/114 (模板标题参数 + 系统编码规则)
- dataSource/Form.vue DB001 (6 种数据库类型枚举)

未集成到 create.ts (P3 命令大, 留待后续 session 集成)
2026-06-27 03:24:51 +08:00