api_dtos.go 738 B

1234567891011121314151617181920212223242526272829
  1. package api
  2. type accountInfoDto struct {
  3. Email string `json:"email"`
  4. Name string `json:"name"`
  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 otherAccountDto struct {
  20. Id int `json:"id"`
  21. Name string `json:"name"`
  22. Role string `json:"role"`
  23. IsUsing bool `json:"isUsing"`
  24. }