mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 13:17:50 +08:00
replace fastjson annotation
This commit is contained in:
parent
8cabb7a907
commit
c5b3f35bd4
@ -1,7 +1,6 @@
|
||||
package org.apache.dolphinscheduler.api.dto.resources;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONType;
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import org.apache.dolphinscheduler.common.enums.ResourceType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -26,7 +25,7 @@ import java.util.List;
|
||||
/**
|
||||
* resource component
|
||||
*/
|
||||
@JSONType(orders={"id","pid","name","fullName","description","isDirctory","children","type"})
|
||||
@JsonPropertyOrder({"id","pid","name","fullName","description","isDirctory","children","type"})
|
||||
public abstract class ResourceComponent {
|
||||
public ResourceComponent() {
|
||||
}
|
||||
@ -46,17 +45,14 @@ public abstract class ResourceComponent {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@JSONField(ordinal = 1)
|
||||
protected int id;
|
||||
/**
|
||||
* parent id
|
||||
*/
|
||||
@JSONField(ordinal = 2)
|
||||
protected int pid;
|
||||
/**
|
||||
* name
|
||||
*/
|
||||
@JSONField(ordinal = 3)
|
||||
protected String name;
|
||||
/**
|
||||
* current directory
|
||||
@ -65,32 +61,26 @@ public abstract class ResourceComponent {
|
||||
/**
|
||||
* full name
|
||||
*/
|
||||
@JSONField(ordinal = 4)
|
||||
protected String fullName;
|
||||
/**
|
||||
* description
|
||||
*/
|
||||
@JSONField(ordinal = 5)
|
||||
protected String description;
|
||||
/**
|
||||
* is directory
|
||||
*/
|
||||
@JSONField(ordinal = 6)
|
||||
protected boolean isDirctory;
|
||||
/**
|
||||
* id value
|
||||
*/
|
||||
@JSONField(ordinal = 7)
|
||||
protected String idValue;
|
||||
/**
|
||||
* resoruce type
|
||||
*/
|
||||
@JSONField(ordinal = 8)
|
||||
protected ResourceType type;
|
||||
/**
|
||||
* children
|
||||
*/
|
||||
@JSONField(ordinal = 8)
|
||||
protected List<ResourceComponent> children = new ArrayList<>();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user