All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.qidian.api.impl.WxQidianCallDataServiceImpl Maven / Gradle / Ivy

The newest version!
package me.chanjar.weixin.qidian.api.impl;

import static me.chanjar.weixin.qidian.enums.WxQidianApiUrl.CallData.GET_SWITCH_BOARD_LIST;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.qidian.api.WxQidianCallDataService;
import me.chanjar.weixin.qidian.api.WxQidianService;
import me.chanjar.weixin.qidian.bean.call.GetSwitchBoardListResponse;

@Slf4j
@RequiredArgsConstructor
public class WxQidianCallDataServiceImpl implements WxQidianCallDataService {
  private final WxQidianService wxQidianService;

  @Override
  public GetSwitchBoardListResponse getSwitchBoardList() throws WxErrorException {
    String result = this.wxQidianService.get(GET_SWITCH_BOARD_LIST, null);
    return GetSwitchBoardListResponse.fromJson(result);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy