mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
feat: add collection
This commit is contained in:
@@ -34,8 +34,8 @@ func UpdateCollection(uid, id uint, title, article string, host string) error {
|
||||
}
|
||||
|
||||
// Delete a collection by ID.
|
||||
func DeleteCollection(uint, id uint) error {
|
||||
user, err := dao.GetUserByID(id)
|
||||
func DeleteCollection(uid, id uint) error {
|
||||
user, err := dao.GetUserByID(uid)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user