regroup backend and frontend in app folder

This commit is contained in:
Blomios
2026-03-07 19:16:14 +01:00
parent 66c72f46a2
commit b5bc405771
28315 changed files with 206 additions and 3227368 deletions

View File

@ -0,0 +1,27 @@
package models
type LoginRequest struct {
Username string `json:"username"`
Password string `json:"password"`
}
type LoginResponse struct {
Message string `json:"message"`
Role string `json:"role"`
}
type CreateApiKeyRequest struct {
KeyName string `json:"key_name"`
}
type CreateApiKeyResponse struct {
Id int `json:"id" db:"id"`
KeyName string `json:"key_name" db:"key_name"`
Key string `json:"key" db:"key_value"`
}
type ApiKey struct {
Id int `json:"id" db:"id"`
KeyName string `json:"key_name" db:"key_name"`
Key string `json:"key" db:"key_value"`
}