package com.ylx.point.domain.dto;

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

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("本地生活抽奖加积分DTO")
public class ApiAddPointsDTO {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", required = true)
    private String userId;

    @NotNull(message = "积分变动值不能为空")
    @Min(value = 1, message = "积分变动值必须大于0")
    @ApiModelProperty(value = "积分变动值", required = true)
    private Integer points;

}
