feat:增加科技产品数据模型管理
This commit is contained in:
@ -94,7 +94,7 @@ func (c *Topic) Form(params *TopicParams) error {
|
||||
|
||||
if params.ID > 0 {
|
||||
mTechnologyTopic.ID = params.ID
|
||||
isExist, err := model2.FirstField(mTechnologyTopic.TechnologyTopic, []string{"id", "uid", "status"})
|
||||
isExist, err := model2.FirstField(mTechnologyTopic.TechnologyTopic, []string{"id", "m_uid", "status"})
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
@ -133,7 +133,7 @@ func (c *Topic) Delete(id uint64) error {
|
||||
mTechnologyTopic := model.NewTechnologyTopic()
|
||||
mTechnologyTopic.ID = id
|
||||
|
||||
isExist, err := model2.FirstField(mTechnologyTopic.TechnologyTopic, []string{"id", "uid", "status"})
|
||||
isExist, err := model2.FirstField(mTechnologyTopic.TechnologyTopic, []string{"id", "m_uid", "status"})
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user