update method

Future<int> update(
  1. String? uid,
  2. String? status
)

Implementation

Future<int> update(String? uid, String? status) async {
  // FIXME: 暂不支持web
  if (BytedeskUtils.isWeb) {
    return 0;
  }
  return await database!.rawUpdate(
      'UPDATE $tableMessage SET $columnStatus = ? WHERE $columnUid = ?',
      [status, uid]);
}