domain

package
v0.0.0-...-bf31d15 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerMediaTask

type AnswerMediaTask struct {
	Id      int `json:"id"`
	MediaId int `json:"media_id"`
}

type ID

type ID string

ID

Тип первичного ключа (uuid) в таблицах

func (ID) String

func (id ID) String() string

String

Явное преобразование типа ID в тип string

type MasterClass

type MasterClass struct {
	Id            int    `json:"id"`
	Name          string `json:"name"`
	Description   string `json:"description"`
	StartAt       string `json:"start_at"`
	EndAt         string `json:"end_at"`
	Responsible   Member `json:"responsible"`
	CountAll      int    `json:"count_all"`
	CountFree     int    `json:"count_free"`
	CountReserve  int    `json:"count_reserve"`
	PlacePhotoUrl string `json:"place_photo_url"`
}

type MediaAnswer

type MediaAnswer struct {
	Id          int    `json:"id"`
	MediaTaskId int    `json:"media_task_id"`
	TeamId      int    `json:"team_id"`
	Points      int    `json:"points"`
	Status      string `json:"status"`
	Comment     string `json:"comment"`
	PhotoId     int    `json:"photo_id"`
	PhotoKey    string `json:"photo_key"`
	PhotoUrl    string `json:"photo_url"`
	PhotoAnswer []byte `json:"photo_answer"`
	PhotoType   string `json:"photo_type"`
}

type MediaTask

type MediaTask struct {
	ID          int         `json:"id"`
	Title       string      `json:"title"`
	Description string      `json:"description"`
	Points      int         `json:"points"`
	VideoId     int         `json:"video_id"`
	VideoKey    string      `json:"video_key"`
	VideoUrl    string      `json:"video_url"`
	Answer      MediaAnswer `json:"answer"`
}

type Member

type Member struct {
	ID          int    `json:"id"`
	RoleId      int    `json:"roleId"`
	Name        string `json:"name"`
	Group       string `json:"group"`
	Email       string `json:"email"`
	Telegram    string `json:"telegram"`
	VK          string `json:"VK"`
	TeamName    string `json:"team_name"`
	Role        string `json:"role"`
	PhoneNumber string `json:"phone_number"`
}

type Object

type Object struct {
	BucketName string
	ObjectName string
	TypeData   string
	Size       int64
	Data       []byte
}

type Role

type Role struct {
	ID    int    `db:"id"`
	Title string `db:"title"`
}

Role

Таблица ролей в команде

type Sec

type Sec struct {
	Id            int       `json:"id"`
	Name          string    `json:"name"`
	Description   string    `json:"description"`
	FIO           string    `json:"fio"`
	Phone         string    `json:"phone"`
	Telegram      string    `json:"telegram"`
	MasterClassId int       `json:"master_class_id"`
	StartedAt     time.Time `json:"started_at"`
	EndedAt       time.Time `json:"ended_at"`
	Capacity      int       `json:"capacity"`
	Busy          int       `json:"busy"`
	PhotoUrl      string    `json:"photo_url"`
}

type Team

type Team struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Members []Member
	Captain Member
	Points  int `json:"points"`
}

type TextTask

type TextTask struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Answer      string `json:"answer"`
	Points      int    `json:"points"`
	Status      bool   `json:"status"`
	TeamId      int    `json:"team_id"`
}

type User

type User struct {
	ID             ID     `db:"id"`
	Password       string `db:"password"`
	PhoneNumber    string `db:"phone_number"`
	Email          string `db:"email"`
	EmailConfirmed bool   `db:"email_confirmed"`
	Telegram       string `db:"telegram"`
	VK             string `db:"vk"`
	StudyGroup     string `db:"group"`
	FIO            string `db:"name"`
	TeamID         *ID    `db:"team_id"`
	RoleID         *int   `db:"role_id"`
	IsAdmin        bool   `db:"is_admin"`
}

User

Таблица пользователей

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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