...
|
...
|
@@ -11,6 +11,9 @@ import ( |
|
|
)
|
|
|
|
|
|
func (tableService *TableService) TablePreview(ctx *domain.Context, cmd *command.TablePreviewCommand) (interface{}, error) {
|
|
|
if cmd.TableId == 0 {
|
|
|
return &dto.TablePreviewDto{}, nil
|
|
|
}
|
|
|
if err := cmd.ValidateCommand(); err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|