first commit

This commit is contained in:
Adrian Zuercher
2025-04-14 18:03:14 +02:00
parent 46c6b8424d
commit 3d1dee25f1
15 changed files with 72205 additions and 0 deletions

18
models/rights.go Normal file
View File

@@ -0,0 +1,18 @@
package models
type Rights string
const (
Read Rights = "R"
Write Rights = "W"
ReadWrite Rights = "RW"
)
func (r *Rights) GetRights() Rights {
if r == nil {
return ReadWrite
} else if *r == "" {
return ReadWrite
}
return *r
}