|
|
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
|
|
|
}
|
...
|
...
|
|