13 changed files with 440 additions and 11 deletions
@ -1,17 +1,92 @@ |
|||||
package com.epmet.dto.form; |
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
||||
import javax.validation.constraints.NotBlank; |
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotEmpty; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.util.List; |
||||
|
|
||||
@Data |
@Data |
||||
public class CustomerFootBarFormDTO { |
public class CustomerFootBarFormDTO { |
||||
|
|
||||
//@NotBlank(message = "客户ID不能为空")
|
// 创建footbar的分组
|
||||
|
public interface CreateFootBarGroup extends CustomerClientShowGroup {} |
||||
|
|
||||
|
// 查询footbar列表分组
|
||||
|
public interface ListFootBarGroup {} |
||||
|
|
||||
|
// 更新footbar
|
||||
|
public interface UpdateFootBarGroup {} |
||||
|
|
||||
|
// 保存顺序
|
||||
|
public interface SaveOrderGroup {} |
||||
|
|
||||
|
// 明细分组
|
||||
|
public interface FootBarDetailGroup {} |
||||
|
|
||||
|
// 更新显示状态分组
|
||||
|
public interface UpdateDisplayStatusGroup {} |
||||
|
|
||||
|
// 为客户添加默认footbar
|
||||
|
public interface AddDefaultFootbars4Customer {} |
||||
|
|
||||
|
@NotBlank(message = "FootBar的ID不能为空", groups = { UpdateFootBarGroup.class, FootBarDetailGroup.class, UpdateDisplayStatusGroup.class }) |
||||
|
private String id; |
||||
|
|
||||
|
@NotBlank(message = "客户ID不能为空", groups = { CreateFootBarGroup.class, AddDefaultFootbars4Customer.class }) |
||||
private String customerId; |
private String customerId; |
||||
|
|
||||
// 哪一个端:gov,resi
|
// 哪一个端:gov,resi
|
||||
@NotBlank(message = "app类型不能为空") |
@NotBlank(message = "app类型不能为空", groups = { ListFootBarGroup.class, CreateFootBarGroup.class, AddDefaultFootbars4Customer.class }) |
||||
private String appType; |
private String appType; |
||||
|
|
||||
|
@NotBlank(message = "名称不能为空", groups = { CreateFootBarGroup.class, UpdateFootBarGroup.class }) |
||||
|
private String barName; |
||||
|
|
||||
|
@NotBlank(message = "key不能为空", groups = { CreateFootBarGroup.class }) |
||||
|
private String barKey; |
||||
|
|
||||
|
@NotBlank(message = "页面标题不能为空", groups = { CreateFootBarGroup.class, UpdateFootBarGroup.class }) |
||||
|
private String pageTitle; |
||||
|
|
||||
|
@NotBlank(message = "图标路径不能为空", groups = { CreateFootBarGroup.class, UpdateFootBarGroup.class }) |
||||
|
private String iconPath; |
||||
|
|
||||
|
@NotBlank(message = "选中的图标路径不能为空", groups = { CreateFootBarGroup.class, UpdateFootBarGroup.class }) |
||||
|
private String selectedIconPath; |
||||
|
|
||||
|
@NotEmpty(message = "顺序不能为空", groups = { SaveOrderGroup.class }) |
||||
|
private List<OrderIndexDTO> orderList; |
||||
|
|
||||
|
@NotNull(message = "显示状态不能为空", groups = { UpdateDisplayStatusGroup.class }) |
||||
|
private Boolean display; |
||||
|
|
||||
|
/** |
||||
|
* 排序索引号dto |
||||
|
*/ |
||||
|
public static class OrderIndexDTO { |
||||
|
private String id; |
||||
|
private Integer orderIndex; |
||||
|
|
||||
|
public OrderIndexDTO() { |
||||
|
} |
||||
|
|
||||
|
public String getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(String id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Integer getOrderIndex() { |
||||
|
return orderIndex; |
||||
|
} |
||||
|
|
||||
|
public void setOrderIndex(Integer orderIndex) { |
||||
|
this.orderIndex = orderIndex; |
||||
|
} |
||||
|
} |
||||
} |
} |
||||
|
@ -0,0 +1,2 @@ |
|||||
|
alter table customer_foot_bar add column DISPLAY tinyint(1) default 1; |
||||
|
alter table customer_foot_bar change `ORDER` ORDER_INDEX tinyint(1) default 1; |
Loading…
Reference in new issue