package com.sckw.core.annotation;

import com.sckw.core.model.constant.Global;
import org.springframework.web.bind.annotation.Mapping;
import java.lang.annotation.*;

/**
 * @desc 控制接口版本
 * @author zk
 * @date 2023/7/3 0003
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface ApiVersion {
    /**
     * 标识版本号
     * @return
     */
    String value() default Global.API_VERSION;

}
