Documentation ¶
Index ¶
- type BotConfig
- type GuestAnswers
- type GuestInfo
- type Repository
- func (repo *Repository) GetAllAnswers() ([]GuestAnswers, *logger.SlogError)
- func (repo *Repository) GetAnswers(tgID int64) (*GuestAnswers, *logger.SlogError)
- func (repo *Repository) GetConfig() (*BotConfig, *logger.SlogError)
- func (repo *Repository) SaveAnswers(anws GuestAnswers) *logger.SlogError
- func (repo *Repository) SaveConfig(config BotConfig) *logger.SlogError
- type TgID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuestAnswers ¶
type GuestAnswers struct { TgID int64 `json:"tg_id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` IsAccepted *bool `json:"is_accepted"` WithSomebody *bool `json:"with_somebody"` SecondGuest string `json:"second_guest"` NeedTransfer string `json:"need_transfer"` Wishes string `json:"wishes"` }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository() (*Repository, *logger.SlogError)
func (*Repository) GetAllAnswers ¶
func (repo *Repository) GetAllAnswers() ([]GuestAnswers, *logger.SlogError)
func (*Repository) GetAnswers ¶
func (repo *Repository) GetAnswers(tgID int64) (*GuestAnswers, *logger.SlogError)
func (*Repository) SaveAnswers ¶
func (repo *Repository) SaveAnswers(anws GuestAnswers) *logger.SlogError
func (*Repository) SaveConfig ¶
func (repo *Repository) SaveConfig(config BotConfig) *logger.SlogError
Click to show internal directories.
Click to hide internal directories.