service

package
v0.0.0-...-00ec2d6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService struct {
	Repo *repository.AccountModelRepo
}

func (*AccountService) CreateAccount

func (ac *AccountService) CreateAccount(account model.Account) error

func (*AccountService) DeleteAccount

func (ac *AccountService) DeleteAccount(id string) error

func (*AccountService) GetAccount

func (ac *AccountService) GetAccount(accountName string) (model.Account, error)

func (*AccountService) ListAccount

func (ac *AccountService) ListAccount(offset, limit int) ([]*model.AccountInfo, uint64, error)

func (*AccountService) ListAccountByName

func (ac *AccountService) ListAccountByName(username string, offset, limit int) ([]*model.AccountInfo, uint64, error)

func (*AccountService) UpdateAccount

func (ac *AccountService) UpdateAccount(account model.Account) error

Jump to

Keyboard shortcuts

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