package com.brframework.commoncms.annatotion.layout;

import com.brframework.commoncms.annatotion.Panel;
import com.brframework.commoncms.annatotion.option.CmsOption;
import com.brframework.commoncms.core.layout.layout.PanelEditAlertLayout;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author xu
 * @date 2018/9/26 16:55
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Panel(type = PanelEditAlertLayout.class)
public @interface EditAlertLayout {
    /**
     * 操作模块
     * @return
     */
    @AliasFor(annotation = Panel.class, value = "options")
    CmsOption[] options() default {};

    /**
     * 数据填充的url
     * @return
     */
    String paddingUrl() default "";

    /**
     * 填充数据对应的方法名映射
     * @return
     */
    String paddingMappingMethod() default "";

}
