| | |
| | | /** |
| | | * 删除工作人员 |
| | | * @param at 访问at |
| | | * @param userId 用户id |
| | | * @param userId 企业用户id |
| | | * @return 返回 |
| | | */ |
| | | public static int deleteUser(String at, String userId) { |
| | |
| | | obj.put("userid", userId); |
| | | |
| | | obj = HttpURLUtil(MessageFormat.format(URL_INFO_USER, at,userId), obj.toString()); |
| | | System.out.println("userId:"+userId); |
| | | System.out.println("obj:"+obj.toString()); |
| | | |
| | | if(obj != null) { |
| | | return obj.optInt("errcode", -1); |
| | | } |
| | | return -1; |
| | | } |
| | | |
| | | /** |
| | | * 获取企业用户信息 |
| | | * @param at 访问at |
| | | * @param userId 用户id |
| | | * @return 返回 |
| | | */ |
| | | public static JSONObject userData(String at, String userId) { |
| | | JSONObject obj = new JSONObject(); |
| | | obj.put("userid", userId); |
| | | |
| | | return obj = HttpURLUtil(MessageFormat.format(URL_INFO_USER, at,userId), obj.toString()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加部门 |