mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			365 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			365 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]
 | 
						|
}
 | 
						|
 | 
						|
// 注入DbSqlRepo
 | 
						|
func (d *dbSqlAppImpl) InjectDbSqlRepo(repo repository.DbSql) {
 | 
						|
	d.Repo = repo
 | 
						|
}
 |