mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: release1.8.0
This commit is contained in:
		@@ -272,7 +272,7 @@ func (r *resourceAuthCertAppImpl) GetAccountAuthCert(accountId uint64, authCertT
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	var authCerts []*entity.ResourceAuthCert
 | 
			
		||||
	r.GetRepo().ListByWheres(collx.M{
 | 
			
		||||
	r.ListByWheres(collx.M{
 | 
			
		||||
		"name in ?": collx.ArrayDeduplicate(authCertNames),
 | 
			
		||||
	}, &authCerts)
 | 
			
		||||
 | 
			
		||||
@@ -314,7 +314,7 @@ func (r *resourceAuthCertAppImpl) FillAuthCert(resourceType int8, resources ...e
 | 
			
		||||
		return ac.GetCode()
 | 
			
		||||
	})
 | 
			
		||||
	var acs []*entity.ResourceAuthCert
 | 
			
		||||
	r.Repo.ListByWheres(collx.M{"resource_code in ?": resourceCodes, "resource_type = ?": resourceType}, &acs)
 | 
			
		||||
	r.ListByWheres(collx.M{"resource_code in ?": resourceCodes, "resource_type = ?": resourceType}, &acs)
 | 
			
		||||
	r.FillAuthCertByAcs(acs, resources...)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -394,7 +394,7 @@ func (p *tagTreeAppImpl) DeleteTagByParam(ctx context.Context, param *DelResourc
 | 
			
		||||
	for _, resourceTag := range resourceTags {
 | 
			
		||||
		// 获取所有关联的子标签
 | 
			
		||||
		var childrenTag []*entity.TagTree
 | 
			
		||||
		p.Repo.ListByWheres(collx.M{
 | 
			
		||||
		p.ListByWheres(collx.M{
 | 
			
		||||
			"code_path LIKE ?": resourceTag.CodePath + "%",
 | 
			
		||||
			"type = ?":         delTagType,
 | 
			
		||||
		}, &childrenTag)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user