refactor: rename backend -> web

This commit is contained in:
2025-01-06 19:25:06 +03:00
parent 7d38326112
commit 521e140881
7 changed files with 0 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
package models
import (
"time"
)
type Role string
const (
Admin Role = "admin"
Editor Role = "editor"
Viewer Role = "viewer"
)
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Login string `json:"login"`
Role Role `json:"role"`
TelegramID int64 `json:"telegram_id"`
}
type Quote struct {
ID string `json:"id"`
Text string `json:"text"`
Author string `json:"author"`
Datetime time.Time `json:"datetime"`
Creator User `json:"creator"`
}