mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			400 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			400 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package persistence
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"mayfly-go/base/biz"
							 | 
						||
| 
								 | 
							
									"mayfly-go/base/model"
							 | 
						||
| 
								 | 
							
									"mayfly-go/server/devops/domain/entity"
							 | 
						||
| 
								 | 
							
									"mayfly-go/server/devops/domain/repository"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type dbSqlRepo struct{}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var DbSqlDao repository.DbSql = &dbSqlRepo{}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 分页获取数据库信息列表
							 | 
						||
| 
								 | 
							
								func (d *dbSqlRepo) DeleteBy(condition *entity.DbSql) {
							 | 
						||
| 
								 | 
							
									biz.ErrIsNil(model.DeleteByCondition(condition), "删除sql失败")
							 | 
						||
| 
								 | 
							
								}
							 |