add comments

This commit is contained in:
MaysWind
2020-12-25 23:57:32 +08:00
parent c20cca869a
commit c9190e2427
5 changed files with 5 additions and 0 deletions
+1
View File
@@ -168,6 +168,7 @@ var allCurrencyNames = map[string]bool{
"ZWL": true, //Zimbabwe Dollar
}
// ValidCurrency returns whether the given currency is valid
func ValidCurrency(fl validator.FieldLevel) bool {
if value, ok := fl.Field().Interface().(string); ok {
if value == ParentAccountCurrencyPlaceholder {