Compare commits
	
		
			2 Commits
		
	
	
		
			3971d5ca5d
			...
			443546027b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					443546027b | ||
| 
						 | 
					1c4f3f756f | 
@@ -93,6 +93,10 @@ func (t TimePricingStrategy) String() string {
 | 
				
			|||||||
	return [...]string{"ONCE", "PER SECOND", "PER MINUTE", "PER HOUR", "PER DAY", "PER WEEK", "PER MONTH"}[t]
 | 
						return [...]string{"ONCE", "PER SECOND", "PER MINUTE", "PER HOUR", "PER DAY", "PER WEEK", "PER MONTH"}[t]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func TimePricingStrategyListStr() []string {
 | 
				
			||||||
 | 
						return []string{"ONCE", "PER SECOND", "PER MINUTE", "PER HOUR", "PER DAY", "PER WEEK", "PER MONTH"}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TimePricingStrategyList() []TimePricingStrategy {
 | 
					func TimePricingStrategyList() []TimePricingStrategy {
 | 
				
			||||||
	return []TimePricingStrategy{ONCE, PER_SECOND, PER_MINUTE, PER_HOUR, PER_DAY, PER_WEEK, PER_MONTH}
 | 
						return []TimePricingStrategy{ONCE, PER_SECOND, PER_MINUTE, PER_HOUR, PER_DAY, PER_WEEK, PER_MONTH}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -89,7 +89,9 @@ const (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t DataResourcePricingStrategy) String() string {
 | 
					func (t DataResourcePricingStrategy) String() string {
 | 
				
			||||||
	return [...]string{"PER DOWNLOAD", "PER TB DOWNLOADED", "PER GB DOWNLOADED", "PER MB DOWNLOADED", "PER KB DOWNLOADED"}[t]
 | 
						l := pricing.TimePricingStrategyListStr()
 | 
				
			||||||
 | 
						l = append(l, []string{"PER DOWNLOAD", "PER TB DOWNLOADED", "PER GB DOWNLOADED", "PER MB DOWNLOADED", "PER KB DOWNLOADED"}...)
 | 
				
			||||||
 | 
						return l[t]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func DataResourcePricingStrategyList() []DataResourcePricingStrategy {
 | 
					func DataResourcePricingStrategyList() []DataResourcePricingStrategy {
 | 
				
			||||||
@@ -101,7 +103,9 @@ func ToDataResourcePricingStrategy(i int) DataResourcePricingStrategy {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t DataResourcePricingStrategy) GetStrategy() string {
 | 
					func (t DataResourcePricingStrategy) GetStrategy() string {
 | 
				
			||||||
	return [...]string{"PER_DOWNLOAD", "PER_GB", "PER_MB", "PER_KB"}[t]
 | 
						l := pricing.TimePricingStrategyListStr()
 | 
				
			||||||
 | 
						l = append(l, []string{"PER DATA STORED", "PER TB STORED", "PER GB STORED", "PER MB STORED", "PER KB STORED"}...)
 | 
				
			||||||
 | 
						return l[t]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t DataResourcePricingStrategy) GetStrategyValue() int {
 | 
					func (t DataResourcePricingStrategy) GetStrategyValue() int {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -115,11 +115,15 @@ func StorageResourcePricingStrategyList() []StorageResourcePricingStrategy {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t StorageResourcePricingStrategy) String() string {
 | 
					func (t StorageResourcePricingStrategy) String() string {
 | 
				
			||||||
	return [...]string{"PER DATA STORED", "PER TB STORED", "PER GB STORED", "PER MB STORED", "PER KB STORED"}[t]
 | 
						l := pricing.TimePricingStrategyListStr()
 | 
				
			||||||
 | 
						l = append(l, []string{"PER DATA STORED", "PER TB STORED", "PER GB STORED", "PER MB STORED", "PER KB STORED"}...)
 | 
				
			||||||
 | 
						return l[t]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t StorageResourcePricingStrategy) GetStrategy() string {
 | 
					func (t StorageResourcePricingStrategy) GetStrategy() string {
 | 
				
			||||||
	return [...]string{"PER_DATA_STORED", "PER_GB_STORED", "PER_MB_STORED", "PER_KB_STORED"}[t]
 | 
						l := pricing.TimePricingStrategyListStr()
 | 
				
			||||||
 | 
						l = append(l, []string{"PER DATA STORED", "PER TB STORED", "PER GB STORED", "PER MB STORED", "PER KB STORED"}...)
 | 
				
			||||||
 | 
						return l[t]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t StorageResourcePricingStrategy) GetStrategyValue() int {
 | 
					func (t StorageResourcePricingStrategy) GetStrategyValue() int {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user