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.PanelEditLayout;
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 = PanelEditLayout.class)
public @interface EditLayout {
    /**
     * 操作模块
     * @return
     */
    @AliasFor(annotation = Panel.class, value = "options")
    CmsOption[] options() default {};

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

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

}
