profile_model.go 543 B

12345678910111213141516171819202122232425
  1. package common
  2. import "github.com/google/uuid"
  3. type Profile struct {
  4. ID uuid.UUID `json:"id"`
  5. Name string `json:"name"`
  6. WorkspaceID uuid.UUID `json:"workspace_id"`
  7. }
  8. type Social struct {
  9. ID uuid.UUID `json:"id"`
  10. ProfileID uuid.UUID `json:"profile_id"`
  11. Platform string `json:"platform"`
  12. Handle string `json:"handle"`
  13. }
  14. type CreateProfileRequest struct {
  15. Name string `json:"name"`
  16. WorkspaceID string `json:"workspace_id"`
  17. }
  18. type UpdateProfileRequest struct {
  19. Name string `json:"name"`
  20. }