add files

This commit is contained in:
Adrian Zürcher
2025-04-25 18:56:27 +02:00
parent 2b5a5a7905
commit 85bd8de2a2
14 changed files with 667 additions and 0 deletions

18
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
}