接口返回的内容

(此处做笔记给自己看)

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

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

posted @ 2021-10-27 21:19  二维一加零  阅读(51)  评论(0)    收藏  举报