Documentation
¶
Index ¶
- Variables
- type Contact
- type CreateCommand
- type Repository
- type Service
- func (s Service) Create(ctx context.Context, args any) error
- func (s Service) Delete(ctx context.Context, id string) error
- func (s Service) GetByID(ctx context.Context, id string) (View, error)
- func (s Service) List(ctx context.Context, cr storage.Criteria) ([]View, storage.PageToken, error)
- func (s Service) ListUserContacts(ctx context.Context, cr storage.Criteria, userID string) ([]View, storage.PageToken, error)
- func (s Service) Update(ctx context.Context, args any) error
- type UpdateCommand
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = exception.ResourceNotFound{Resource: "contact"}
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct { ID string User user.User // FK -> users, req (created by) LinkedTo *user.User // FK -> users (nullable) DisplayName string // req ImageURL string customtype.Auditable }
Contact organization or individual a User interacts with. Might be a User of the system.
type CreateCommand ¶
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(r Repository) Service
func (Service) ListUserContacts ¶
type UpdateCommand ¶
Click to show internal directories.
Click to hide internal directories.