fix:添加产品分类树状列表接口
parent
d081c4d0d7
commit
5f370f6c2f
@ -0,0 +1,20 @@
|
|||||||
|
package cn.iocoder.yudao.module.erp.controller.admin.product.vo.category;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - ERP 产品分类树状 Response VO")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class ErpProductCategoryTreeRespVO extends ErpProductCategoryRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "子分类列表")
|
||||||
|
private List<ErpProductCategoryTreeRespVO> children;
|
||||||
|
|
||||||
|
@Schema(description = "是否叶子节点", example = "true")
|
||||||
|
private Boolean leaf = true;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package cn.iocoder.yudao.module.erp.controller.admin.product.vo.category;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - ERP 产品分类按类型分组 Response VO")
|
||||||
|
@Data
|
||||||
|
public class ErpProductCategoryTypeGroupRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "分类类型", example = "1")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
@Schema(description = "该类型下的树状分类列表")
|
||||||
|
private List<ErpProductCategoryTreeRespVO> children;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue