19 lines
670 B
Go
19 lines
670 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/seifghazi/claude-code-monitor/internal/config"
|
||
|
|
"github.com/seifghazi/claude-code-monitor/internal/model"
|
||
|
|
)
|
||
|
|
|
||
|
|
type StorageService interface {
|
||
|
|
SaveRequest(request *model.RequestLog) (string, error)
|
||
|
|
GetRequests(page, limit int) ([]model.RequestLog, int, error)
|
||
|
|
ClearRequests() (int, error)
|
||
|
|
UpdateRequestWithGrading(requestID string, grade *model.PromptGrade) error
|
||
|
|
UpdateRequestWithResponse(request *model.RequestLog) error
|
||
|
|
EnsureDirectoryExists() error
|
||
|
|
GetRequestByShortID(shortID string) (*model.RequestLog, string, error)
|
||
|
|
GetConfig() *config.StorageConfig
|
||
|
|
GetAllRequests(modelFilter string) ([]*model.RequestLog, error)
|
||
|
|
}
|