model

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReminderTime = "10"

	TimeFormat = "02-Jan-2006 15:04"
)
View Source
const (
	// MeetingStatusNew - new meeting
	MeetingStatusNew = "new"
	// MeetingStatusCanceled - canceled meeting
	MeetingStatusCanceled = "canceled"
	// MeetingStatusFinished - finished meeting
	MeetingStatusFinished = "finished"
)
View Source
const (
	OrderASC  = "ASC"
	OrderDESC = "DESC"
)

SortOrder ...

View Source
const AnimalsEmojis = "" /* 506-byte string literal not displayed */
View Source
const CalendarEmojis = "" /* 140-byte string literal not displayed */
View Source
const DefaultEmojis string = "❤️🧡💛💚💙💜🖤🤍🤎💔"
View Source
const DrinksEmojis = "🥛🍼🫖☕️🍵🧃🥤🧋🍶🍺🍻🥂🍷🥃🍸🍹🧉🍾🧊"
View Source
const FoodEmojis = "" /* 260-byte string literal not displayed */
View Source
const PlantsEmojis = "🌵🎄🌲🌳🌴🪵🌱🌿☘️🍀🎍🪴🎋🍃🍂🍁🍄🐚🪨🌾💐🌷🌹🥀🌺🌸🌼🌻"
View Source
const ThingsEmojis = "" /* 722-byte string literal not displayed */
View Source
const TransportEmoji = "" /* 260-byte string literal not displayed */
View Source
const VegetablesEmojis string = "" /* 128-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetEmoji

func GetEmoji(emojiSet ...string) string

Types

type Meeting

type Meeting struct {
	ID         int64     `db:"id"`
	UnitID     int64     `db:"unit_id"`
	TopicID    int64     `db:"topic_id"`
	Status     string    `db:"status"`
	StartDate  time.Time `db:"start_date"`
	SpeakerID  int64     `db:"speaker_id"`
	ListenerID int64     `db:"listener_id"`
	CreatedAt  time.Time `db:"created_at"`
}

type QueryFilter

type QueryFilter struct {
	PageSize   uint64
	PageNumber uint64
	// Получить все данные, без пагинации
	AllData bool
	// Без сортировки
	WithoutSort bool
	// По какому полю сортировать
	SortField string
	// Тип сортировки (ASC, DESC)
	SortOrder string
}

QueryFilter ...

type Stats

type Stats struct {
	TopicID   int64 `db:"topic_id"`
	SpeakerID int64 `db:"speaker_id"`
	Count     int64 `db:"count"`
}

type Student

type Student struct {
	ID               int64         `db:"id"`
	FirstName        string        `db:"first_name"`
	LastName         string        `db:"last_name"`
	TelegramID       int64         `db:"telegram_id"`
	TelegramUsername string        `db:"telegram_username"`
	Timezone         sql.NullInt64 `db:"timezone"`
	CreatedAt        time.Time     `db:"created_at"`
}

type TelegramButtonInfo

type TelegramButtonInfo struct {
	Text string
	Data string
}

type TelegramMessage

type TelegramMessage struct {
	ID        int64
	From      *User
	Text      string
	Command   string
	Arguments []string
}

type Topic

type Topic struct {
	ID          int64        `db:"id"`
	UnitID      int64        `db:"unit_id"`
	Name        string       `db:"name"`
	Description string       `db:"description"`
	Link        string       `db:"link"`
	CreatedAt   time.Time    `db:"created_at"`
	UpdatedAt   sql.NullTime `db:"updated_at"`
}

type Unit

type Unit struct {
	ID          int64        `db:"id"`
	Name        string       `db:"name"`
	Description string       `db:"description"`
	Link        string       `db:"link"`
	CreatedAt   time.Time    `db:"created_at"`
	UpdatedAt   sql.NullTime `db:"updated_at"`
}

type UpdateMeeting

type UpdateMeeting struct {
	UnitID     sql.NullInt64
	TopicID    sql.NullInt64
	Status     sql.NullString
	StartDate  sql.NullTime
	SpeakerID  sql.NullInt64
	ListenerID sql.NullInt64
}

type UpdateStudent

type UpdateStudent struct {
	FirstName        sql.NullString
	LastName         sql.NullString
	TelegramUsername sql.NullString
	Timezone         sql.NullInt64
}

type User

type User struct {
	ID        int64
	IsBot     bool
	FirstName string
	LastName  string
	UserName  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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