🗃️ Add the status model
This commit is contained in:
@ -20,8 +20,10 @@ type Account struct {
|
||||
ConfirmedAt *time.Time `json:"confirmed_at"`
|
||||
PermNodes datatypes.JSONMap `json:"perm_nodes"`
|
||||
|
||||
Profile AccountProfile `json:"profile"`
|
||||
Badges []Badge `json:"badges"`
|
||||
Profile AccountProfile `json:"profile"`
|
||||
Statuses []Status `json:"statuses"`
|
||||
Badges []Badge `json:"badges"`
|
||||
|
||||
Contacts []AccountContact `json:"contacts"`
|
||||
RealmIdentities []RealmMember `json:"realm_identities"`
|
||||
|
||||
|
20
pkg/internal/models/statuses.go
Normal file
20
pkg/internal/models/statuses.go
Normal file
@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
type StatusAttitude = uint8
|
||||
|
||||
const (
|
||||
AttitudeNeutral = StatusAttitude(iota)
|
||||
AttitudePositive
|
||||
AttitudeNegative
|
||||
)
|
||||
|
||||
type Status struct {
|
||||
BaseModel
|
||||
|
||||
Type string `json:"type"`
|
||||
Label string `json:"label"`
|
||||
Attitude StatusAttitude `json:"attitude"`
|
||||
IsNoDisturb bool `json:"is_no_disturb"`
|
||||
IsInvisible bool `json:"is_invisible"`
|
||||
AccountID uint `json:"account_id"`
|
||||
}
|
Reference in New Issue
Block a user