Commit f9df18e9 authored by hujiebin's avatar hujiebin

Update headwear.go

parent 42bc407f
......@@ -80,3 +80,15 @@ func AddUserHeadwearLog(model *domain.Model, userId mysql.ID, headwearId mysql.I
}
return userHeadwearLog.ID, nil
}
//删除头饰
func DelHeadwear(model *domain.Model, userId, headwearId mysql.ID) error {
userHeadwear, err := user_m.GetUserHeadwearOrInit(model, userId, headwearId)
if err != nil {
return err
}
if userHeadwear, _, err = userHeadwear.MgrDel(0); err != nil {
return err
}
return nil
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment