14 lines
314 B
Go
14 lines
314 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"haixun-backend/internal/model/job/domain/entity"
|
|
)
|
|
|
|
type EventRepository interface {
|
|
EnsureIndexes(ctx context.Context) error
|
|
Append(ctx context.Context, event *entity.Event) error
|
|
ListByJobID(ctx context.Context, jobID string, limit int64) ([]*entity.Event, error)
|
|
}
|