Files
quyun/backend_v1/pkg/fields/users.go
Rogee 557a641f41
Some checks failed
build quyun / Build (push) Failing after 2m50s
feat: migrate serevices
2025-12-19 19:05:12 +08:00

28 lines
956 B
Go

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"`
}