mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
refactor(SelectVO.java): TreeVO替换为SelectVO,其中的id变为value
This commit is contained in:
parent
ab8240960e
commit
a3e54992f4
@ -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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user