imjoey commented on a change in pull request #1436:
URL: https://github.com/apache/apisix-dashboard/pull/1436#discussion_r571519635



##########
File path: api/internal/handler/ssl/ssl.go
##########
@@ -198,7 +198,16 @@ func (h *Handler) Create(c droplet.Context) (interface{}, 
error) {
                return handler.SpecCodeResponse(err), err
        }
 
-       return ret, nil
+       //format respond
+       _ssl := &entity.SSL{}
+       err = utils.ObjectClone(ret, _ssl)

Review comment:
       @Jaycean @nic-chen @starsz  How about use type assertion here like the 
following?
   
   ```go
   ssl := ret.(*entity.SSL)
   ```
   
   I also noticed that current `Get` method also uses `ObjectClone()`. I'm a 
little confused and looking forward to your directions. Thank you very much.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to