mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
feat(BE-115,116,117): implement chickin CRUD, approve logic, and stock availabilit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"gitlab.com/mbugroup/lti-api.git/internal/common/repository"
|
||||
entity "gitlab.com/mbugroup/lti-api.git/internal/entities"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type AuditLogRepository interface {
|
||||
repository.BaseRepository[entity.AuditLog]
|
||||
}
|
||||
|
||||
type AuditLogRepositoryImpl struct {
|
||||
*repository.BaseRepositoryImpl[entity.AuditLog]
|
||||
}
|
||||
|
||||
func NewAuditLogRepository(db *gorm.DB) AuditLogRepository {
|
||||
return &AuditLogRepositoryImpl{
|
||||
BaseRepositoryImpl: repository.NewBaseRepository[entity.AuditLog](db),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"gitlab.com/mbugroup/lti-api.git/internal/common/repository"
|
||||
entity "gitlab.com/mbugroup/lti-api.git/internal/entities"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type StockAvailabilityRepository interface {
|
||||
repository.BaseRepository[entity.StockAvailability]
|
||||
}
|
||||
|
||||
type StockAvailabilityRepositoryImpl struct {
|
||||
*repository.BaseRepositoryImpl[entity.StockAvailability]
|
||||
}
|
||||
|
||||
func NewStockAvailabilityRepository(db *gorm.DB) StockAvailabilityRepository {
|
||||
return &StockAvailabilityRepositoryImpl{
|
||||
BaseRepositoryImpl: repository.NewBaseRepository[entity.StockAvailability](db),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user