接口返回的内容

(此处做笔记给自己看)

1、return Json{ new { messge = "success", code = 200  }};

2、return Content{“this is content !”}

posted @ 2021-10-27 21:19  艾特-天空之海  阅读(36)  评论(0编辑  收藏  举报