Browse Source

修改接口定义及所属模块

master
Hades 6 years ago
parent
commit
408e0d1df6
  1. 4
      plugin.xml
  2. 19
      src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java

4
plugin.xml

@ -10,9 +10,9 @@
<change-notes><![CDATA[
]]></change-notes>
<extra-designer>
<extra-report>
<LocationAttrProvider class="com.fr.plugin.topparameterstyle.LocationAttrDefine"/>
</extra-designer>
</extra-report>
<function-recorder class="com.fr.plugin.topparameterstyle.LocationAttrDefine"/>

19
src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java

@ -1,13 +1,18 @@
package com.fr.plugin.topparameterstyle;
import com.fr.design.fun.impl.AbstractLocationAttrProvider;
import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original;
import com.fr.json.JSONException;
import com.fr.json.JSONObject;
import com.fr.log.FineLoggerFactory;
import com.fr.record.analyzer.EnableMetrics;
import com.fr.report.fun.impl.AbstractLocationAttrProvider;
@EnableMetrics
public class LocationAttrDefine extends AbstractLocationAttrProvider {
private String queryType = "topbar";
@Override
@Focus(id = "com.fr.solution.plugin.topparameterstyle", text = "FR_Plugin_TOP_Parameter_Style", source = Original.PLUGIN)
public String descriptor() {
@ -15,9 +20,13 @@ public class LocationAttrDefine extends AbstractLocationAttrProvider {
}
@Override
public String getStyleType() {
return "topbar";
public JSONObject createJSON() {
JSONObject jo = JSONObject.create();
try {
jo.put("queryType", this.queryType);
} catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
return jo;
}
}

Loading…
Cancel
Save