|
@@ -5,7 +5,8 @@ import java.util.List;
|
|
|
|
|
|
import com.chelvc.cloud.vehicle.api.constant.CategoryType;
|
|
|
import com.chelvc.cloud.vehicle.api.dto.CategoryDTO;
|
|
|
-import com.chelvc.framework.common.annotation.EnumerateWrapping;
|
|
|
+import com.chelvc.framework.common.serializer.JacksonEnumerateSerializer;
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
@@ -30,7 +31,7 @@ public class CategoryVO implements Serializable {
|
|
|
/**
|
|
|
* 分类类型
|
|
|
*/
|
|
|
- @EnumerateWrapping
|
|
|
+ @JsonSerialize(using = JacksonEnumerateSerializer.class)
|
|
|
private CategoryType type;
|
|
|
|
|
|
/**
|