Documentation ¶
Index ¶
- Constants
- func AddCategory(category model.Category) error
- func AddMemo(memo model.Memo) error
- func CreateCategoryTable()
- func CreateMemoTable()
- func DeleteAllCategory() error
- func DeleteAllMemo() error
- func DeleteCategoryById(id int) error
- func DeleteMemoById(id int) error
- func GetCategories() ([]model.Category, error)
- func GetCategoryByName(name string) (model.Category, error)
- func GetMemo(id int) (model.Memo, error)
- func GetMemos() ([]model.Memo, error)
- func GetMemosByCategoryId(id int) ([]model.Memo, error)
- func InsertDefaultCategory()
Constants ¶
View Source
const (
CATEGORY = "category"
)
View Source
const (
MEMO = "memo"
)
Variables ¶
This section is empty.
Functions ¶
func CreateCategoryTable ¶
func CreateCategoryTable()
func GetCategories ¶
GetCategories return all memodata.
func GetCategoryByName ¶
GetCategories return all memodata.
func GetMemosByCategoryId ¶
GetMemosByCategoryId returns page grepped title by input word.
func InsertDefaultCategory ¶
func InsertDefaultCategory()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.