open:syncnotelist

syncNoteList

Future<List<Note>> syncNoteList(List<Note> noteList) async {
  const type = 'logSyncNoteList';
 
  var dataList = noteList
      .map((e) => NoteInput()
        ..id = e.id
        ..name = e.name
        ..userId = e.userId
        ..noteType = e.noteType
        ..isActive = e.isActive
        ..createdAt = e.createdAt
        ..updatedAt = e.updatedAt)
      .toList();
 
  List<Input> inputs = [TypeListInput(Fields.input, dataList)];
  return await api.mutateList(type, fields, inputs: inputs);
}

  • open/syncnotelist.txt
  • 마지막으로 수정됨: 2023/07/21 07:55
  • 저자 MORO