Documentation ¶
Index ¶
- func NewDB() *gorm.DB
- type Task
- type TaskRepository
- func (repository *TaskRepository) Create(task model.Task) (model.Task, error)
- func (repository *TaskRepository) Delete(id string) error
- func (repository *TaskRepository) Fetch(params model.TaskFetchParam) ([]model.Task, error)
- func (repository *TaskRepository) FetchByID(id string) (model.Task, error)
- func (repository *TaskRepository) Update(task model.Task) (model.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaskRepository ¶
func NewTaskRepository ¶
func NewTaskRepository(db *gorm.DB) *TaskRepository
func (*TaskRepository) Delete ¶
func (repository *TaskRepository) Delete(id string) error
func (*TaskRepository) Fetch ¶
func (repository *TaskRepository) Fetch(params model.TaskFetchParam) ([]model.Task, error)
Click to show internal directories.
Click to hide internal directories.