package com.storlead.user.util;//package com.storlead.centre.user.util;
//
//import com.storlead.sales.modules.message.model.WechatToken;
//import com.storlead.sales.modules.message.model.vo.CorpWeChatDeptVO;
//import com.storlead.sales.modules.message.model.vo.CorpWeChatUserVO;
//import com.storlead.sales.modules.message.properties.CorpWeChatConstants;
//import com.storlead.wx.util.CorpWechatUtil;
//
//import java.util.List;
//
//public class TestMain {
//    public static void main(String[] args) {
//        WechatToken t = CorpWechatUtil.getAccessToken(CorpWeChatConstants.GET_ACCESS_TOKEN_URL, "ww5323bd8ab4394132", "FE-ofiE08oeT8DsccbigqPFWl6Nk8LRKBFffpL76Z-M");
//        //部门
//        List<CorpWeChatDeptVO> volist = CorpWechatUtil.getDeptListFormTencent(CorpWeChatConstants.GET_DEPT_LIST_URL,t.getToken(),null);
//        //用户
//        List<CorpWeChatUserVO> allVo = CorpWechatUtil.getUserListUnderDeptFormTencent(CorpWeChatConstants.GET_USER_LIST_URL,t.getToken(),Long.valueOf("1"));
////        System.out.println(allVo);
//    }
//
//}
