Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthDomainService ¶
type CreateNoteParams ¶
type Note ¶
type Note struct { ID uuid.UUID `json:"id"` UserID uuid.UUID `json:"user_id"` CategoryID *uuid.UUID `json:"category_id"` Title string `json:"title"` Content string `json:"content"` Pinned bool `json:"pinned"` Priority int32 `json:"priority"` UpdatedAt time.Time `json:"update_at"` CreatedAt time.Time `json:"create_at"` }
type NoteRepository ¶
type NoteRepository interface { ListNotes(ctx context.Context, arg *ListNotesParams) ([]*Note, error) GetNote(ctx context.Context, userID uuid.UUID, id uuid.UUID) (*Note, error) CreateNote(ctx context.Context, arg *CreateNoteParams) (*Note, error) UpdateNote(ctx context.Context, arg *UpdateNoteParams) (*Note, error) DeleteNote(ctx context.Context, userID uuid.UUID, id uuid.UUID) error }
type NoteUseCase ¶
type NoteUseCase interface { ListNotes(ctx context.Context, arg *ListNotesParams) ([]*Note, error) GetNote(ctx context.Context, userID uuid.UUID, id uuid.UUID) (*Note, error) CreateNote(ctx context.Context, arg *CreateNoteParams) (*Note, error) UpdateNote(ctx context.Context, arg *UpdateNoteParams) (*Note, error) DeleteNote(ctx context.Context, userID uuid.UUID, id uuid.UUID) error }
Click to show internal directories.
Click to hide internal directories.