mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): aliyun rds billing type
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
|
||||
func convertChargeType(ct TChargeType) string {
|
||||
switch ct {
|
||||
case PrePaidInstanceChargeType:
|
||||
case PrePaidInstanceChargeType, PrePaidDBInstanceChargeType:
|
||||
return api.BILLING_TYPE_PREPAID
|
||||
case PostPaidInstanceChargeType, PostPaidDBInstanceChargeType:
|
||||
return api.BILLING_TYPE_POSTPAID
|
||||
|
||||
@@ -31,6 +31,7 @@ type TChargeType string
|
||||
|
||||
const (
|
||||
PrePaidInstanceChargeType TChargeType = "PrePaid"
|
||||
PrePaidDBInstanceChargeType TChargeType = "Prepaid"
|
||||
PostPaidInstanceChargeType TChargeType = "PostPaid"
|
||||
PostPaidDBInstanceChargeType TChargeType = "Postpaid"
|
||||
DefaultInstanceChargeType = PostPaidInstanceChargeType
|
||||
|
||||
Reference in New Issue
Block a user