first demo

This commit is contained in:
xkm
2025-04-14 22:57:36 +08:00
parent 0c76d2169a
commit a960184433
22 changed files with 1047 additions and 218 deletions

View 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)
}