Save post insight result in database

This commit is contained in:
2025-01-30 22:29:03 +08:00
parent 39ef6f9e0a
commit 9d9b2ac866
5 changed files with 33 additions and 22 deletions

View File

@ -1,9 +1,10 @@
package models
import (
"time"
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models"
"time"
"gorm.io/datatypes"
)
@ -79,3 +80,11 @@ type PostArticleBody struct {
Content string `json:"content"`
Attachments []string `json:"attachments"`
}
type PostInsight struct {
cruda.BaseModel
Response string `json:"response"`
Post Post `json:"post"`
PostID uint `json:"post_id"`
}