response

package
v0.0.0-...-56fefa2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 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 Answer

type Answer struct {
	AnswerId          string    `json:"answerId"`
	TeamId            string    `json:"teamId"`
	TeamTitle         string    `json:"teamTitle"`
	TaskId            string    `json:"taskId"`
	TaskTitle         string    `json:"taskTitle"`
	TaskDescription   string    `json:"taskDescription"`
	TaskTypeId        int       `json:"taskTypeId"`
	TaskTypeName      string    `json:"taskTypeName"`
	AnswerText        string    `json:"answerText"`
	AnswerImageBase64 string    `json:"answerImageBase64"`
	TimeStart         time.Time `json:"timeGotten"`
	AdditionalPoints  int       `json:"additionalPoints"`
	TaskAnswerTypeId  int       `json:"taskAnswerTypeId"`
	IsComfirmed       bool      `json:"isComfirmed"`
}

type GetAnswers

type GetAnswers struct {
	Answers []Answer `json:"answers"`
}

type GetTask

type GetTask struct {
	Title        string    `json:"title"`
	Text         string    `json:"text"`
	TypeId       int       `json:"typeId"`
	TypeName     string    `json:"typeName"`
	MaxPoints    int       `json:"maxPoints"`
	MinPoints    int       `json:"minPoints"`
	TimeStarted  time.Time `json:"timeStarted"`
	AnswerTypeId int       `json:"answerTypeId"`
}

type GetTaskTypes

type GetTaskTypes struct {
	TaskTypes []TaskType `json:"taskTypes"`
}

type GetTeam

type GetTeam struct {
	TeamId  string   `json:"team_id"`
	Title   string   `json:"title"`
	Points  int      `json:"points"`
	Members []Member `json:"members"`
}

type Login

type Login struct {
	AccessToken string
}

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

type Logout

type Logout struct {
	Message string
}

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

type Member

type Member struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Role int    `json:"role"`
}

type Register

type Register struct {
	Message string
}

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

type RegisterTeam

type RegisterTeam struct {
	TeamID string `json:"id"`
}

RegisterTeam Структура запроса регистрации команды

type TaskType

type TaskType struct {
	Name     string `json:"name"`
	ID       int    `json:"id"`
	IsActive bool   `json:"is_active"`
}

type UpdateTeam

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

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