services

package
v0.0.0-...-4de286f Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	MGOExt      *mgoext.Mongo
	GORMExt     *gormext.GORM
	Persistence *persistence.InMemoryStore
	Logger      *logger.Journal
}

Services defined Services struct

var NewServices *Services

NewServices defined new Services

func (*Services) AddUsers

func (srv *Services) AddUsers(users []interface{})

AddUsers users

func (*Services) FindUsers

func (srv *Services) FindUsers(match map[string]interface{}) (interface{}, error)

FindUsers users users := []User{} 需要具体化时用Type去声明变量,否则直接用反射体

Jump to

Keyboard shortcuts

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