新增MenuID字段

This commit is contained in:
jinyu 2015-12-29 18:11:28 +08:00
parent 1850b4fcdd
commit bd745299e0
2 changed files with 14 additions and 3 deletions

View File

@ -47,6 +47,8 @@
</modules> </modules>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties> </properties>
<build> <build>
<plugins> <plugins>

View File

@ -31,16 +31,25 @@ public class MenuEventMessage extends EventMessage {
/** /**
* 事件KEY值与自定义菜单接口中KEY值对应 * 事件KEY值与自定义菜单接口中KEY值对应
*/ */
@XmlElement(name="EventKey") @XmlElement(name = "EventKey")
private String eventKey; private String eventKey;
/**
* 指菜单ID如果是个性化菜单则可以通过这个字段知道是哪个规则的菜单被点击了
*/
@XmlElement(name = "MenuID")
private String menuId;
public String getEventKey() { public String getEventKey() {
return eventKey; return eventKey;
} }
public String getMenuId() {
return menuId;
}
@Override @Override
public String toString() { public String toString() {
return "MenuEventMessage [eventKey=" + eventKey + ", " return "MenuEventMessage [eventKey=" + eventKey + ", menuId=" + menuId
+ super.toString() + "]"; + ", " + super.toString() + "]";
} }
} }