package com.purui.prims.headless.api.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class FieldParam {

    @ApiModelProperty(value = "字段名称")
    private String fieldName;

    @ApiModelProperty(value = "聚合方式")
    private String agg;

    @ApiModelProperty(value = "表达式")
    private String expr;

    public FieldParam(String fieldName) {
        this.fieldName = fieldName;
        this.expr = fieldName;
        this.agg = "sum";
    }

}
