111
This commit is contained in:
parent
8f8163ce5e
commit
15f832efee
@ -22,7 +22,8 @@ func (r *LabelService) AddLabel(req requests.AddLabel) (bool, error) {
|
|||||||
return false, errors.New("请填写父级标签")
|
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 {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user