sensitive的新增和修改方法
This commit is contained in:
@@ -383,11 +383,14 @@ func (c *SkuController) UpdateSensitiveWord() {
|
|||||||
word := &model.SensitiveWord{
|
word := &model.SensitiveWord{
|
||||||
VendorID: params.VendorID,
|
VendorID: params.VendorID,
|
||||||
Word: params.Word,
|
Word: params.Word,
|
||||||
|
ModelIDCULD: model.ModelIDCULD{
|
||||||
|
ID: params.ID,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
if params.Status == 1 {
|
if params.Status == 1 {
|
||||||
retVal, err = dao.DeleteSensitiveWord(word, params.VendorID, params.Ctx.GetUserName())
|
retVal, err = dao.DeleteSensitiveWord(word, params.ID, params.Ctx.GetUserName())
|
||||||
} else {
|
} else {
|
||||||
retVal, err = dao.UpdateSensitiveWord(word, params.VendorID, params.Ctx.GetUserName(), "id", "word", "vendor_id", "last_operator")
|
retVal, err = dao.UpdateSensitiveWord(word, params.ID, params.Ctx.GetUserName(), "id", "word", "vendor_id", "last_operator")
|
||||||
}
|
}
|
||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user