feat: access token check

This commit is contained in:
Iron_Felix 2025-12-04 07:32:45 +03:00
parent 7629f391ad
commit 6786f7ac00
3 changed files with 130 additions and 28 deletions

View file

@ -1,12 +1,10 @@
package main
type Config struct {
Mode string
LogLevel string `toml:"LogLevel" env:"LOG_LEVEL"`
}
type Item struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Mode string
ServiceAddress string `toml:"ServiceAddress" env:"SERVICE_ADDRESS"`
DdUrl string `toml:"DbUrl" env:"DATABASE_URL"`
JwtPrivateKey string `toml:"JwtPrivateKey" env:"JWT_PRIVATE_KEY"`
LogLevel string `toml:"LogLevel" env:"LOG_LEVEL"`
rmqURL string `toml:"RabbitMQUrl" env:"RABBITMQ_URL"`
}