Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeSettings ¶
type ChangeSettings struct { ID uuid.UUID `json:"user_id"` ChatID domainUser.TelegramID `json:"chat_id"` Settings domainUser.Settings `json:"settings"` }
ChangeSettings represents a command to change user settings. It can be used to change user settings by ID and chatID.
type ChangeSettingsHandler ¶
type ChangeSettingsHandler struct {
// contains filtered or unexported fields
}
func NewChangeSettingsHandler ¶
func NewChangeSettingsHandler(userRepo domainUser.Repository, userProvider UserProvider) ChangeSettingsHandler
func (ChangeSettingsHandler) Handle ¶
func (r ChangeSettingsHandler) Handle(ctx context.Context, cmd ChangeSettings) error
type RegisterUser ¶
type RegisterUser struct { ChatID domainUser.TelegramID `json:"chat_id"` Settings *domainUser.Settings `json:"settings"` }
type RegisterUserHandler ¶
type RegisterUserHandler struct {
// contains filtered or unexported fields
}
func NewRegisterUserHandler ¶
func NewRegisterUserHandler(userRepo domainUser.Repository) RegisterUserHandler
func (RegisterUserHandler) Handle ¶
func (r RegisterUserHandler) Handle(ctx context.Context, cmd RegisterUser) error
type UserProvider ¶
type UserProvider interface {
GetUserByTelegramID(ctx context.Context, id domainUser.TelegramID) (*domainUser.User, error)
}
Click to show internal directories.
Click to hide internal directories.