| | |
| | | * @param userId - |
| | | * @param cloudCallBeak - |
| | | */ |
| | | public void getStaffInfo(String userId, CloudCallBeak<PageNumberObject<StaffBean>> cloudCallBeak) { |
| | | public void getStaffInfo(String userId, CloudCallBeak<StaffBean> cloudCallBeak) { |
| | | String requestUrl = HttpApi.B_POST_GET_MANAGE_INFO; |
| | | JsonObject json = new JsonObject(); |
| | | json.addProperty("userId", userId); |
| | |
| | | public void onSuccess(String jsonStr) { |
| | | if (TextUtils.isEmpty(jsonStr)) { |
| | | if (cloudCallBeak != null) { |
| | | cloudCallBeak.onSuccess(new PageNumberObject<>()); |
| | | cloudCallBeak.onSuccess(new StaffBean()); |
| | | } |
| | | } |
| | | Gson gson = new Gson(); |
| | | Type type = new TypeToken<PageNumberObject<StaffBean>>() { |
| | | }.getType(); |
| | | PageNumberObject<StaffBean> pageNumberObject = gson.fromJson(jsonStr, type); |
| | | |
| | | StaffBean staffBean = gson.fromJson(jsonStr, StaffBean.class); |
| | | if (cloudCallBeak != null) { |
| | | cloudCallBeak.onSuccess(pageNumberObject); |
| | | cloudCallBeak.onSuccess(staffBean); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加成员(C端) |
| | | * |