package com.YuyeTech.TPlat.form;

import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.util.Date;

/**
 * @author:slambb
 * @date:2019/12/31
 */
@Data
public class FitnessForm {

    private String userId;

    @NotNull(message = "开始日期不能为空")
    private Date startTime;

    @NotNull(message = "结束日期不能为空")
//    @Future(message = "截止日期早于当前日期")
    private Date endTime;


    private Double targetWeight;

    private Integer cumulativeCalorie;

    private Double sportTime;

    private Integer calorie;
}
