mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
16 lines
371 B
Go
16 lines
371 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"mayfly-go/internal/db/domain/entity"
|
|
"mayfly-go/pkg/base"
|
|
)
|
|
|
|
type DbBinlog interface {
|
|
base.Repo[*entity.DbBinlog]
|
|
|
|
AddTaskIfNotExists(ctx context.Context, task *entity.DbBinlog) error
|
|
UpdateTaskStatus(ctx context.Context, task *entity.DbBinlog) error
|
|
UpdateEnabled(ctx context.Context, taskId uint64, enabled bool) error
|
|
}
|