作者 yangfu

fix: row edit not work

package service
import (
"fmt"
"github.com/linmadan/egglib-go/core/application"
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/application/factory"
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/application/table/command"
... ... @@ -12,7 +11,6 @@ import (
)
func (tableService *TableService) TablePreview(ctx *domain.Context, cmd *command.TablePreviewCommand) (interface{}, error) {
return nil, factory.FastError(fmt.Errorf("Backend not found. Check if any backend is down or not"))
if cmd.TableId == 0 {
return &dto.TablePreviewDto{}, nil
}
... ...
... ... @@ -7,7 +7,7 @@ import (
func init() {
tableController := &controllers.TableController{}
//tableController.BaseController.ErrorResolver, _ = controllers.NewCommErrorResolver()
tableController.BaseController.ErrorResolver, _ = controllers.NewCommErrorResolver()
web.Router("/data/tables/", tableController, "Post:CreateTable")
//web.Router("/data/tables/:tableId", tableController, "Put:UpdateTable")
web.Router("/data/tables/:tableId", tableController, "Get:GetTable")
... ...