mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 16:30:25 +08:00
22 lines
380 B
Go
22 lines
380 B
Go
|
|
package application
|
||
|
|
|
||
|
|
import (
|
||
|
|
"mayfly-go/internal/db/domain/entity"
|
||
|
|
"mayfly-go/internal/db/domain/repository"
|
||
|
|
"mayfly-go/pkg/base"
|
||
|
|
)
|
||
|
|
|
||
|
|
type DbSql interface {
|
||
|
|
base.App[*entity.DbSql]
|
||
|
|
}
|
||
|
|
|
||
|
|
type dbSqlAppImpl struct {
|
||
|
|
base.AppImpl[*entity.DbSql, repository.DbSql]
|
||
|
|
}
|
||
|
|
|
||
|
|
func newDbSqlApp(dbSqlRepo repository.DbSql) DbSql {
|
||
|
|
app := new(dbSqlAppImpl)
|
||
|
|
app.Repo = dbSqlRepo
|
||
|
|
return app
|
||
|
|
}
|