Browse Source

删除FindSysDictionary的校验

main v2.3.6
SliverHorn 4 years ago
parent
commit
c5068bf133
  1. 4
      server/api/v1/sys_dictionary.go

4
server/api/v1/sys_dictionary.go

@ -79,10 +79,6 @@ func UpdateSysDictionary(c *gin.Context) {
func FindSysDictionary(c *gin.Context) {
var dictionary model.SysDictionary
_ = c.ShouldBindQuery(&dictionary)
if err := utils.Verify(dictionary, utils.DictionaryVerify); err != nil {
response.FailWithMessage(err.Error(), c)
return
}
if err, sysDictionary := service.GetSysDictionary(dictionary.Type, dictionary.ID); err != nil {
global.GVA_LOG.Error("查询失败!", zap.Any("err", err))
response.FailWithMessage("查询失败", c)

Loading…
Cancel
Save