2021-12-29 20:17:33 +00:00
|
|
|
package user
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-03-13 10:58:34 +00:00
|
|
|
"source.toby3d.me/toby3d/auth/internal/domain"
|
2021-12-29 20:17:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
2023-01-14 21:27:37 +00:00
|
|
|
Create(ctx context.Context, user domain.User) error
|
|
|
|
Get(ctx context.Context, me domain.Me) (*domain.User, error)
|
2021-12-29 20:17:33 +00:00
|
|
|
}
|
|
|
|
|
2022-01-29 20:46:43 +00:00
|
|
|
var ErrNotExist error = domain.NewError(domain.ErrorCodeServerError, "user not exist", "")
|