mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-04-12 08:56:28 +00:00
23 lines
514 B
Go
23 lines
514 B
Go
package users
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/emochka2007/block-accounting/internal/pkg/models"
|
|
)
|
|
|
|
type GetParams struct {
|
|
Id string
|
|
OrganizationId string
|
|
Seed []byte
|
|
}
|
|
|
|
// todo implement
|
|
type Repository interface {
|
|
Get(ctx context.Context, params GetParams) (*models.User, error)
|
|
Create(ctx context.Context, user *models.User) error
|
|
Activate(ctx context.Context, id string) error
|
|
Update(ctx context.Context, user *models.User) error
|
|
Delete(ctx context.Context, id string) error
|
|
}
|