working commit

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