Documentation ¶
Index ¶
- type AccountService
- func (ac *AccountService) CreateAccount(account model.Account) error
- func (ac *AccountService) DeleteAccount(id string) error
- func (ac *AccountService) GetAccount(accountName string) (model.Account, error)
- func (ac *AccountService) ListAccount(offset, limit int) ([]*model.AccountInfo, uint64, error)
- func (ac *AccountService) ListAccountByName(username string, offset, limit int) ([]*model.AccountInfo, uint64, error)
- func (ac *AccountService) UpdateAccount(account model.Account) error
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
Click to show internal directories.
Click to hide internal directories.