feat:注释不用的代码
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user