datatransfers

package
v0.0.0-...-c35fd87 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerSubmit

type AnswerSubmit struct {
	QuestionId uint     `json:"questionId"`
	Choices    []string `json:"choices"`
}

type AnswerSubmitArray

type AnswerSubmitArray struct {
	AnswerSubmit []AnswerSubmit `json:"answerSubmit"`
	SubmitAt     time.Time      `json:"submitAt"`
}

type Data

type Data struct {
	Data interface{} `json:"data,omitempty"`
}

type Error

type Error struct {
	Error interface{} `json:"error,omitempty"`
}

type JWTClaims

type JWTClaims struct {
	Sub       uint  `json:"sub,omitempty"`
	ExpiresAt int64 `json:"exp,omitempty"`
	IssuedAt  int64 `json:"iat,omitempty"`
}

func (JWTClaims) Valid

func (c JWTClaims) Valid(helper *jwt.ValidationHelper) (err error)

type JWTToken

type JWTToken struct {
	Access_token  string
	Refresh_token string
}

type QuestionCreate

type QuestionCreate struct {
	Content        string   `json:"content" binding:"required"`
	Choices        []string `json:"choices" binding:"required"`
	CorrectAnswers []string `json:"correctAnswers" binding:"required"`
}

type QuestionInfo

type QuestionInfo struct {
	ID      uint     `uri:"id" json:"id"`
	Content string   `json:"content"`
	Choices []string `json:"choices"`
}

type QuestionResult

type QuestionResult struct {
	Content        string   `json:"content"`
	CorrectAnswers []string `json:"correctAnswers"`
}

type ScoreBoardInfoByUserId

type ScoreBoardInfoByUserId struct {
	UserId uint      `uri:"userid" json:"userId"`
	Score  uint      `json:"score"`
	PlayAt time.Time `json:"playAt"`
}

type Status

type Status struct {
	Status interface{} `json:"status,omitempty"`
}

type Token

type Token struct {
	AccessToken  interface{} `json:"access_token,omitempty"`
	RefreshToken interface{} `json:"refresh_token,omitempty"`
}

type UserInfo

type UserInfo struct {
	ID        uint      `uri:"id" json:"id"`
	Username  string    `json:"username"`
	Email     string    `json:"email"`
	Bio       string    `json:"bio"`
	CreatedAt time.Time `json:"created_at"`
}

type UserLogin

type UserLogin struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type UserLogout

type UserLogout struct {
	RefreshToken string `json:"refreshToken" binding:"required"`
}

type UserSignup

type UserSignup struct {
	Username string `json:"username" binding:"required"`
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
	Bio      string `json:"bio" binding:"-"`
}

type UserUpdate

type UserUpdate struct {
	Email string `json:"email" binding:"-"`
	Bio   string `json:"bio" binding:"-"`
}

Jump to

Keyboard shortcuts

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