mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 22:33:09 +00:00
first demo
This commit is contained in:
15
internal/repository/interface.go
Normal file
15
internal/repository/interface.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"context"
|
||||
"runbin/internal/model"
|
||||
)
|
||||
|
||||
type PasteRepository interface {
|
||||
Save(p *model.Paste) error
|
||||
Update(p *model.Paste) error
|
||||
GetByID(id string) (*model.Paste, bool)
|
||||
DispatchExecutionTask(id string) error
|
||||
GetTask(ctx context.Context) (*model.Paste, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user