-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_miwu.flow
More file actions
17 lines (15 loc) · 1.28 KB
/
Copy pathcreate_miwu.flow
File metadata and controls
17 lines (15 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {
"net/http";
}
flow CreateMIWU {
in (request http.Request)-> [convertCreateMIWURequestToData] (miwu data.MIWU)-> [validateMIWU] -> [convertMIWUToDb] (dbMIWU db.MIWU)-> [createMIWUInDb] -> [convertDbMIWUToResponse] (res http.Response)-> out;
[createMIWUInDb] error (err Error)-> [convertErrorToResponse] (res http.Response)-> out;
[validateMIWU] error (err Error)----------------------------------------------------------> [convertErrorToResponse];
[convertCreateMIWURequestToData] error (err Error)--------------------------------------------------------------------------------------------> [convertErrorToResponse];
}
flow validateMIWU {
in (miwu data.MIWU)-> [checkBasicMIWU] -> [checkMIWUFeaturesExist] -> [checkMIWUSetExists] -> out;
[checkBasicMIWU] error (err Error)-> error;
[checkMIWUFeaturesExist] error (err Error)-> error;
[checkMIWUSetExists] error (err Error)-> error;
}