落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
589 B
Go
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"`
|
|
}
|