add enviroment variable for golang beckend close #6

This commit is contained in:
Adrian Zürcher
2025-11-12 12:16:27 +01:00
parent 87297a3b97
commit 76269e7358
10 changed files with 110 additions and 69 deletions

View File

@@ -1,6 +0,0 @@
package models
// type Rights struct {
// Name string `json:"name"`
// Rights int `json:"rights"`
// }

View File

@@ -1,11 +0,0 @@
package models
// type Role struct {
// Id int `json:"id"`
// Role string `json:"role"`
// Rights []Rights `json:"rights"`
// }
// func (r *Role) IsValid() bool {
// return r.Role != ""
// }

View File

@@ -1,11 +0,0 @@
package models
// type Settings struct {
// PrimaryColor string `json:"primaryColor,omitempty"`
// PrimaryColorText string `json:"primaryColorText,omitempty"`
// SecondaryColor string `json:"secondaryColor,omitempty"`
// SecondaryColorText string `json:"secondaryColorText,omitempty"`
// Icon string `json:"icon,omitempty"`
// DatabaseName string `json:"databaseName,omitempty"`
// DatabaseToken string `json:"databaseToken,omitempty"`
// }

View File

@@ -1,14 +0,0 @@
package models
// type User struct {
// Id int `json:"id"`
// Name string `json:"user"`
// Email string `json:"email"`
// Role string `json:"role"`
// Password string `json:"password,omitempty"`
// Settings Settings `json:"settings"`
// }
// func (u *User) IsValid() bool {
// return u.Name != ""
// }