userReport static method
@Author: yuer @description: 加入黑名单 "reportedUserId":"123456", // 对方用户id "reportType": "1", //举报类型(Byte)1骗子,2广告骚扰,3侮辱谩骂,4无效的联系方式 "reportContent":"", // 内容 "pictureEvidence":"", // 图片 @return {*}
Implementation
static userReport(Map<String, dynamic> obj, callBack, errorCall) {
DioManager().request<dynamic>(RequestType.POST, RequestApi.apiUserReport, params: obj, onSuccess: (data) {
callBack(data);
// onSuccess
}, onError: (error) {
// when called , already show toast, then do another things
errorCall();
}, onStart: () {
// onStart
}, onFinish: () {
// onFinish
});
}