All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zyy.common.annotation.InitModel Maven / Gradle / Ivy

package com.zyy.common.annotation;

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

/**
 * @author : li.yang
 * @version : 1.0
 * Date : 2020/6/15 9:27
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface InitModel {
    /**
     * 参数是否必须
     *
     * @return boolean
     */
    boolean required() default false;

    /**
     * 可选值为create || modify
     *
     * @return String
     */
    String model() default "create";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy