Example #1
0
        /// <summary>
        /// 指删除用户,最多一次删除20条
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public static bool batchdelete(string[] user)
        {
            var result = Post.PostJson <JsonResult>(string.Format(URL_BATCHDELETE, Auth.GetToken()), new { useridlist = user.Take(20) });

            return(result.errcode == ReturnCode._请求成功);
        }
Example #2
0
        public static bool update(UserInfo user)
        {
            var result = Post.PostJson <JsonResult>(string.Format(URL_UPDATE, Auth.GetToken()), user);

            return(result.errcode == ReturnCode._请求成功);
        }
Example #3
0
 public static UserInfo get(string userid)
 {
     return(Get.GetJson <UserInfo>(string.Format(URL_GETUSERINFO_USERID, Auth.GetToken(), userid)));
 }
Example #4
0
        public static bool delete(string userid)
        {
            var result = Get.GetJson <JsonResult>(string.Format(URL_DELETE, Auth.GetToken(), userid));

            return(result.errcode == ReturnCode._请求成功);
        }
Example #5
0
 public static UserInfo getuserinfo(string code)
 {
     return(Get.GetJson <UserInfo>(string.Format(URL_GETUSERINFO_CODE, Auth.GetToken(), code)));
 }