4 changed files with 105 additions and 0 deletions
@ -0,0 +1,63 @@ |
|||
package com.epmet.dto.form.work; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/7/30 12:15 |
|||
*/ |
|||
@Data |
|||
public class TestGrantFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2643821406956680381L; |
|||
public interface AddUserInternalGroup {} |
|||
/** |
|||
* 当前客户id |
|||
*/ |
|||
@NotBlank(message = "客户id不能为空",groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
/** |
|||
* 居民id |
|||
*/ |
|||
@NotBlank(message = "userId不能为空",groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
/** |
|||
* 分值 |
|||
*/ |
|||
@NotNull(message = "分值不能为空",groups = AddUserInternalGroup.class) |
|||
private Integer reward; |
|||
/** |
|||
* 业务id eg:活动id |
|||
*/ |
|||
@NotBlank(message = "业务id不能为空",groups = AddUserInternalGroup.class) |
|||
private String sourceId; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
@NotBlank(message = "备注不能为空",groups = AddUserInternalGroup.class) |
|||
private String remark; |
|||
|
|||
/** |
|||
* 加减分标识 plus/minus |
|||
*/ |
|||
@NotBlank(message = "加减分标识 plus/minus不能为空",groups = AddUserInternalGroup.class) |
|||
private String actionFlag; |
|||
|
|||
TestGrantFormDTO(){ |
|||
this.customerId=""; |
|||
this.userId=""; |
|||
this.sourceId="111"; |
|||
this.reward=20; |
|||
this.remark="test"; |
|||
this.actionFlag="plus"; |
|||
} |
|||
public static void main(String[] args) { |
|||
System.out.println(JSON.toJSON(new TestGrantFormDTO())); |
|||
} |
|||
} |
Loading…
Reference in new issue