func (VS *Server) serviceTypeToServiceTypeHTML(c *gin.Context, s ServiceType) ServiceTypeHTML {
	var serviceHTML ServiceTypeHTML
	serviceHTML.ID = s.ID
	serviceHTML.Name = s.Name
	serviceHTML.Icon = "/local/services/" + s.Icon
	serviceHTML.AllowNoQRPurchase = s.AllowNoQRPurchase
	role := getRole(c)
	if role == Admin {
		serviceHTML.Link = "/performance/all/" + s.ID.Hex()
	} else if role == Manager {
		serviceHTML.Link = "/performance/local/" + s.ID.Hex()
	} else if role == Worker {
		serviceHTML.Link = "/performance/self/" + s.ID.Hex()
	}
	return serviceHTML
}
// Transform the Services Type information from DataBase to Human readable (in individual)
Transform the Services Type information from DataBase to Human readable (in individual)
// Transform the Services Type information from DataBase to Human readable ( in individual )
func (VS *Server) serviceTypeToServiceTypeHTML(c *gin.Context, s ServiceType) ServiceTypeHTML {
	var serviceHTML ServiceTypeHTML
	serviceHTML.ID = s.ID
	serviceHTML.Name = s.Name
	serviceHTML.Icon = "/local/services/" + s.Icon
	serviceHTML.AllowNoQRPurchase = s.AllowNoQRPurchase
	role := getRole(c)
	if role == Admin {
		serviceHTML.Link = "/performance/all/" + s.ID.Hex()
	} else if role == Manager {
		serviceHTML.Link = "/performance/local/" + s.ID.Hex()
	} else if role == Worker {
		serviceHTML.Link = "/performance/self/" + s.ID.Hex()
	}
	return serviceHTML
}
func ( VS * Server ) serviceTypeToServiceTypeHTML ( c * gin . Context , s ServiceType ) ServiceTypeHTML { var serviceHTML ServiceTypeHTML serviceHTML . ID = s . ID serviceHTML . Name = s . Name serviceHTML . Icon = " " + s . Icon serviceHTML . AllowNoQRPurchase = s . AllowNoQRPurchase role := getRole ( c ) if role == Admin { serviceHTML . Link = " " + s . ID . Hex ( ) } else if role == Manager { serviceHTML . Link = " " + s . ID . Hex ( ) } else if role == Worker { serviceHTML . Link = " " + s . ID . Hex ( ) } return serviceHTML }
Transform the Services Type information from DataBase to Human readable (in individual)
Transform the Services Type information from DataBase to Human readable ( in individual )