model

package
v0.0.0-...-8bbae97 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 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 Book

type Book struct {
	gorm.Model
	Title  string `json:"title"`
	Author string `json:"author"`
	Rating string `json:"rating"`
}

func (Book) Validate

func (b Book) Validate() error

type Chat

type Chat struct {
	gorm.Model
	User    string `json:"title"`
	Message string `json:"author"`
}

type LoginInput

type LoginInput struct {
	Identity string `json:"client_id"`
	Password string `json:"client_password"`
}

func (LoginInput) Validate

func (l LoginInput) Validate() error

type NewUser

type NewUser struct {
	Username string `json:"username"`
	Email    string `json:"email"`
}

type PasswordInput

type PasswordInput struct {
	Password string `json:"password"`
}

type UpdateUserInput

type UpdateUserInput struct {
	Names string `json:"names"`
}

type User

type User struct {
	gorm.Model
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Names    string `json:"names"`
}

User struct

func (User) Validate

func (u User) Validate() error

Jump to

Keyboard shortcuts

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