2024-06-26 09:59:15 +00:00
|
|
|
package models
|
|
|
|
|
2024-06-26 12:05:28 +00:00
|
|
|
import "time"
|
|
|
|
|
2024-06-26 09:59:15 +00:00
|
|
|
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"`
|
2024-06-26 12:05:28 +00:00
|
|
|
ClearAt *time.Time `json:"clear_at"`
|
2024-06-26 09:59:15 +00:00
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|