This commit is contained in:
wucongxing8150 2024-10-23 15:19:42 +08:00
parent 8f8163ce5e
commit 15f832efee

View File

@ -22,7 +22,8 @@ func (r *LabelService) AddLabel(req requests.AddLabel) (bool, error) {
return false, errors.New("请填写父级标签")
}
parentId, err := strconv.ParseInt(req.ParentId, 10, 64)
var err error
parentId, err = strconv.ParseInt(req.ParentId, 10, 64)
if err != nil {
return false, err
}