Files
digital-psychology/apps/api/internal/model/ask.go
T
jackyu66gitandCursor bd22d9dddd feat: P1 合盘/星座/问答与测测完整设计包及模拟器取证工具
落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 11:37:53 +08:00

26 lines
589 B
Go

package model
import (
"time"
"github.com/google/uuid"
)
// AskThread binds a conversation to a profile.
type AskThread struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"user_id"`
ProfileID uuid.UUID `json:"profile_id"`
Scene *string `json:"scene,omitempty"`
CreatedAt time.Time `json:"created_at"`
}
// AskMessage is one turn in a thread.
type AskMessage struct {
ID uuid.UUID `json:"id"`
ThreadID uuid.UUID `json:"thread_id"`
Role string `json:"role"`
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
}