正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -31,7 +31,7 @@ func (controller *DictionaryController) UpdateDictionary() { | @@ -31,7 +31,7 @@ func (controller *DictionaryController) UpdateDictionary() { | ||
| 31 | if err != nil { | 31 | if err != nil { |
| 32 | log.Logger.Debug("json err:" + err.Error()) | 32 | log.Logger.Debug("json err:" + err.Error()) |
| 33 | } | 33 | } |
| 34 | - dictionaryId, _ := controller.GetInt64("::dictionaryId") | 34 | + dictionaryId, _ := controller.GetInt64(":dictionaryId") |
| 35 | updateCommand.Operator = controller.GetOperator() | 35 | updateCommand.Operator = controller.GetOperator() |
| 36 | updateCommand.DictionaryId = dictionaryId | 36 | updateCommand.DictionaryId = dictionaryId |
| 37 | data, err := dictionaryService.UpdateDictionay(updateCommand) | 37 | data, err := dictionaryService.UpdateDictionay(updateCommand) |
| @@ -54,7 +54,7 @@ func (controller *DictionaryController) GetDictionary() { | @@ -54,7 +54,7 @@ func (controller *DictionaryController) GetDictionary() { | ||
| 54 | dictionaryService := service.NewDictionayService(nil) | 54 | dictionaryService := service.NewDictionayService(nil) |
| 55 | getQuery := &query.GetDictionaryQuery{} | 55 | getQuery := &query.GetDictionaryQuery{} |
| 56 | 56 | ||
| 57 | - dictionaryId, _ := controller.GetInt64("::dictionaryId") | 57 | + dictionaryId, _ := controller.GetInt64(":dictionaryId") |
| 58 | getQuery.DictionaryId = int(dictionaryId) | 58 | getQuery.DictionaryId = int(dictionaryId) |
| 59 | getQuery.Operator = controller.GetOperator() | 59 | getQuery.Operator = controller.GetOperator() |
| 60 | data, err := dictionaryService.GetDictionay(getQuery) | 60 | data, err := dictionaryService.GetDictionay(getQuery) |
-
请 注册 或 登录 后发表评论