model

package
v0.0.0-...-7f3b7f6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
}

type User

type User struct {
	ID             int64     `json:"id"`
	Name           string    `json:"name"`
	Password       string    `json:"password"`
	Occupation     string    `json:"occupation"`
	Email          string    `json:"email"`
	AvatarFileName string    `json:"avatar_file_name"`
	Role           string    `json:"role"`
	Token          string    `json:"token"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

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