Documentation
¶
Index ¶
Constants ¶
View Source
const ( Happy Mood = "Happy" Normal Mood = "Normal" Sad Mood = "Sad" Week MoodTimeRange = iota Month Year All )
Variables ¶
View Source
var ( UserSettingLocaleValue = []string{"en", "es", "hi"} UserSettingThemeValue = []string{"system", "light", "dark"} UserSettingMoodViewValue = []string{"list", "grid"} )
Functions ¶
This section is empty.
Types ¶
type CreateMood ¶
type FindMood ¶
type FindMood struct {
Mood Mood
TimeRange MoodTimeRange
UserId *int
}
type MoodTimeRange ¶
type MoodTimeRange int
func ParseMoodTimeRange ¶
func ParseMoodTimeRange(s string) MoodTimeRange
type PatchUserRequest ¶
type PatchUserRequest struct {
Username *string `json:"username"`
UpdatedAt *int64 `json:"updated_at"`
DisplayName *string `json:"display_name"`
Email *string `json:"email"`
AvatarURL *string `json:"avatar_url"`
}
func (*PatchUserRequest) UpdateUser ¶
func (p *PatchUserRequest) UpdateUser(userId *int) *UpdateUser
func (*PatchUserRequest) Validate ¶
func (p *PatchUserRequest) Validate() error
type UpdateUser ¶
type UpsertUserSetting ¶
type UpsertUserSetting struct {
UserId int `json:"_"`
SettingKey UserSettingKey `json:"setting_key"`
SettingValue string `json:"setting_value"`
}
func (*UpsertUserSetting) Validate ¶
func (u *UpsertUserSetting) Validate() error
type UserSetting ¶
type UserSettingKey ¶
type UserSettingKey string
const ( UserSettingLocaleKey UserSettingKey = "locale" UserSettingThemeKey UserSettingKey = "theme" UserSettingMoodViewKey UserSettingKey = "mood_view" )
func (UserSettingKey) String ¶
func (k UserSettingKey) String() string
Click to show internal directories.
Click to hide internal directories.