23 lines
388 B
Go
23 lines
388 B
Go
package controller
|
|
|
|
import (
|
|
"context"
|
|
"ticket-pimp/internal/domain"
|
|
db "ticket-pimp/internal/storage/db"
|
|
)
|
|
|
|
type IConfigController interface {
|
|
Get(context.Context) (domain.ApplicationConfig, error)
|
|
Update(context.Context) (domain.ApplicationConfig, error)
|
|
}
|
|
|
|
type AppConfig struct {
|
|
db *db.Queries
|
|
}
|
|
|
|
func NewAppConfig(db *db.Queries) AppConfig {
|
|
return AppConfig{
|
|
db: db,
|
|
}
|
|
}
|