Added method to delete a todo item from a list
This commit is contained in:
parent
91f67dc364
commit
853fb2a2b7
4 changed files with 39 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue