test
This commit is contained in:
		| @@ -89,7 +89,9 @@ const ( | ||||
| ) | ||||
|  | ||||
| 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 { | ||||
| @@ -101,7 +103,9 @@ func ToDataResourcePricingStrategy(i int) DataResourcePricingStrategy { | ||||
| } | ||||
|  | ||||
| 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 { | ||||
|   | ||||
| @@ -115,11 +115,15 @@ func StorageResourcePricingStrategyList() []StorageResourcePricingStrategy { | ||||
| } | ||||
|  | ||||
| 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 { | ||||
| 	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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user