Dockerfile
This commit is contained in:
17
consts/public/currency.go
Normal file
17
consts/public/currency.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package public
|
||||
|
||||
// Currency 货币类型枚举
|
||||
type Currency string
|
||||
|
||||
const (
|
||||
CurrencyCNY Currency = "CNY" // 人民币
|
||||
CurrencyUSD Currency = "USD" // 美元
|
||||
)
|
||||
|
||||
// GetAllCurrencies 获取所有货币类型
|
||||
func GetAllCurrencies() []Currency {
|
||||
return []Currency{
|
||||
CurrencyCNY,
|
||||
CurrencyUSD,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user