2026-03-10 11:04:34 +08:00
|
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
|
|
// Person @提及人物配置(ContentPage 用)
|
|
|
|
|
|
type Person struct {
|
2026-03-10 18:06:10 +08:00
|
|
|
|
ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
|
|
|
|
|
|
PersonID string `gorm:"column:person_id;size:50;uniqueIndex" json:"personId"`
|
|
|
|
|
|
Name string `gorm:"column:name;size:100" json:"name"`
|
|
|
|
|
|
Label string `gorm:"column:label;size:200" json:"label"`
|
|
|
|
|
|
CkbApiKey string `gorm:"column:ckb_api_key;size:100;default:''" json:"ckbApiKey"` // 存客宝密钥,留空则 fallback 全局 Key
|
|
|
|
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
|
|
|
|
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
|
2026-03-10 11:04:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (Person) TableName() string { return "persons" }
|