working commit

This commit is contained in:
2026-02-18 23:55:55 +02:00
parent 13c8d50f53
commit 87354c7cdc
4 changed files with 22 additions and 2 deletions
+7
View File
@@ -239,6 +239,13 @@ func (hand *Handler) DeleteCollection(rctx *router.Context) {
params := &operator.DeleteColletionParams{
Path: cpath,
}
err := rctx.BindQuery(params)
if err != nil {
hand.logg.Errorf("DeleteColletion binding error: %v", err)
rctx.SetStatus(http.StatusInternalServerError)
return
}
// Rigth checking
operatorID, _ := rctx.GetString(userTag)
opEnable, err := hand.CheckRight(rctx.Ctx, operatorID, descr.RightReadFiles, "")
+1
View File
@@ -359,6 +359,7 @@ func (oper *Operator) ListCollections(ctx context.Context, operID string, param
// DeleteColletion
type DeleteColletionParams struct {
Path string
IsPattern bool `params:"isPattern"`
}
type DeleteColletionResult struct {
Files []descr.File `json:"collection,omitempty"`