Example #1
0
 /**
  * @param shopId
  * @param pageNo
  * @param pageSize
  */
 public void setApiParams(String shopId, int pageNo, int pageSize) {
   APIQueryParam params = new APIQueryParam(false);
   params.put("shopId", shopId);
   params.put("pageNo", pageNo);
   params.put("pageSize", pageSize);
   super.setApiParams(params);
 }
Example #2
0
 /**
  * @param keywords can be null
  * @param isQueryBrand 是否查询品牌, true 查询品牌, false 查询车型
  * @param brandId 当 isQueryBrand = false, brandId 不可为 null, 否则为 null
  */
 public void setApiParams(String keywords, boolean isQueryBrand, String brandId) {
   APIQueryParam params = new APIQueryParam();
   params.put("keywords", getEncodeStr(keywords));
   params.put("type", isQueryBrand ? "brand" : "model");
   params.put("brandId", (TextUtils.isEmpty(brandId) || isQueryBrand) ? "NULL" : brandId);
   super.setApiParams(params);
 }