services

package
v0.0.0-...-f534f19 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TableName

func TableName(model interface{}) string

Types

type AccountService

type AccountService struct {
	BaseService
}

func NewAccountService

func NewAccountService() *AccountService

func (*AccountService) AccountLogin

func (m *AccountService) AccountLogin(name string, password string) (res *models.Account, e error)

func (*AccountService) FindAccount

func (m *AccountService) FindAccount(name string) (res *models.Account, err error)

func (*AccountService) GetDataList

func (m *AccountService) GetDataList() (res []*models.Account, err error)

func (*AccountService) GetDataListPage

func (m *AccountService) GetDataListPage(page *models.Page, PrivatelyOwned ...int) (res []*models.Account, total int, err error)

分页查询指定用户的项目 按照最新的进行排序

type BaseService

type BaseService struct{}

type DemoService

type DemoService struct {
	BaseService
}

func NewDemoService

func NewDemoService() *DemoService

func (*DemoService) FindByIdentify

func (m *DemoService) FindByIdentify(id int, cols ...string) (result *models.Demo, err error)

Jump to

Keyboard shortcuts

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