34 lines
812 B
Java
34 lines
812 B
Java
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;
|
||
}
|