domain

package
v0.0.0-...-8df9fff Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID    int64  `gorm:"column:id"`
	Name  string `gorm:"column:name"`
	Email string `gorm:"column:email"`
	Roles string `gorm:"column:roles"` // seperate by comma: "admin,user"
}

type AccountRepository

type AccountRepository interface {
	Get(ctx context.Context) ([]*Account, error)

	Create(ctx context.Context, acc *Account) error
}

type AccountService

type AccountService interface {
	GetAccounts(ctx context.Context) ([]*Account, error)

	CreateAccount(ctx context.Context, acc *Account) error
}

Jump to

Keyboard shortcuts

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