3 changed files with 37 additions and 45 deletions
@ -1,32 +0,0 @@ |
|||||||
package com.fr.plugin.topparameterstyle; |
|
||||||
|
|
||||||
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() { |
|
||||||
return "顶部"; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public JSONObject createJSON() { |
|
||||||
JSONObject jo = JSONObject.create(); |
|
||||||
try { |
|
||||||
jo.put("queryType", this.queryType); |
|
||||||
} catch (JSONException e) { |
|
||||||
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
||||||
} |
|
||||||
return jo; |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,24 @@ |
|||||||
|
package com.fr.plugin.topparameterstyle; |
||||||
|
|
||||||
|
import com.fr.intelli.record.Focus; |
||||||
|
import com.fr.intelli.record.Original; |
||||||
|
import com.fr.record.analyzer.EnableMetrics; |
||||||
|
import com.fr.report.fun.impl.AbstractMobileParamStyleProvider; |
||||||
|
|
||||||
|
@EnableMetrics |
||||||
|
public class MobileParamStyleDefine extends AbstractMobileParamStyleProvider { |
||||||
|
|
||||||
|
private String queryType = "topbar"; |
||||||
|
|
||||||
|
@Override |
||||||
|
@Focus(id = "com.fr.solution.plugin.topparameterstyle", text = "FR_Plugin_TOP_Parameter_Style", source = Original.PLUGIN) |
||||||
|
public String descriptor() { |
||||||
|
return "顶部"; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public String getStyleType() { |
||||||
|
return "topbar"; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue