getNobilityQuery static method

dynamic getNobilityQuery(
  1. dynamic obj,
  2. dynamic callBack
)

@Author: yuer @description: 贵族配置信息查询 @return {*}

Implementation

static getNobilityQuery(obj, callBack) {
  DioManager().request<dynamic>(RequestType.POST, RequestApi.apiNobilityQuery, params: obj, onSuccess: (data) {
    NobleMo nobleInfo = NobleMo.fromJson(data);
    // onSuccess
    callBack(nobleInfo);
    // onSuccess
  }, onError: (error) {
    // when called , already show toast, then do another things
  }, onStart: () {
    // onStart
  }, onFinish: () {
    // onFinish
  });
}