response

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerByTeam

type AnswerByTeam struct {
	Id          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	AnswerId    int    `json:"answer_id"`
	Points      int    `json:"points"`
	Status      string `json:"status"`
	Comment     string `json:"comment"`
}

type AnswerMediaTask

type AnswerMediaTask struct {
	Id          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Status      string `json:"status"`
	PhotoUrl    string `json:"photo_url"`
}

type CreateTeam

type CreateTeam struct {
	TeamId int `json:"team_id"`
}

type GetAllAnswerByTeam

type GetAllAnswerByTeam struct {
	Answers []AnswerByTeam `json:"answers"`
}

type GetAnswerByTeamByID

type GetAnswerByTeamByID struct {
	Id          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Points      int    `json:"points"`
	Status      string `json:"status"`
	Comment     string `json:"comment"`
	VideoUrl    string `json:"video_url"`
	PhotoUrl    string `json:"photo_url"`
}

type GetAnswerOnMediaTask

type GetAnswerOnMediaTask struct {
	Id          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Points      int    `json:"points"`
	Answer      []byte `json:"answer"`
}

type GetAnswerOnTextTaskByID

type GetAnswerOnTextTaskByID struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Points      int    `json:"points"`
	PhotoUrl    string `json:"photo_url"`
	Comment     string `json:"comment"`
	Status      string `json:"status"`
	TeamId      int    `json:"team_id"`
}

type GetAnswersOnMediaTaskByFilter

type GetAnswersOnMediaTaskByFilter struct {
	Answers []AnswerMediaTask `json:"answers"`
}

type GetMasterClassByID

type GetMasterClassByID 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     string `json:"started_at"`
	EndedAt       string `json:"ended_at"`
	Capacity      int    `json:"capacity"`
	FreePlace     int    `json:"free_place"`
	PhotoUrl      string `json:"photo_url"`
}

type GetMediaTask

type GetMediaTask struct {
	Id          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Points      int    `json:"points"`
	VideoUrl    string `json:"video_url"`
}

type GetSecAdminByFilter

type GetSecAdminByFilter struct {
	SECs []SECAdminByFilter `json:"secs"`
}

type GetSecAdminById

type GetSecAdminById 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"`
	MasterClasses []MasterClassAdminById `json:"master_classes"`
	PhotoUrl      string                 `json:"photo_url"`
}

type GetSecByFilter

type GetSecByFilter struct {
	SECs []SECByFilter `json:"secs"`
}

type GetSecById

type GetSecById 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"`
	MasterClasses []MasterClassById `json:"master_classes"`
	PhotoUrl      string            `json:"photo_url"`
}

type GetSecByTeamId

type GetSecByTeamId struct {
	Secs []SECByTeamId `json:"secs"`
}

type GetTeam

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

type GetTeamByID

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

type GetTeamsByFilter

type GetTeamsByFilter struct {
	Teams []GetTeam `json:"teams"`
}

type GetTextTask

type GetTextTask struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Points      int    `json:"points"`
}

type GetUserById

type GetUserById struct {
	Id          int    `json:"id"`
	Role        string `json:"role"`
	Name        string `json:"name"`
	Email       string `json:"email"`
	Group       string `json:"group"`
	Telegram    string `json:"telegram"`
	VK          string `json:"VK"`
	PhoneNumber string `json:"phone_number"`
	Team        string `json:"team"`
}

type GetUsersByFilter

type GetUsersByFilter struct {
	Users []UserByFilter `json:"users"`
}

type Login

type Login struct {
	AccessToken string
}

Login Структура ответа на вход в аккаунт

type Logout

type Logout struct {
	Message string
}

Logout Структура ответа на выход из аккаунта

type MasterClassAdminByFilter

type MasterClassAdminByFilter struct {
	Id        int    `json:"id"`
	StartedAt string `json:"started_at"`
	EndedAt   string `json:"ended_at"`
	Capacity  int    `json:"capacity"`
	FreePlace int    `json:"free_place"`
}

type MasterClassAdminById

type MasterClassAdminById struct {
	Id        int    `json:"id"`
	StartedAt string `json:"started_at"`
	EndedAt   string `json:"ended_at"`
	Capacity  int    `json:"capacity"`
	FreePlace int    `json:"free_place"`
}

type MasterClassByFilter

type MasterClassByFilter struct {
	Id        int    `json:"id"`
	StartedAt string `json:"started_at"`
	EndedAt   string `json:"ended_at"`
	Capacity  int    `json:"capacity"`
	FreePlace int    `json:"free_place"`
}

type MasterClassById

type MasterClassById struct {
	Id        int    `json:"id"`
	StartedAt string `json:"started_at"`
	EndedAt   string `json:"ended_at"`
	Capacity  int    `json:"capacity"`
	FreePlace int    `json:"free_place"`
}

type Member

type Member struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Grope string `json:"group"`
	Email string `json:"email"`
}

type Register

type Register struct {
	Message string
}

Register Структура ответа на регистрацию

type SECAdminByFilter

type SECAdminByFilter 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"`
	MasterClasses []MasterClassAdminByFilter `json:"master_classes"`
}

type SECByFilter

type SECByFilter 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"`
	MasterClasses []MasterClassByFilter `json:"master_classes"`
}

type SECByTeamId

type SECByTeamId 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     string `json:"started_at"`
	EndedAt       string `json:"ended_at"`
	Capacity      int    `json:"capacity"`
	FreePlace     int    `json:"free_place"`
	PhotoUrl      string `json:"photo_url"`
}

type UpdateAnswerOnTextTaskByID

type UpdateAnswerOnTextTaskByID struct {
	Status string `json:"status"`
}

type UpdateGivePoints

type UpdateGivePoints struct {
	TotalPoints int `json:"total_points"`
}

type UpdateSpendPoints

type UpdateSpendPoints struct {
	TotalPoints int `json:"total_points"`
}

type UpdateTeam

type UpdateTeam struct {
	TeamName string `json:"team_name"`
}

type UserByFilter

type UserByFilter struct {
	Id          int    `json:"id"`
	Role        string `json:"role"`
	Name        string `json:"name"`
	Email       string `json:"email"`
	Group       string `json:"group"`
	Telegram    string `json:"telegram"`
	VK          string `json:"VK"`
	PhoneNumber string `json:"phone_number"`
	TeamName    string `json:"team"`
}

type UserProfile

type UserProfile struct {
	ID          string `json:"id"`
	Name        string `json:"name" db:"name"`
	Group       string `json:"group" db:"group"`
	Telegram    string `json:"telegram" db:"telegram"`
	VK          string `json:"vk" db:"vk"`
	PhoneNumber string `json:"phone_number" db:"phone_number"`
	Email       string `json:"email" db:"email"`
	TeamID      string `json:"team_id" db:"team_id"`
	IsAdmin     bool   `json:"is_admin" db:"is_admin"`
}

Jump to

Keyboard shortcuts

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