🚚 Auth kit and parser of nexus userinfo token
This commit is contained in:
23
pkg/authkit/models/statuses.go
Normal file
23
pkg/authkit/models/statuses.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
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"`
|
||||
ClearAt *time.Time `json:"clear_at"`
|
||||
AccountID uint `json:"account_id"`
|
||||
}
|
Reference in New Issue
Block a user