package me.chanjar.weixin.mp.api;

import java.util.Date;
import java.util.List;

import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.bean.result.WxMpUserCumulate;
import me.chanjar.weixin.mp.bean.result.WxMpUserSummary;

/**
 * 统计分析相关接口 
 *  Created by Binary Wang on 2016/8/23.
 * @author binarywang (https://github.com/binarywang)
 */
public interface WxMpDataCubeService {
  /**
   * <pre>
   * 获取用户增减数据
   * http://mp.weixin.qq.com/wiki/3/ecfed6e1a0a03b5f35e5efac98e864b7.html
   * </pre>
   *
   * @param beginDate 最大时间跨度7天
   * @param endDate   endDate不能早于begingDate
   */
  List<WxMpUserSummary> getUserSummary(Date beginDate, Date endDate) throws WxErrorException;

  /**
   * <pre>
   * 获取累计用户数据
   * http://mp.weixin.qq.com/wiki/3/ecfed6e1a0a03b5f35e5efac98e864b7.html
   * </pre>
   *
   * @param beginDate 最大时间跨度7天
   * @param endDate   endDate不能早于begingDate
   */
  List<WxMpUserCumulate> getUserCumulate(Date beginDate, Date endDate) throws WxErrorException;
}

@@ -32,55 +32,8 @@
 i;%0A%0A
-import java.util.Date;%0Aimport java.util.List;%0A%0A
 impo
@@ -204,16 +204,63 @@
 mmary;%0A%0A
+import java.util.Date;%0Aimport java.util.List;%0A%0A
 /**%0A * %E7%BB%9F
@@ -434,32 +434,48 @@
 * %E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E5%A2%9E%E5%87%8F%E6%95%B0%E6%8D%AE%0A   * 
+%E8%AF%A6%E6%83%85%E8%AF%B7%E8%A7%81%E6%96%87%E6%A1%A3%EF%BC%9A%3Ca href=%22
 http://mp.weixin
@@ -490,48 +490,165 @@
 wiki
-/3/ecfed6e1a0a03b5f35e5efac98e864b7.html
+?t=resource/res_main&id=mp1421141082&token=&lang=zh_CN%22%3E%E7%94%A8%E6%88%B7%E5%88%86%E6%9E%90%E6%95%B0%E6%8D%AE%E6%8E%A5%E5%8F%A3%3C/a%3E%0A   * %E6%8E%A5%E5%8F%A3url%E6%A0%BC%E5%BC%8F%EF%BC%9Ahttps://api.weixin.qq.com/datacube/getusersummary?access_token=ACCESS_TOKEN
 %0A   
@@ -679,32 +679,28 @@
 m beginDate 
-%E6%9C%80%E5%A4%A7%E6%97%B6%E9%97%B4%E8%B7%A8%E5%BA%A67%E5%A4%A9
+%E5%BC%80%E5%A7%8B%E6%97%B6%E9%97%B4
 %0A   * @param
@@ -702,32 +702,41 @@
 param endDate   
+%E6%9C%80%E5%A4%A7%E6%97%B6%E9%97%B4%E8%B7%A8%E5%BA%A67%E5%A4%A9%EF%BC%8C
 endDate%E4%B8%8D%E8%83%BD%E6%97%A9%E4%BA%8Ebegin
@@ -878,16 +878,32 @@
 %E6%95%B0%E6%8D%AE%0A   * 
+%E8%AF%A6%E6%83%85%E8%AF%B7%E8%A7%81%E6%96%87%E6%A1%A3%EF%BC%9A%3Ca href=%22
 http://m
@@ -926,48 +926,166 @@
 wiki
-/3/ecfed6e1a0a03b5f35e5efac98e864b7.html
+?t=resource/res_main&id=mp1421141082&token=&lang=zh_CN%22%3E%E7%94%A8%E6%88%B7%E5%88%86%E6%9E%90%E6%95%B0%E6%8D%AE%E6%8E%A5%E5%8F%A3%3C/a%3E%0A   * %E6%8E%A5%E5%8F%A3url%E6%A0%BC%E5%BC%8F%EF%BC%9Ahttps://api.weixin.qq.com/datacube/getusercumulate?access_token=ACCESS_TOKEN
 %0A   
@@ -1120,24 +1120,20 @@
 ginDate 
-%E6%9C%80%E5%A4%A7%E6%97%B6%E9%97%B4%E8%B7%A8%E5%BA%A67%E5%A4%A9
+%E5%BC%80%E5%A7%8B%E6%97%B6%E9%97%B4
 %0A   * @p
@@ -1147,16 +1147,25 @@
 dDate   
+%E6%9C%80%E5%A4%A7%E6%97%B6%E9%97%B4%E8%B7%A8%E5%BA%A67%E5%A4%A9%EF%BC%8C
 endDate%E4%B8%8D

update javadoc