From 10cc0db30a1be5377e4c09bce349014a667849b6 Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期三, 12 一月 2022 13:21:08 +0800 Subject: [PATCH] Merge branch 'phs' into test --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/microCommercialStreet/McsGameDTO.java | 85 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 85 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/microCommercialStreet/McsGameDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/microCommercialStreet/McsGameDTO.java new file mode 100644 index 0000000..fdf077c --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/microCommercialStreet/McsGameDTO.java @@ -0,0 +1,85 @@ +package com.panzhihua.common.model.dtos.community.microCommercialStreet; + +import java.util.Date; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.panzhihua.common.validated.AddGroup; +import com.panzhihua.common.validated.PutGroup; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @title: McsGameDTO + * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 + * @description: 新增/编辑戳戳游戏 + * @author: hans + * @date: 2021/12/31 15:42 + */ +@Data +@ApiModel("新增/编辑戳戳游戏") +public class McsGameDTO { + + @ApiModelProperty("游戏ID") + @NotNull(groups = {PutGroup.class}, message = "游戏ID不能为空") + private Long id; + + @ApiModelProperty("游戏名称") + @NotBlank(groups = {AddGroup.class}, message = "游戏名称不能为空") + private String name; + + @ApiModelProperty("戳戳卷数量") + @NotNull(groups = {AddGroup.class}, message = "戳戳卷数量不能为空") + private Integer coupons; + + @ApiModelProperty("游戏类别(1.戳戳币游戏 2.体验游戏)") + @NotNull(groups = {AddGroup.class}, message = "游戏类别不能为空") + private Integer type; + + @ApiModelProperty("奖励类型(1.免费产品 2.免费服务)") + private Integer awardType; + + @ApiModelProperty("戳戳币分配方式(1.随机分配 2.平均分配)") + private Integer allocation; + + @ApiModelProperty("戳戳币数量") + private Integer coins; + + @ApiModelProperty("地址") + @NotBlank(groups = {AddGroup.class}, message = "地址不能为空") + private String address; + + @ApiModelProperty("纬度") + @NotBlank(groups = {AddGroup.class}, message = "纬度不能为空") + private String lat; + + @ApiModelProperty("经度") + @NotBlank(groups = {AddGroup.class}, message = "经度不能为空") + private String lon; + + @ApiModelProperty("失效时间") + @NotNull(groups = {AddGroup.class}, message = "失效时间不能为空") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date expireAt; + + @ApiModelProperty("封面") + @NotBlank(groups = {AddGroup.class}, message = "封面不能为空") + private String cover; + + @ApiModelProperty("其他图片(多张图片以逗号隔开)") + private String otherImages; + + @ApiModelProperty("游戏介绍") + @NotBlank(groups = {AddGroup.class}, message = "游戏介绍不能为空") + private String introduction; + + @ApiModelProperty(value = "创建人", hidden = true) + private Long createdBy; + + @ApiModelProperty(value = "更新人", hidden = true) + private Long updatedBy; +} \ No newline at end of file -- Gitblit v1.7.1