feat:完善项目

This commit is contained in:
henry
2022-01-17 13:23:49 +08:00
parent 8fd5283b0e
commit 4850f6348f
6 changed files with 200 additions and 2 deletions

View File

@ -241,6 +241,8 @@ func (c *Patent) Delete(id uint64) error {
return err
} else if !isExist {
return errors.New("操作错误,专利信息不存在或已被删除")
} else if c.TenantID > 0 && mSysPatent.TenantID != c.TenantID {
return errors.New("操作错误,无权限操作")
}
return model2.Delete(mSysPatent.SysPatent)
}