sendMessage static method

Future<DataResult> sendMessage(
  1. String? anchorId
)

发送消息

Implementation

static Future<DataResult> sendMessage(String? anchorId) async {
  Map other = {'anchorId': anchorId};
  var res = await BaseDao.fromBaseEncrypt(other, Address.sendMessage());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}