1
0

Added method to delete a todo item from a list

This commit is contained in:
kolaente
2018-06-12 18:07:47 +02:00
parent 91f67dc364
commit 853fb2a2b7
4 changed files with 39 additions and 1 deletions

View File

@ -64,3 +64,10 @@ func GetItemsByListID(listID int64) (items []*ListItem, err error) {
return
}
// DeleteListItemByID deletes a list item by its ID
func DeleteListItemByIDtemByID(itemID int64) (err error) {
_, err = x.ID(itemID).Delete(ListItem{})
return
}