Documentation ¶
Index ¶
Constants ¶
View Source
const (
PublicProfile = "public_profile"
)
View Source
const (
TableName = "user_setting"
)
Variables ¶
View Source
var ModelStruct = sqlbuilder.NewStruct(new(Model))
Functions ¶
Types ¶
type GetSettingsResponse ¶
type GetSettingsResponse struct {
Settings UserSettings `json:"settings"`
}
func T_GetSettings ¶ added in v0.11.0
func T_GetSettings(t *testing.T, app *fiber.App, o commontest.AuthOpts) (int, GetSettingsResponse)
type UserSettings ¶
type UserSettings struct {
PublicProfile bool `json:"public_profile"`
}
type WriteSettingsRequest ¶
type WriteSettingsRequest struct {
Settings UserSettings `json:"settings"`
}
type WriteSettingsResponse ¶
type WriteSettingsResponse struct {
Success bool `json:"success"`
}
func T_WriteSettings ¶ added in v0.11.0
func T_WriteSettings(t *testing.T, app *fiber.App, b WriteSettingsRequest, o commontest.AuthOpts) (int, WriteSettingsResponse)
Click to show internal directories.
Click to hide internal directories.