mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-17 06:40:25 +08:00
feat: 机器列表新增运行状态 & refactor: 登录账号信息存储与context
This commit is contained in:
21
server/internal/db/application/db_sql.go
Normal file
21
server/internal/db/application/db_sql.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user