Like I explain at the header. I will give you the happy path step by step following:
XML's are so different but all of them contains what data we needs. And we take the data what we need.
- Upload
1 XML
file withxmlType
(let's we sayAType
) via API. - Convert
multipart.File
to thexlsx.File
. - Chose correct path with the switch case and
xmlType
. - Call validation function ValidateATypeFile(). (Check the headers that we need)
- Call xml reading function ReadATypeFile(). (Collect the data that we need)
- Call existing data from database.
- Compare with xml data and existing data.
- Find changes and return a JSON list which includes existing version and new version.
Which patterns fit this feature? Beside the patterns do you suggest any other approach this kind of feature.
Aucun commentaire:
Enregistrer un commentaire