̈́ 736 B

1234567891011121314151617181920212223242526272829
  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. }
  16. type removeCollaboratorDto struct {
  17. AccountId int `json:"accountId" binding:"required"`
  18. }
  19. type usingAccountDto struct {
  20. AccountId int `json:"accountId"`
  21. Email string `json:"email"`
  22. Role string `json:"role"`
  23. IsUsing bool
  24. }