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

com.github.liuanxin.api.annotation.ApiToken Maven / Gradle / Ivy

The newest version!
package com.github.liuanxin.api.annotation;

import java.lang.annotation.*;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ApiToken {

    /** @return param name */
    String name();

    /** @return param desc */
    String desc() default "";

    /** @return param example */
    String example() default "";

    /** @return if type was custom. can be: int、long、float、double、date、phone、email、url、ipv4 */
    String dataType() default "";

    /** @return Header or Query */
    ParamType paramType() default ParamType.Header;

    /** @return true will save all same info in html */
    boolean globalSave() default true;

    /** @return if param has @RequestParam(required = true) etc..., this set will ignore */
    boolean required() default false;

    /** @return in html, true will be textarea, default was input. */
    boolean textarea() default false;

    /** @return show html style in page */
    String style() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy