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