Commit 90bf1153 by wangli

新增接口返回DTO

1 parent 2a594887
package com.dituhui.pea.order.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.util.List;
@Data
public class WorkbenchSummaryResp {
private List<ItemDTO> summary;
@Data
public static class ItemDTO {
private String type;
private List<ValueDTO> rows;
}
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class ValueDTO {
private String title;
private String value;
private String total;
private String valueColor;
private String url;
public ValueDTO(String title, String value, String total, String valueColor, String url){
this.title = title;
this.value = value;
this.total = total;
this.valueColor = valueColor;
this.url = url;
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!