feat: add medias controller, service and dto

This commit is contained in:
Rogee
2025-01-14 20:16:13 +08:00
parent 307509e787
commit 591771ce77
4 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package medias
import (
"database/sql"
. "github.com/go-jet/jet/v2/postgres"
log "github.com/sirupsen/logrus"
)
// @provider:except
type Service struct {
db *sql.DB
log *log.Entry `inject:"false"`
}
func (svc *Service) Prepare() error {
svc.log = log.WithField("module", "medias.service")
_ = Int(1)
return nil
}