livePostCreateLiveImpl static method

Future<DataResult> livePostCreateLiveImpl({
  1. required String imageUrl,
  2. required String language,
  3. required String liveNotice,
  4. required String title,
  5. required int type,
  6. required int price,
  7. required int videoPlaceType,
  8. required int videoPrice,
  9. required int voicePlaceType,
  10. required int voicePrice,
})

Implementation

static Future<DataResult> livePostCreateLiveImpl(
    {required String imageUrl,
    required String language,
    required String liveNotice,
    required String title,
    required int type,
    required int price,
    required int videoPlaceType,
    required int videoPrice,
    required int voicePlaceType,
    required int voicePrice}) async {
  Map<String, dynamic> params = {
    'imageUrl': imageUrl,
    'language': language,
    'liveNotice': liveNotice,
    'title': title,
    'type': type,
    'price': price,
    'videoPlaceType': videoPlaceType,
    'videoPrice': videoPrice,
    'voicePlaceType': voicePlaceType,
    'voicePrice': voicePrice,
  };
  var res = await BaseDao.fromBaseEncryptV3(
    params,
    Address.livePostCreate(),
  );
  if (res.result) {
    return DataResult(res.data, true);
  }
  return res;
}