chore: 导入后端 s-file(alita-bjy-uygur, f分支)至 backend/
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
package com.senmesh.common.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import com.senmesh.common.constant.ProjectProfileEnum;
|
||||
|
||||
/**
|
||||
* 校验并mock
|
||||
*
|
||||
* @author sr on 2020-05-20
|
||||
*/
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface CheckAndMock {
|
||||
|
||||
/**
|
||||
* 属性前缀
|
||||
*
|
||||
* @return
|
||||
* @author sr on 2020-05-20
|
||||
*/
|
||||
String propertyPrefix() default "";
|
||||
|
||||
/**
|
||||
* 属性配置类
|
||||
*
|
||||
* @return
|
||||
* @author sr on 2020-05-20
|
||||
*/
|
||||
Class<ICheckAndMockPropertity> checkAndMockPropertity() default ICheckAndMockPropertity.class;
|
||||
|
||||
/**
|
||||
* mock实现类(需注入spring上下文,提供与原方法方法名/参数/返回对象一致的方法)
|
||||
*
|
||||
* @return
|
||||
* @author sr on 2020-05-20
|
||||
*/
|
||||
Class<?> mockClass();
|
||||
|
||||
// String mockBeanId();
|
||||
|
||||
/**
|
||||
* 指定环境直接mock
|
||||
*
|
||||
* @return
|
||||
* @author sr on 2020-05-21
|
||||
*/
|
||||
ProjectProfileEnum[] mockIfInProfile() default {};
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user