api_dtos.go 493 B

123456789101112131415161718
  1. package api
  2. type accountInfoDto struct {
  3. Login string `json:"login"`
  4. Email string `json:"email"`
  5. AccountName string `json:"accountName"`
  6. Collaborators []*collaboratorInfoDto `json:"collaborators"`
  7. }
  8. type collaboratorInfoDto struct {
  9. AccountId int `json:"accountId"`
  10. Email string `json:"email"`
  11. Role string `json:"role"`
  12. }
  13. type addCollaboratorDto struct {
  14. Email string `json:"email" binding:"required"`
  15. }