mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
modify name
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"github.com/mayswind/lab/pkg/utils"
|
||||
)
|
||||
|
||||
func ValidRGBColor(fl validator.FieldLevel) bool {
|
||||
func ValidHexRGBColor(fl validator.FieldLevel) bool {
|
||||
if value, ok := fl.Field().Interface().(string); ok {
|
||||
if utils.IsValidRGBColor(value) {
|
||||
if utils.IsValidHexRGBColor(value) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user