chore: 导入后端 s-file(alita-bjy-uygur, f分支)至 backend/

This commit is contained in:
2026-11-01 20:34:00 +08:00
parent 4c7dd207d0
commit 20b2dd7009
1637 changed files with 0 additions and 0 deletions

View File

@@ -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 {};
}