models

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

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBKEY = "db"

Functions

func Create

func Create(user *entity.User) error

func Delete

func Delete(user *entity.User) error

func Get

func Get(id int) (*entity.User, error)

func GetAll

func GetAll() ([]entity.User, error)

func List

func List(query map[string]interface{}) ([]entity.User, error)

func SyncTable

func SyncTable()

func Update

func Update(user *entity.User) error

Types

type UserModels

type UserModels struct {
	// contains filtered or unexported fields
}

func (*UserModels) Create

func (m *UserModels) Create(user *entity.User) error

func (*UserModels) GetDb

func (m *UserModels) GetDb() *gorm.DB

func (*UserModels) SyncTable

func (m *UserModels) SyncTable()

Jump to

Keyboard shortcuts

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