block-accounting/backend/internal/interface/rest/domain/participants.go

28 lines
760 B
Go
Raw Normal View History

2024-05-24 17:44:24 +00:00
package domain
type Participant struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Position string `json:"position,omitempty"`
// if is_user == true, Credentials will be filled with data
Credentials *UserParticipantCredentials `json:"credentials,omitempty"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
DeletedAt int64 `json:"deleted_at,omitempty"`
2024-05-28 22:46:30 +00:00
PublicKey string `json:"public_key"`
2024-05-24 17:44:24 +00:00
IsUser bool `json:"is_user"`
IsAdmin bool `json:"is_admin"`
IsOwner bool `json:"is_owner"`
IsActive bool `json:"is_active"`
}
type UserParticipantCredentials struct {
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
Telegram string `json:"telegram,omitempty"`
}