完成前后端框架搭建,完成聊天页面布局

This commit is contained in:
RockYang
2023-03-17 14:17:27 +08:00
commit c25cc97450
35 changed files with 21044 additions and 0 deletions

11
server/chat_handler.go Normal file
View File

@@ -0,0 +1,11 @@
package server
import (
"fmt"
"github.com/gin-gonic/gin"
"net/http"
)
func (s *Server) Chat(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"code": 0, "message": fmt.Sprintf("HELLO, ChatGPT !!!")})
}