记得上下班打卡 | git大法好,push需谨慎

Commit 54f7d98e authored by jiangxiulong's avatar jiangxiulong

openSend Valid

parent 8eab5117
...@@ -4,7 +4,7 @@ import io.swagger.annotations.ApiModel; ...@@ -4,7 +4,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.*;
import java.io.Serializable; import java.io.Serializable;
@ApiModel(value = "SweetOpenSendMsgParam", description = "发送模版消息公共接口入参") @ApiModel(value = "SweetOpenSendMsgParam", description = "发送模版消息公共接口入参")
...@@ -14,7 +14,7 @@ public class SweetOpenSendMsgParam implements Serializable { ...@@ -14,7 +14,7 @@ public class SweetOpenSendMsgParam implements Serializable {
private static final long serialVersionUID = 675588088506034208L; private static final long serialVersionUID = 675588088506034208L;
@ApiModelProperty(position = 11, required = true, allowableValues = "1,2", value = "发送目标类型 1正在服务号 2摩登服务号") @ApiModelProperty(position = 11, required = true, allowableValues = "1,2", value = "发送目标类型 1正在服务号 2摩登服务号")
@NotBlank(message = "sendTargetType不能为空") @NotNull(message = "sendTargetType不能为空") @Min(value = 1, message = "sendTargetType无效") @Max(value = 2, message = "sendTargetType无效")
private Integer sendTargetType; private Integer sendTargetType;
@ApiModelProperty(position = 12, required = true, value = "模版消息ID", example = "") @ApiModelProperty(position = 12, required = true, value = "模版消息ID", example = "")
...@@ -26,7 +26,7 @@ public class SweetOpenSendMsgParam implements Serializable { ...@@ -26,7 +26,7 @@ public class SweetOpenSendMsgParam implements Serializable {
private String templateData; private String templateData;
@ApiModelProperty(position = 14, required = true, allowableValues = "1,2,3,4,5", value = "点击跳转类型 1草莓小程序 2五百里小程序 3mdsk小程序 4正在小程序 5url", example = "") @ApiModelProperty(position = 14, required = true, allowableValues = "1,2,3,4,5", value = "点击跳转类型 1草莓小程序 2五百里小程序 3mdsk小程序 4正在小程序 5url", example = "")
@NotBlank(message = "jumpType不能为空") @NotNull(message = "jumpType不能为空") @Min(value = 1, message = "jumpType无效") @Max(value = 5, message = "jumpType无效")
private Integer jumpType; private Integer jumpType;
@ApiModelProperty(position = 15, value = "跳转url", example = "www.zhengzai.tv") @ApiModelProperty(position = 15, value = "跳转url", example = "www.zhengzai.tv")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment