2023-09-26 12:16:58 +03:00
|
|
|
package store
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
type Driver interface {
|
|
|
|
CreateActivity(ctx context.Context, create *Activity) (*Activity, error)
|
|
|
|
|
|
|
|
UpsertSystemSetting(ctx context.Context, upsert *SystemSetting) (*SystemSetting, error)
|
|
|
|
ListSystemSettings(ctx context.Context, find *FindSystemSetting) ([]*SystemSetting, error)
|
2023-09-26 13:23:45 +03:00
|
|
|
|
|
|
|
CreateUser(ctx context.Context, create *User) (*User, error)
|
|
|
|
UpdateUser(ctx context.Context, update *UpdateUser) (*User, error)
|
|
|
|
ListUsers(ctx context.Context, find *FindUser) ([]*User, error)
|
|
|
|
DeleteUser(ctx context.Context, delete *DeleteUser) error
|
2023-09-26 12:16:58 +03:00
|
|
|
}
|