package com.brframework.commoncms.annatotion.column;


import com.brframework.commoncms.annatotion.Column;
import com.brframework.commoncms.annatotion.LayoutColumn;
import com.brframework.commoncms.core.layout.column.LayoutDateTimeBetweenColumn;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 日期时间区间控件
 *
 * @author 揭光智
 * @date 2019/02/16
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@LayoutColumn(type = LayoutDateTimeBetweenColumn.class)
@Column
public @interface DateTimeBetweenColumn {
    /**
     * 列表展示时，该列是否处于显示状态，可控制列表中，默认隐藏和显示的列
     */
    @AliasFor(annotation = Column.class)
    boolean selectShow() default true;
}
