♻️ Use the new dealer BaseUser and remove ExternalID

This commit is contained in:
2024-09-11 23:49:20 +08:00
parent 78705e82a8
commit 6c5a99e867
7 changed files with 21 additions and 93 deletions

View File

@ -1,19 +1,9 @@
package models
// Account profiles basically fetched from Hydrogen.Passport
// But cache at here for better usage
// At the same time this model can make relations between local models
type Account struct {
BaseModel
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
Name string `json:"name"`
Nick string `json:"nick"`
Avatar string `json:"avatar"`
Banner string `json:"banner"`
Description string `json:"description"`
EmailAddress string `json:"email_address"`
PowerLevel int `json:"power_level"`
ExternalID uint `json:"external_id"`
type Account struct {
hyper.BaseUser
Attachments []Attachment `json:"attachments"`
Pools []AttachmentPool `json:"pools"`