mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: tag refactor & other
This commit is contained in:
		@@ -44,7 +44,7 @@ func (m *Machine) Machines(rc *req.Ctx) {
 | 
			
		||||
	condition, pageParam := req.BindQueryAndPage(rc, new(entity.MachineQuery))
 | 
			
		||||
 | 
			
		||||
	tags := m.TagApp.GetAccountTags(rc.GetLoginAccount().Id, &tagentity.TagTreeQuery{
 | 
			
		||||
		Types:         collx.AsArray(tagentity.TagTypeMachineAuthCert),
 | 
			
		||||
		TypePaths:     collx.AsArray(tagentity.NewTypePaths(tagentity.TagTypeMachine, tagentity.TagTypeAuthCert)),
 | 
			
		||||
		CodePathLikes: collx.AsArray(condition.TagPath),
 | 
			
		||||
	})
 | 
			
		||||
	// 不存在可操作的机器-授权凭证标签,即没有可操作数据
 | 
			
		||||
@@ -71,7 +71,7 @@ func (m *Machine) Machines(rc *req.Ctx) {
 | 
			
		||||
	})...)
 | 
			
		||||
 | 
			
		||||
	// 填充授权凭证信息
 | 
			
		||||
	m.ResourceAuthCertApp.FillAuthCertByAcNames(tagentity.GetCodesByCodePaths(tagentity.TagTypeMachineAuthCert, tagCodePaths...), collx.ArrayMap(machinevos, func(mvo *vo.MachineVO) tagentity.IAuthCert {
 | 
			
		||||
	m.ResourceAuthCertApp.FillAuthCertByAcNames(tagentity.GetCodesByCodePaths(tagentity.TagTypeAuthCert, tagCodePaths...), collx.ArrayMap(machinevos, func(mvo *vo.MachineVO) tagentity.IAuthCert {
 | 
			
		||||
		return mvo
 | 
			
		||||
	})...)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user