working commit

This commit is contained in:
2026-01-26 18:36:30 +02:00
parent 15e4e893b1
commit 6db319088e
19 changed files with 621 additions and 95 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ package operator
import (
"io"
"net/http"
"path"
//"path"
)
// File exists
@@ -17,8 +17,8 @@ type FileExistsResult struct{}
func (oper *Operator) FileExists(param *FileExistsParams) (int, *FileExistsResult, error) {
var err error
filename := path.Base(param.Filepath)
dirname := path.Dir(filepath)
//filename := path.Base(param.Filepath)
//dirname := path.Dir(filepath)
res := &FileExistsResult{}
code := http.StatusOK
+3 -3
View File
@@ -5,17 +5,17 @@ import (
)
type OperatorParams struct {
MainDB *database.Database
MainDB *maindb.Database
}
type Operator struct {
maindb *main.Database
maindb *maindb.Database
}
func NewOperator(params *OperatorParams) (*Operator, error) {
var err error
oper := &Operator{
db: params.MainDB,
maindb: params.MainDB,
}
return oper, err
}