* TP-47105 | Adding helpers for google drive service * TP-47105! | Adding document service * TP-47105 | Adding unit tests for docu ent service client * TP-47105 | Adding document service client * TP-47105 | Rebasing with master * TP-47105 | Addressing PR comments * TP-47105 | Adding commonly used constants with document service * TP-47105 | Adding commonly used constants with document service * TP-47105 | Fixing document service endpoints in test * TP-47105 | Addressing PR comments * TP-47105 | Addressing PR comments * TP-47105 | Addressing PR comments
36 lines
1003 B
Go
36 lines
1003 B
Go
package model
|
|
|
|
type FileDownloadPreSignedURLRequest struct {
|
|
FlowId string `json:"flowId"`
|
|
IdentifierKey string `json:"identifierKey"`
|
|
}
|
|
|
|
type FileUploadURLRequest struct {
|
|
CustomerId string `json:"customerId"`
|
|
FileType string `json:"fileType"`
|
|
FlowId string `json:"flowId"`
|
|
}
|
|
|
|
type FileUploadURLGeneratorResponse struct {
|
|
FormData FormData `json:"formData"`
|
|
Url string `json:"url"`
|
|
}
|
|
|
|
type FormData struct {
|
|
Policy string `json:"Policy"`
|
|
XAmzAlgorithm string `json:"X-Amz-Algorithm"`
|
|
XAmzCredential string `json:"X-Amz-Credential"`
|
|
XAmzDate string `json:"X-Amz-Date"`
|
|
XAmzSecurityToken string `json:"X-Amz-Security-Token"`
|
|
XAmzSignature string `json:"X-Amz-Signature"`
|
|
Bucket string `json:"bucket"`
|
|
Key string `json:"key"`
|
|
}
|
|
type FileDownloadURLResponse struct {
|
|
Data struct {
|
|
Url string `json:"url"`
|
|
} `json:"data"`
|
|
Errors []interface{} `json:"errors"`
|
|
StatusCode int `json:"statusCode"`
|
|
}
|