style: 全项目统一 Tab 缩进并补全尾随逗号
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
class DateTimeToStringConverter : Converter<DateTime, String?> {
|
||||
override fun convert(source: DateTime): String {
|
||||
return source.format(Formatter.STANDARD_DATETIME)
|
||||
}
|
||||
override fun convert(source: DateTime): String {
|
||||
return source.format(Formatter.STANDARD_DATETIME)
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -29,7 +29,7 @@ import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
class StringToDateTimeConverter : Converter<String, DateTime> {
|
||||
override fun convert(source: String): DateTime {
|
||||
return DateTime.parse(source, Formatter.STANDARD_DATETIME_MILLISECOUND7, true)
|
||||
}
|
||||
override fun convert(source: String): DateTime {
|
||||
return DateTime.parse(source, Formatter.STANDARD_DATETIME_MILLISECOUND7, true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
class StringToUUIDConverter : Converter<String, UUID> {
|
||||
override fun convert(source: String): UUID {
|
||||
return UUID.of(source)
|
||||
}
|
||||
override fun convert(source: String): UUID {
|
||||
return UUID.of(source)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
class UUIDToStringConverter : Converter<UUID, String> {
|
||||
override fun convert(source: UUID): String {
|
||||
return source.getString()
|
||||
}
|
||||
override fun convert(source: UUID): String {
|
||||
return source.getString()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user