skeleton added

This commit is contained in:
2026-02-08 19:56:16 +03:00
committed by KentoNion
commit f0b04b229a
19 changed files with 2021 additions and 0 deletions

31
domain/admin/service.go Normal file
View File

@@ -0,0 +1,31 @@
package admin
import (
"context"
"log/slog"
"tgVideoCall/gates/storage"
"tgVideoCall/domain/admin/models"
"tgVideoCall/pkg/config"
)
type Service struct {
log slog.Logger
cfg config.Config
ctx context.Context
db Storage
}
func NewService(ctx context.Context, cfg config.Config, log slog.Logger, db *storage.DB) *Service {
return &Service{
log: log,
db: db,
cfg: cfg,
ctx: ctx,
}
}
func (s Service) GetAdmin(ctx context.Context, userID int) (models.Admin, error) {
return s.db.GetAdmin(ctx, userID)
}