Files
mayfly-go/server/internal/db/domain/repository/db_binlog.go
2023-12-29 08:30:10 +08:00

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
}