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

Commit fc1bd9c1 authored by jiangxiulong's avatar jiangxiulong

add activityNum

parent 7e8a3a77
...@@ -46,6 +46,10 @@ public class SweetIntegralActivityFromParam implements Serializable, Cloneable { ...@@ -46,6 +46,10 @@ public class SweetIntegralActivityFromParam implements Serializable, Cloneable {
@NotNull(message = "activityType不能为空") @NotNull(message = "activityType不能为空")
private Integer activityType; private Integer activityType;
@ApiModelProperty(required = true, value = "活动玩一次所需积分", example = "1")
@NotNull(message = "activityNum不能为空")
private Integer activityNum;
@ApiModelProperty(required = true, value = "活动时间类型 1长期 2开始结束时间", example = "1") @ApiModelProperty(required = true, value = "活动时间类型 1长期 2开始结束时间", example = "1")
@NotNull(message = "timeType不能为空") @Min(value = 1, message = "timeType无效") @Max(value = 2, message = "timeType无效") @NotNull(message = "timeType不能为空") @Min(value = 1, message = "timeType无效") @Max(value = 2, message = "timeType无效")
private Integer timeType; private Integer timeType;
......
...@@ -24,6 +24,9 @@ public class IntegralActivityVo implements Serializable, Cloneable { ...@@ -24,6 +24,9 @@ public class IntegralActivityVo implements Serializable, Cloneable {
@ApiModelProperty(value = "活动类型 1转盘") @ApiModelProperty(value = "活动类型 1转盘")
private Integer activityType; private Integer activityType;
@ApiModelProperty(value = "活动玩一次所需积分")
private Integer activityNum;
@ApiModelProperty(value = "活动时间类型 1长期 2开始结束时间") @ApiModelProperty(value = "活动时间类型 1长期 2开始结束时间")
private Integer timeType; private Integer timeType;
......
...@@ -38,6 +38,9 @@ public class SweetIntegralActivityVo implements Serializable, Cloneable { ...@@ -38,6 +38,9 @@ public class SweetIntegralActivityVo implements Serializable, Cloneable {
@ApiModelProperty(value = "活动类型 1转盘") @ApiModelProperty(value = "活动类型 1转盘")
private Integer activityType; private Integer activityType;
@ApiModelProperty(value = "活动玩一次所需积分")
private Integer activityNum;
@ApiModelProperty(value = "活动时间类型 1长期 2开始结束时间") @ApiModelProperty(value = "活动时间类型 1长期 2开始结束时间")
private Integer timeType; private Integer timeType;
......
...@@ -29,6 +29,11 @@ public class SweetIntegralActivityDto { ...@@ -29,6 +29,11 @@ public class SweetIntegralActivityDto {
*/ */
private Integer activityType; private Integer activityType;
/**
* 活动玩一次所需积分
*/
private Integer activityNum;
/** /**
* 活动时间类型 1长期 2开始结束时间 * 活动时间类型 1长期 2开始结束时间
*/ */
......
...@@ -46,6 +46,11 @@ public class SweetIntegralActivity implements Serializable, Cloneable { ...@@ -46,6 +46,11 @@ public class SweetIntegralActivity implements Serializable, Cloneable {
*/ */
private Integer activityType; private Integer activityType;
/**
* 活动玩一次所需积分
*/
private Integer activityNum;
/** /**
* 活动时间类型 1长期 2开始结束时间 * 活动时间类型 1长期 2开始结束时间
*/ */
......
...@@ -11,6 +11,7 @@ CREATE TABLE `sweet_integral_activity` ...@@ -11,6 +11,7 @@ CREATE TABLE `sweet_integral_activity`
`activity_title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动名称', `activity_title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动名称',
`activity_img` varchar(255) NOT NULL DEFAULT '' COMMENT '活动图片', `activity_img` varchar(255) NOT NULL DEFAULT '' COMMENT '活动图片',
`activity_type` tinyint NOT NULL DEFAULT 0 COMMENT '活动类型 1转盘', `activity_type` tinyint NOT NULL DEFAULT 0 COMMENT '活动类型 1转盘',
`activity_num` int NOT NULL DEFAULT 0 COMMENT '活动玩一次所需积分',
`time_type` tinyint NOT NULL DEFAULT 0 COMMENT '活动时间类型 1长期 2开始结束时间', `time_type` tinyint NOT NULL DEFAULT 0 COMMENT '活动时间类型 1长期 2开始结束时间',
`start_time` datetime NULL DEFAULT NULL COMMENT '如果活动有时间限制 开始时间', `start_time` datetime NULL DEFAULT NULL COMMENT '如果活动有时间限制 开始时间',
`end_time` datetime NULL DEFAULT NULL COMMENT '如果活动有时间限制 结束时间', `end_time` datetime NULL DEFAULT NULL COMMENT '如果活动有时间限制 结束时间',
......
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