livePostCreateLiveImpl static method
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,
})
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;
}