后端:
1.阶段 6 CP4/CP5 目录收口与共享边界纯化
- 将 backend 根目录收口为 services、client、gateway、cmd、shared 五个一级目录
- 收拢 bootstrap、inits、infra/kafka、infra/outbox、conv、respond、pkg、middleware,移除根目录旧实现与空目录
- 将 utils 下沉到 services/userauth/internal/auth,将 logic 下沉到 services/schedule/core/planning
- 将迁移期 runtime 桥接实现统一收拢到 services/runtime/{conv,dao,eventsvc,model},删除 shared/legacy 与未再被 import 的旧 service 实现
- 将 gateway/shared/respond 收口为 HTTP/Gin 错误写回适配,shared/respond 仅保留共享错误语义与状态映射
- 将 HTTP IdempotencyMiddleware 与 RateLimitMiddleware 收口到 gateway/middleware
- 将 GormCachePlugin 下沉到 shared/infra/gormcache,将共享 RateLimiter 下沉到 shared/infra/ratelimit,将 agent token budget 下沉到 services/agent/shared
- 删除 InitEino 兼容壳,收缩 cmd/internal/coreinit 仅保留旧组合壳残留域初始化语义
- 更新微服务迁移计划与桌面 checklist,补齐 CP4/CP5 当前切流点、目录终态与验证结果
- 完成 go test ./...、git diff --check 与最终真实 smoke;health、register/login、task/create+get、schedule/today、task-class/list、memory/items、agent chat/meta/timeline/context-stats 全部 200,SSE 合并结果为 CP5_OK 且 [DONE] 只有 1 个
39 lines
1.2 KiB
Go
39 lines
1.2 KiB
Go
package model
|
|
|
|
type CourseImageParseDraftStatus string
|
|
|
|
const (
|
|
CourseImageParseDraftStatusSuccess CourseImageParseDraftStatus = "success"
|
|
CourseImageParseDraftStatusPartial CourseImageParseDraftStatus = "partial"
|
|
CourseImageParseDraftStatusReject CourseImageParseDraftStatus = "reject"
|
|
)
|
|
|
|
type CourseImageParseRow struct {
|
|
RowID string `json:"row_id"`
|
|
CourseName string `json:"course_name"`
|
|
Location string `json:"location"`
|
|
IsAllowTasks bool `json:"is_allow_tasks"`
|
|
StartWeek *int `json:"start_week"`
|
|
EndWeek *int `json:"end_week"`
|
|
DayOfWeek *int `json:"day_of_week"`
|
|
StartSection *int `json:"start_section"`
|
|
EndSection *int `json:"end_section"`
|
|
WeekType string `json:"week_type"`
|
|
Confidence float64 `json:"confidence"`
|
|
RawText string `json:"raw_text"`
|
|
RowWarnings []string `json:"row_warnings"`
|
|
}
|
|
|
|
type CourseImageParseResponse struct {
|
|
DraftStatus CourseImageParseDraftStatus `json:"draft_status"`
|
|
Message string `json:"message"`
|
|
Warnings []string `json:"warnings"`
|
|
Rows []CourseImageParseRow `json:"rows"`
|
|
}
|
|
|
|
type CourseImageParseRequest struct {
|
|
Filename string
|
|
MIMEType string
|
|
ImageBytes []byte
|
|
}
|