refactor(SelectVO.java): TreeVO替换为SelectVO,其中的id变为value

This commit is contained in:
有来技术 2021-08-29 01:09:22 +08:00
parent ab8240960e
commit a3e54992f4
2 changed files with 26 additions and 19 deletions

View File

@ -0,0 +1,26 @@
package com.youlai.admin.pojo.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
public class SelectVO {
public SelectVO(Long value, String label) {
this.value = value;
this.label = label;
}
private Long value;
private String label;
@JsonInclude(value = JsonInclude.Include.NON_NULL)
private List<SelectVO> children;
}

View File

@ -1,19 +0,0 @@
package com.youlai.admin.pojo.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.util.List;
@Data
public class TreeVO {
private Long id;
private String label;
@JsonInclude(value = JsonInclude.Include.NON_NULL)
private List<TreeVO> children;
}