model

package
v0.0.0-...-0a31f76 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 2 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 {
	gorm.Model
	Answerer   string `gorm:"column:answerer" form:"answerer"  json:"answerer" binding:"required"`
	QuestionID uint   `gorm:"column:questionID" form:"questionID"  json:"questionID" binding:"required"`
	Content    string `gorm:"column:content" form:"content"  json:"content" binding:"required"`
}

type Delete

type Delete struct {
	ID uint `gorm:"column:id" form:"id" json:"id" binding:"required"`
}

type EmailLogin

type EmailLogin struct {
	Email    string `gorm:"column:email" form:"email" json:"email" binding:"required"`
	Password string `gorm:"column:password" form:"password" json:"password" binding:"required"`
}

type ModifyAnswer

type ModifyAnswer struct {
	ID      uint   `gorm:"column:id" form:"id" json:"id" binding:"required"`
	Content string `gorm:"column:content" form:"content"  json:"content" binding:"required"`
}

type ModifyQuestion

type ModifyQuestion struct {
	ID      uint   `gorm:"column:id" form:"id" json:"id" binding:"required"`
	Content string `gorm:"column:content" form:"content"  json:"content" binding:"required"`
	Title   string `gorm:"column:title" form:"title" json:"title" binding:"required"`
}

type MyClaims

type MyClaims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

type PhoneLogin

type PhoneLogin struct {
	PhoneNumber string `gorm:"column:phonenumber" form:"phonenumber" json:"phonenumber" binding:"required"`
	Password    string `gorm:"column:password" form:"password" json:"password" binding:"required"`
}

type Question

type Question struct {
	gorm.Model
	Questioner string   `gorm:"column:questioner" form:"questioner"  json:"questioner" binding:"required"`
	Content    string   `gorm:"column:content" form:"content"  json:"content" binding:"required"`
	Title      string   `gorm:"column:title" form:"title" json:"title" binding:"required"`
	Answers    []Answer `gorm:"column:answers" form:"answers"  json:"answers"`
}

type User

type User struct {
	gorm.Model
	UserName    string `gorm:"column:username" form:"username"  json:"username" binding:"required"`
	Email       string `gorm:"column:email" form:"email" json:"email" binding:"required"`
	Password    string `gorm:"column:password" form:"password" json:"password" binding:"required"`
	PhoneNumber string `gorm:"column:phonenumber" form:"phonenumber" json:"phonenumber" binding:"required"`
}

type UserNameLogin

type UserNameLogin struct {
	UserName string `gorm:"column:username" form:"username"  json:"username" binding:"required"`
	Password string `gorm:"column:password" form:"password" json:"password" binding:"required"`
}

type UserRegister

type UserRegister struct {
	UserName    string `gorm:"column:username" form:"username"  json:"username" binding:"required"`
	Password    string `gorm:"column:password" form:"password" json:"password" binding:"required"`
	Email       string `gorm:"column:email" form:"email" json:"email" binding:"required"`
	PhoneNumber string `gorm:"column:phonenumber" form:"phonenumber" json:"phonenumber" binding:"required"`
}

Jump to

Keyboard shortcuts

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