feedBack static method

Future<DataResult> feedBack(
  1. int type,
  2. String? suggest,
  3. List<String> picList,
  4. String? email,
)

反馈

Implementation

static Future<DataResult> feedBack(
    int type, String? suggest, List<String> picList, String? email) async {
  Map other = {
    'type': type,
    'suggest': suggest ?? '',
    'picList': picList,
    'email': email ?? ''
  };
  var res = await BaseDao.fromBaseJson(other, Address.feedBack());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}