haixunMaster/haixun-backend/internal/model/threads_account/domain/entity/account.go

24 lines
629 B
Go
Raw Normal View History

2026-06-23 16:55:10 +00:00
package entity
const CollectionName = "threads_accounts"
type Status string
const (
StatusOpen Status = "open"
StatusDeleted Status = "deleted"
)
type Account struct {
ID string `bson:"_id"`
TenantID string `bson:"tenant_id"`
OwnerUID string `bson:"owner_uid"`
DisplayName string `bson:"display_name,omitempty"`
Username string `bson:"username,omitempty"`
ThreadsUserID string `bson:"threads_user_id,omitempty"`
PersonaID string `bson:"persona_id,omitempty"`
Status Status `bson:"status"`
CreateAt int64 `bson:"create_at"`
UpdateAt int64 `bson:"update_at"`
2026-06-24 10:02:42 +00:00
}