feat:注释不用的代码

This commit is contained in:
henry
2021-11-24 11:12:46 +08:00
parent 0862142ef0
commit 5475320171
19 changed files with 74 additions and 71 deletions

View File

@ -100,7 +100,7 @@ func (c *Topic) Form(params *TopicParams) error {
return err
} else if !isExist {
return errors.New("操作错误,课题信息不存在")
} else if mTechnologyTopic.UID != c.ManageUID {
} else if mTechnologyTopic.MUid != c.ManageUID {
return errors.New("无权限操作")
} else if mTechnologyTopic.Status != model2.TechnologyTopicStatusForDraft &&
mTechnologyTopic.Status != model2.TechnologyTopicStatusForRefuse {
@ -124,7 +124,7 @@ func (c *Topic) Form(params *TopicParams) error {
}
mTechnologyTopic.TenantID = c.TenantID
mTechnologyTopic.Local.Local = c.local
mTechnologyTopic.UID = c.ManageUID
mTechnologyTopic.MUid = c.ManageUID
return model2.Create(mTechnologyTopic.TechnologyTopic)
}
@ -139,7 +139,7 @@ func (c *Topic) Delete(id uint64) error {
return err
} else if !isExist {
return errors.New("操作错误,课题信息不存在")
} else if mTechnologyTopic.UID != c.ManageUID {
} else if mTechnologyTopic.MUid != c.ManageUID {
return errors.New("无权限操作")
}
return model2.Delete(mTechnologyTopic.TechnologyTopic)