1. 暂存原子指标计算相关功能
parent
d13ee1d288
commit
3a98cf574f
@ -0,0 +1,50 @@
|
||||
package com.supervision.police.dto;
|
||||
|
||||
import com.supervision.police.domain.EvidenceCategory;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 案件分类
|
||||
*/
|
||||
@Data
|
||||
public class EvidenceCategoryDTO {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 分类名
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
/**
|
||||
* 图标url
|
||||
*/
|
||||
private String iconUrl;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
private String parentId;
|
||||
|
||||
/**
|
||||
* 子级分类
|
||||
*/
|
||||
private List<EvidenceCategoryDTO> child;
|
||||
|
||||
public EvidenceCategoryDTO() {
|
||||
}
|
||||
|
||||
public EvidenceCategoryDTO(EvidenceCategory category) {
|
||||
this.id = category.getId();
|
||||
this.categoryName = category.getCategoryName();
|
||||
this.iconUrl = category.getIconURl();
|
||||
this.parentId = category.getParentId();
|
||||
this.child = new ArrayList<>();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue