user

package
v0.60.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfile

func GetProfile(ctx *gin.Context)

func GetUnauthUser

func GetUnauthUser(ctx *gin.Context)

func RegisterRouter

func RegisterRouter(r *gin.RouterGroup)

func UpdateSettings

func UpdateSettings(ctx *gin.Context)

Types

type UnauthUserResponse

type UnauthUserResponse struct {
	ID         string `json:"id"`
	Username   string `json:"username"`
	TelegramID int64  `json:"telegram_id"`
}

type UserResponseData

type UserResponseData struct {
	Username   string `json:"username"`
	Email      string `json:"email"`
	TelegramID int64  `json:"telegram_id"`

	Settings *types.UserSettings `json:"settings"`
}

type UserSettingsRequest

type UserSettingsRequest struct {
	Language string `json:"language"`
	Theme    string `json:"theme"`
	R18      bool   `json:"r18"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL