package com.huimv.gateway.sign;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author huimv
 *
 */
@Target({TYPE, METHOD})
@Retention(RUNTIME)
@Documented
public @interface Signature {

    /**
     * 按照order值排序
     */
    String ORDER_SORT = "ORDER_SORT";

    /**
     * 字典序排序
     */
    String ALPHA_SORT = "ALPHA_SORT";

    /**
     * 允许重复请求
     */
    boolean resubmit() default true;

    String sort() default Signature.ALPHA_SORT;
}