mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
init
This commit is contained in:
@@ -8,5 +8,9 @@ import com.gitee.sop.servercommon.bean.ServiceApiInfo;
|
||||
public interface ApiMetaManager {
|
||||
String API_STORE_KEY = "com.gitee.sop.api";
|
||||
|
||||
/**
|
||||
* 上传API
|
||||
* @param serviceApiInfo
|
||||
*/
|
||||
void uploadApi(ServiceApiInfo serviceApiInfo);
|
||||
}
|
||||
|
@@ -6,5 +6,9 @@ import com.gitee.sop.servercommon.mapping.ApiMappingHandlerMapping;
|
||||
* @author tanghc
|
||||
*/
|
||||
public interface RequestMappingEvent {
|
||||
/**
|
||||
* 注册成功后回调
|
||||
* @param apiMappingHandlerMapping
|
||||
*/
|
||||
void onRegisterSuccess(ApiMappingHandlerMapping apiMappingHandlerMapping);
|
||||
}
|
||||
|
@@ -10,8 +10,8 @@ public enum ServiceErrorEnum {
|
||||
;
|
||||
private ServiceErrorMeta errorMeta;
|
||||
|
||||
ServiceErrorEnum(String sub_code) {
|
||||
this.errorMeta = new ServiceErrorMeta("isp.error_", sub_code);
|
||||
ServiceErrorEnum(String subCode) {
|
||||
this.errorMeta = new ServiceErrorMeta("isp.error_", subCode);
|
||||
}
|
||||
|
||||
public ServiceErrorMeta getErrorMeta() {
|
||||
|
@@ -8,11 +8,11 @@ import javax.servlet.http.HttpServletResponse;
|
||||
*/
|
||||
public interface ServiceResultBuilder {
|
||||
|
||||
|
||||
/**
|
||||
* 构建错误返回结果
|
||||
*
|
||||
* @param throwable 异常
|
||||
* @param request
|
||||
* @param response
|
||||
* @param throwable
|
||||
* @return 返回最终结果
|
||||
*/
|
||||
Object buildError(HttpServletRequest request, HttpServletResponse response, Throwable throwable);
|
||||
|
Reference in New Issue
Block a user