accountService

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupApp = &Group{}

Functions

This section is empty.

Types

type Group

type Group struct {
	Share share
	// contains filtered or unexported fields
}

func (*Group) CreateOne

func (b *Group) CreateOne(
	user userModel.User, data accountModel.Account, ctx context.Context,
) (account accountModel.Account, aUser accountModel.User, err error)

func (*Group) Delete

func (b *Group) Delete(account accountModel.Account, accountUser accountModel.User, ctx context.Context) (err error)

func (*Group) NewCreateData

func (b *Group) NewCreateData(name string, icon string, aType accountModel.Type, location string) accountModel.Account

func (*Group) Update

func (b *Group) Update(
	account accountModel.Account, accountUser accountModel.User, updateData accountModel.AccountUpdateData,
	ctx context.Context,
) (err error)

func (*Group) UpdateUser

func (b *Group) UpdateUser(
	accountUser accountModel.User, operator accountModel.User, updateData accountModel.UserUpdateData,
	ctx context.Context,
) (result accountModel.User, err error)

Jump to

Keyboard shortcuts

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