34 lines
812 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.caseData.request.RewardPointRequest;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
@Data
public class rewardPoint {
/**
* 主键id根据type不同对应不同数据表
*/
@JsonProperty("id")
@NotEmpty(message = "参数错误")
private String id;
/**
* 类型1:文章 2:视频 3:病例交流)
*/
@JsonProperty("type")
@NotNull(message = "参数错误")
private Integer type;
/**
* 总积分
*/
@JsonProperty("point")
@NotNull(message = "参数错误")
@Min(value = 1, message = "请最少打赏1积分")
private Integer point;
}