package com.ho.td.api.entity.query;

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

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * @Author yule
 * @Date 2024/3/15 16:51
 * @desc ${}
 */
@Data
public class UpdateTdReq {

    @ApiModelProperty(value = "表名")
    @NotEmpty(message = "表名不能为空")
    String tableName;

    @ApiModelProperty(value = "开始时间")
    @NotEmpty(message = "开始时间不能为空")
    String startTime;

    @ApiModelProperty(value = "结束时间")
    @NotEmpty(message = "结束时间不能为空")
    String endTime;

    @ApiModelProperty(value = "修改字段")
    @NotEmpty(message = "修改字段不能为空")
    String col;

    @ApiModelProperty(value = "修改倍数")
    @NotEmpty(message = "修改倍数不能为空")
    BigDecimal multiple;

    @ApiModelProperty(value = "运算类型，1:加 2:减 3:乘 4:除")
    @NotEmpty(message = "运算类型不能为空")
    Integer type;


    String sTableName;

    Integer groupId;
    Integer stationId;
    Integer srcId;

    Long start;

    Long end;
}
