task

package
v0.0.0-...-e0b84e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Id        int       `json:"id"`
	Title     string    `json:"title"`
	Content   string    `json:"content"`
	Category  string    `json:"category"`
	Statu     string    `json:"statu"`
	CreatedAt time.Time `json:"created_at"`
}

type TaskRepository

type TaskRepository interface {
	CreateTask(ctx context.Context, task *Task) error
	ListTask(ctx context.Context) (*[]Task, error)
	UpdateTask(ctx context.Context, id int, task *Task) error
	DeleteTask(ctx context.Context, id int) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL