services

package
v0.0.0-...-c153ae7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTest

func GetTest(search interface{}, model ...interface{}) *gorm.DB

Types

type Users

type Users struct {
	core.Service
}

func (*Users) All

func (s *Users) All(user interface{}) (*gorm.DB, []*models.User)

func (*Users) ById

func (s *Users) ById(id int) (*gorm.DB, model.User, error)

func (*Users) Create

func (s *Users) Create(user *models.User) (*gorm.DB, *models.User)

func (*Users) Delete

func (s *Users) Delete(id int) (*gorm.DB, models.User)

func (*Users) Update

func (s *Users) Update(user *models.User) (*gorm.DB, *models.User)

Jump to

Keyboard shortcuts

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