FlexJobApi.Core/Utils/StringUtils/StringUtils.cs
@@ -49,6 +49,12 @@ return null; } public static decimal? ToDecimal(this string str) { if (str.IsNotNull() && decimal.TryParse(str, out var @int)) return @int; return null; } public static T? ToEnum<T>(this string str, string requiredMessage = null) where T : struct {