open:syncloglist

syncLogList

Future<List<Log>> syncLogList(List<Log> logList) async {
  const type = 'logSyncLogList';
 
  var dataList = logList
      .map((e) => LogInput()
        ..id = e.id
        ..noteId = e.noteId
        ..year = e.year
        ..month = e.month
        ..day = e.day
        ..hour = e.hour
        ..minute = e.minute
        ..content = e.content
        ..tagList = e.tagList
        ..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/syncloglist.txt
  • 마지막으로 수정됨: 2023/07/21 07:53
  • 저자 MORO