Files
QSfera/Server/services/storage-users/pkg/event/trigger.go
T
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

22 lines
444 B
Go

package event
import (
"encoding/json"
"time"
apiUser "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
)
// PurgeTrashBin wraps all needed information to purge a trash-bin
type PurgeTrashBin struct {
ExecutantID *apiUser.UserId
ExecutionTime time.Time
}
// Unmarshal to fulfill umarshaller interface
func (PurgeTrashBin) Unmarshal(v []byte) (any, error) {
e := PurgeTrashBin{}
err := json.Unmarshal(v, &e)
return e, err
}