forked from rongchao/epmet-cloud-rizhao
				
			
				 71 changed files with 900 additions and 113 deletions
			
			
		@ -1,17 +1,98 @@ | 
				
			|||
package com.epmet.dto.form; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import javax.validation.constraints.NotEmpty; | 
				
			|||
import javax.validation.constraints.NotNull; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
@Data | 
				
			|||
public class CustomerFootBarFormDTO { | 
				
			|||
 | 
				
			|||
    //@NotBlank(message = "客户ID不能为空")
 | 
				
			|||
    // 创建footbar的分组
 | 
				
			|||
    public interface CreateFootBarGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 查询footbar列表分组
 | 
				
			|||
    public interface ListFootBarGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 运营端查询footbar列表分组
 | 
				
			|||
    public interface ListFootBarGroup4Oper extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 更新footbar
 | 
				
			|||
    public interface UpdateFootBarGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 保存顺序
 | 
				
			|||
    public interface SaveOrderGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 明细分组
 | 
				
			|||
    public interface FootBarDetailGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 更新显示状态分组
 | 
				
			|||
    public interface UpdateDisplayStatusGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 为客户添加默认footbar
 | 
				
			|||
    public interface AddDefaultFootbars4Customer extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    // 删除footbar
 | 
				
			|||
    public interface DeleteFootbarsGroup extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    @NotBlank(message = "FootBar的ID不能为空", groups = { UpdateFootBarGroup.class, FootBarDetailGroup.class, UpdateDisplayStatusGroup.class, DeleteFootbarsGroup.class }) | 
				
			|||
    private String id; | 
				
			|||
 | 
				
			|||
    @NotBlank(message = "客户ID不能为空", groups = { CreateFootBarGroup.class, AddDefaultFootbars4Customer.class, ListFootBarGroup4Oper.class }) | 
				
			|||
    private String customerId; | 
				
			|||
 | 
				
			|||
    // 哪一个端:gov,resi
 | 
				
			|||
    @NotBlank(message = "app类型不能为空") | 
				
			|||
    @NotBlank(message = "app类型不能为空", groups = { ListFootBarGroup.class, CreateFootBarGroup.class, AddDefaultFootbars4Customer.class, ListFootBarGroup4Oper.class }) | 
				
			|||
    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 = { UpdateFootBarGroup.class })
 | 
				
			|||
    private String iconPath; | 
				
			|||
 | 
				
			|||
    //@NotBlank(message = "选中的图标路径不能为空", groups = { 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