Dockerfile
This commit is contained in:
21
consts/procurement/billing_method.go
Normal file
21
consts/procurement/billing_method.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package consts
|
||||
|
||||
// BillingMethod 计费方式枚举
|
||||
type BillingMethod string
|
||||
|
||||
const (
|
||||
BillingMethodCount BillingMethod = "count" // 按数量
|
||||
BillingMethodDuration BillingMethod = "duration" // 按时长
|
||||
BillingMethodSku BillingMethod = "sku" // 按SKU
|
||||
BillingMethodDurationAndSku BillingMethod = "duration_and_sku" // 按时长+SKU
|
||||
)
|
||||
|
||||
// GetAllBillingMethods 获取所有计费方式
|
||||
func GetAllBillingMethods() []BillingMethod {
|
||||
return []BillingMethod{
|
||||
BillingMethodCount,
|
||||
BillingMethodDuration,
|
||||
BillingMethodSku,
|
||||
BillingMethodDurationAndSku,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user