On branch main
new file: main_dc/yalarba/api_yal/internal/domain/appeal/dto.go new file: main_dc/yalarba/api_yal/internal/domain/appeal/router.go new file: main_dc/yalarba/api_yal/internal/domain/appeal/service.go new file: main_dc/yalarba/api_yal/internal/domain/feetback/handler.go new file: main_dc/yalarba/api_yal/internal/domain/feetback/router.go new file: main_dc/yalarba/api_yal/internal/domain/feetback/service.go try add domains for appeal
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package appeal
|
||||
|
||||
import ()
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package appeal
|
||||
|
||||
import ()
|
||||
|
||||
func NewHandler(service AppealService) *AppealHandler {
|
||||
return &AppealHandler{
|
||||
service: service,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeal
|
||||
|
||||
import "api_yal/internal/repository"
|
||||
|
||||
type AppealService interface {
|
||||
|
||||
}
|
||||
|
||||
type appealServiceImpl struct {
|
||||
appelRepository repository.AppealRepository
|
||||
}
|
||||
|
||||
func NewAppealService(appealRepo repository.AppealRepository) AppealService {
|
||||
return &appealServiceImpl{
|
||||
appelRepository: appealRepo,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package feetback
|
||||
|
||||
import (
|
||||
"api_yal/internal/logger"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func RegisterRoutes(r chi.Router, db *gorm, jwtSecret string) {
|
||||
l := logger.Get()
|
||||
l.Info("Registering routes for feetback")
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user