add comments and new parameter id for client request order

This commit is contained in:
Adrian Zuercher
2025-05-04 20:55:58 +02:00
parent c7154f0779
commit e3487eb340
15 changed files with 119 additions and 79 deletions

View File

@@ -1,13 +1,16 @@
package models
type Rights string
// all avaiable read/write modes
const (
Read Rights = "R"
Write Rights = "W"
ReadWrite Rights = "RW"
)
// dbm read/write model
type Rights string
// return current rights
func (r *Rights) GetRights() Rights {
if *r == "" {
return ReadWrite