| 1234567891011121314151617181920212223242526272829303132333435363738 |
- package com.poyee.annotation;
- import com.poyee.common.enums.I18nFormat;
- import com.poyee.i18n.I18nSourcesEnum;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
- /**
- * 国际化
- */
- @Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
- @Retention(RetentionPolicy.RUNTIME)
- public @interface I18n {
- /**
- * @return
- */
- boolean value() default true;
- /**
- * @return
- */
- String sheetName() default "";
- /**
- * @return
- */
- I18nFormat[] format() default {};
- /**
- * 国际化源
- * @return
- */
- I18nSourcesEnum dataSource() default I18nSourcesEnum.NONE;
- }
|