Documentation ¶
Index ¶
- type CreateNoteParams
- type DBTX
- type DeleteNoteParams
- type GetNoteParams
- type ListNotesParams
- type NoteNote
- type Queries
- func (q *Queries) CreateNote(ctx context.Context, arg CreateNoteParams) (NoteNote, error)
- func (q *Queries) DeleteNote(ctx context.Context, arg DeleteNoteParams) error
- func (q *Queries) GetNote(ctx context.Context, arg GetNoteParams) (NoteNote, error)
- func (q *Queries) ListNotes(ctx context.Context, arg ListNotesParams) ([]NoteNote, error)
- func (q *Queries) UpdateNote(ctx context.Context, arg UpdateNoteParams) (NoteNote, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateNoteParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNoteParams ¶
type CreateNoteParams struct { ID uuid.UUID `json:"id"` UserID uuid.UUID `json:"user_id"` CategoryID uuid.NullUUID `json:"category_id"` Title string `json:"title"` Content string `json:"content"` Pinned bool `json:"pinned"` Priority int32 `json:"priority"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` }
type DeleteNoteParams ¶
type GetNoteParams ¶
type ListNotesParams ¶
type NoteNote ¶
type NoteNote struct { ID uuid.UUID `json:"id"` UserID uuid.UUID `json:"user_id"` CategoryID uuid.NullUUID `json:"category_id"` Title string `json:"title"` Content string `json:"content"` Pinned bool `json:"pinned"` Priority int32 `json:"priority"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateNote ¶
func (*Queries) DeleteNote ¶
func (q *Queries) DeleteNote(ctx context.Context, arg DeleteNoteParams) error
func (*Queries) UpdateNote ¶
Click to show internal directories.
Click to hide internal directories.