models

package
v0.0.0-...-0410608 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleCRUD

type SimpleCRUD interface {
	Create() (bool, error)
	Update() (bool, error)
	Delete() (bool, error)
}

type User

type User struct {
	gorm.Model
	Username string
	Password string
	Email    string
	Avatar   string
}

func (User) Create

func (this User) Create() (bool, error)

func (User) Delete

func (this User) Delete() (bool, error)

func (User) Update

func (this User) Update() (bool, error)

Jump to

Keyboard shortcuts

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