mirror of
https://github.com/wahyd4/Martian.git
synced 2026-08-09 05:16:21 +10:00
update version
This commit is contained in:
@@ -69,6 +69,7 @@ public class LoadMarsApi {
|
||||
marsMappingModel.setObject(obj);
|
||||
marsMappingModel.setMethod(method.getName());
|
||||
marsMappingModel.setCls(cls);
|
||||
marsMappingModel.setExeMethod(method);
|
||||
marsMappingModel.setReqMethod(getReqMethod(method));
|
||||
|
||||
/* 保存映射对象 */
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.mars.mvc.model;
|
||||
|
||||
import com.mars.core.annotation.enums.ReqMethod;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* 控制器映射实体
|
||||
*
|
||||
@@ -21,10 +23,15 @@ public class MarsMappingModel {
|
||||
private ReqMethod reqMethod;
|
||||
|
||||
/**
|
||||
* 映射的方法
|
||||
* 映射的方法名称
|
||||
*/
|
||||
private String method;
|
||||
|
||||
/**
|
||||
* 映射的方法
|
||||
*/
|
||||
private Method exeMethod;
|
||||
|
||||
/**
|
||||
* 控制层class对象
|
||||
*/
|
||||
@@ -54,6 +61,14 @@ public class MarsMappingModel {
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public Method getExeMethod() {
|
||||
return exeMethod;
|
||||
}
|
||||
|
||||
public void setExeMethod(Method exeMethod) {
|
||||
this.exeMethod = exeMethod;
|
||||
}
|
||||
|
||||
public Class<?> getCls() {
|
||||
return cls;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user