예제 #1
0
  @Ignore
  public void test001() {
    ShopDTO shopDTO = new ShopDTO();
    shopDTO.setSellerId(91L);
    shopDTO.setSellerName("zx1");
    shopDTO.setShopBannerImageUrl("http://a.t");
    shopDTO.setShopIconUrl("http://b.t");
    shopDTO.setShopName("测试店铺1");
    shopDTO.setShopDesc("测试店铺1");
    shopDTO.setCustomerServicePhone("88888888");
    shopDTO.setShopAddress("浙江杭州");
    shopDTO.setShopStatus(ShopStatusEnum.AUDIT_SUCCESS.getStatus());
    Request request = new BaseRequest();
    request.setParam("shopDTO", shopDTO);
    request.setParam("appKey", "0efa3aa4c1d059043ec35cec5b6625d1");
    request.setCommand(ActionEnum.ADD_SHOP.getActionName());
    Response response = shopService.execute(request);

    System.out.println("**************************************");
    System.out.println("Model:" + response.getModule());
    System.out.println("message:" + response.getMessage());
    System.out.println("ResponseCode:" + response.getCode());
    System.out.println("TotalCount:" + response.getTotalCount());
    System.out.println("**************************************");
  }
예제 #2
0
  @Test
  public void test007() {
    Request request = new BaseRequest();
    request.setParam("sellerId", 91L);
    request.setParam("appKey", "0efa3aa4c1d059043ec35cec5b6625d1");
    request.setCommand(ActionEnum.THAW_SHOP.getActionName());
    Response response = shopService.execute(request);

    System.out.println("**************************************");
    System.out.println("Model:" + response.getModule());
    System.out.println("message:" + response.getMessage());
    System.out.println("ResponseCode:" + response.getCode());
    System.out.println("TotalCount:" + response.getTotalCount());
    System.out.println("**************************************");
  }
예제 #3
0
  @Ignore
  public void test003() {
    ShopDTO shopDTO = new ShopDTO();
    shopDTO.setSellerId(91L);
    Request request = new BaseRequest();
    request.setParam("shopDTO", shopDTO);
    request.setParam("appKey", "0efa3aa4c1d059043ec35cec5b6625d1");
    request.setCommand(ActionEnum.GET_SHOP.getActionName());
    Response response = shopService.execute(request);

    System.out.println("**************************************");
    System.out.println("Model:" + response.getModule());
    System.out.println("message:" + response.getMessage());
    System.out.println("ResponseCode:" + response.getCode());
    System.out.println("TotalCount:" + response.getTotalCount());
    System.out.println("**************************************");
  }
예제 #4
0
  @Ignore
  public void test008() {
    Request request = new BaseRequest();
    ShopItemGroupDTO shopItemGroupDTO = new ShopItemGroupDTO();
    shopItemGroupDTO.setSellerId(91L);
    shopItemGroupDTO.setShopId(12L);
    shopItemGroupDTO.setDeleteMark(0);
    shopItemGroupDTO.setGroupName("test");
    request.setParam("shopItemGroupDTO", shopItemGroupDTO);
    request.setParam("appKey", "0efa3aa4c1d059043ec35cec5b6625d1");
    request.setCommand(ActionEnum.ADD_SHOP_ITEM_GROUP.getActionName());
    Response response = shopService.execute(request);

    System.out.println("**************************************");
    System.out.println("Model:" + response.getModule());
    System.out.println("message:" + response.getMessage());
    System.out.println("ResponseCode:" + response.getCode());
    System.out.println("TotalCount:" + response.getTotalCount());
    System.out.println("**************************************");
  }