@@ -18,12 +18,13 @@ const (
1818)
1919
2020type RequestCreate struct {
21- Email string `json:"email" binding:"required,email"`
22- OrcidIds []string `json:"orcidIds" binding:"required"`
23- Password string `json:"password" binding:"-"`
24- Country string `json:"country" binding:"required"`
25- Method string `json:"method" binding:"required"`
26- JWTToken string `json:"jwtToken" binding:"required"`
21+ Email string `json:"email" binding:"required,email"`
22+ OrcidIds []string `json:"orcidIds" binding:"required"`
23+ Password string `json:"password"`
24+ Country string `json:"country" binding:"required"`
25+ Method string `json:"method" binding:"required"`
26+ JWTToken string `json:"jwtToken" binding:"required"`
27+ Coordinates bool `json:"coordinates"`
2728}
2829
2930type FileMetadata struct {
@@ -44,8 +45,11 @@ type UploadedFile struct {
4445 FileID string `json:"FileID"`
4546}
4647type EmMethod struct {
47- Type string `json:"type"`
48- Subtype string `json:"subtype,omitempty"`
48+ Type string `json:"type"`
49+ Subtype string `json:"subtype,omitempty"`
50+ Coordinates bool `json:"coordinates"`
51+ SfOnly bool `json:"sf_only"`
52+ RelatedEmdb string `json:"related_emdb,omitempty"`
4953}
5054type EmMethodExtended struct {
5155 Type string `json:"type"`
@@ -71,10 +75,10 @@ type UserInfo struct {
7175}
7276
7377type FileUpload struct {
74- Name string `json:"name"`
75- Type string `json:"type"`
76- Contour float32 `json:"contour"`
77- Details string `json:"details"`
78+ Name string `json:"name"`
79+ Type OneDepType `json:"type"`
80+ Contour float32 `json:"contour"`
81+ Details string `json:"details"`
7882}
7983
8084type DepositionFile struct {
@@ -126,6 +130,7 @@ type OneDepType string
126130const (
127131 ADD_MAP OneDepType = "add-map"
128132 CO_CIF OneDepType = "co-cif"
133+ MD_CIF OneDepType = "md-cif"
129134 CO_PDB OneDepType = "co-pdb"
130135 FSC_XML OneDepType = "fsc-xml"
131136 HALF_MAP OneDepType = "half-map"
0 commit comments