作者 tangxuhui

修正值的获取

... ... @@ -31,7 +31,7 @@ func (controller *DictionaryController) UpdateDictionary() {
if err != nil {
log.Logger.Debug("json err:" + err.Error())
}
dictionaryId, _ := controller.GetInt64("::dictionaryId")
dictionaryId, _ := controller.GetInt64(":dictionaryId")
updateCommand.Operator = controller.GetOperator()
updateCommand.DictionaryId = dictionaryId
data, err := dictionaryService.UpdateDictionay(updateCommand)
... ... @@ -54,7 +54,7 @@ func (controller *DictionaryController) GetDictionary() {
dictionaryService := service.NewDictionayService(nil)
getQuery := &query.GetDictionaryQuery{}
dictionaryId, _ := controller.GetInt64("::dictionaryId")
dictionaryId, _ := controller.GetInt64(":dictionaryId")
getQuery.DictionaryId = int(dictionaryId)
getQuery.Operator = controller.GetOperator()
data, err := dictionaryService.GetDictionay(getQuery)
... ...