package fields

import "time"

// swagger:enum PostStatus
// ENUM( ok, banned, blocked)
type UserStatus int16

type UserMetas struct {
	City         string   `json:"city,omitempty"`
	Country      string   `json:"country,omitempty"`
	HeadImageUrl string   `json:"head_image_url,omitempty"`
	Nickname     string   `json:"nickname,omitempty"`
	Privilege    []string `json:"privilege,omitempty"`
	Province     string   `json:"province,omitempty"`
	Sex          int64    `json:"sex,omitempty"`
}

type UserAuthToken struct {
	StableAccessToken string    `json:"stable_access_token,omitempty"`
	StableExpiresAt   time.Time `json:"stable_expires_at,omitempty"`
	AccessToken       string    `json:"access_token,omitempty"`
	ExpiresAt         time.Time `json:"expires_at,omitempty"`
	IsSnapshotuser    int64     `json:"is_snapshotuser,omitempty"`
	RefreshToken      string    `json:"refresh_token,omitempty"`
	Scope             string    `json:"scope,omitempty"`
}
