feat:注释不用的代码
This commit is contained in:
@ -103,7 +103,7 @@ func (c *Patent) Form(params *PatentParams) error {
|
||||
return err
|
||||
} else if !isExist {
|
||||
return errors.New("操作错误,专利信息不存在")
|
||||
} else if mTechnologyPatent.UID != c.ManageUID {
|
||||
} else if mTechnologyPatent.MUid != c.ManageUID {
|
||||
return errors.New("无权限操作")
|
||||
}
|
||||
}
|
||||
@ -126,7 +126,7 @@ func (c *Patent) Form(params *PatentParams) error {
|
||||
}
|
||||
mTechnologyPatent.TenantID = c.TenantID
|
||||
mTechnologyPatent.Local.Local = c.local
|
||||
mTechnologyPatent.UID = c.ManageUID
|
||||
mTechnologyPatent.MUid = c.ManageUID
|
||||
return model2.Create(mTechnologyPatent.TechnologyPatent)
|
||||
}
|
||||
|
||||
@ -141,7 +141,7 @@ func (c *Patent) Delete(id uint64) error {
|
||||
return err
|
||||
} else if !isExist {
|
||||
return errors.New("操作错误,专利信息不存在")
|
||||
} else if mTechnologyPatent.UID != c.ManageUID {
|
||||
} else if mTechnologyPatent.MUid != c.ManageUID {
|
||||
return errors.New("无权限操作")
|
||||
}
|
||||
return model2.Delete(mTechnologyPatent.TechnologyPatent)
|
||||
|
Reference in New Issue
Block a user