26 lines
587 B
Java
26 lines
587 B
Java
package com.imyeyu.api.annotation;
|
|
|
|
import com.imyeyu.api.modules.common.bean.SettingKey;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* 启用配置注解
|
|
*
|
|
* @author 夜雨
|
|
* @since 2023-07-15 10:00
|
|
*/
|
|
@Target(ElementType.METHOD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface EnableSetting {
|
|
|
|
/** @return 配置键 */
|
|
SettingKey value();
|
|
|
|
/** @return 未启用配置时响应消息语言映射键 */
|
|
String message() default "service.offline";
|
|
}
|