基于GO語言實作的web客服即時通訊與客服管理系統,
1.使用gin http框架實作restful風格的API
2.使用jwt-go配合gin中間件實作無狀態的jwt登陸認證
3.使用casbin配合gin中間件實作權限控制
4.使用gin以及template包的模板語法進行展示界面
5.使用go modoule解決依賴問題
6.使用go-imap實作郵件的串列展示和讀取
7.使用go-smtp實作發送郵件
8.使用github.com/gorilla/websocket實作即時通訊
9.使用gorm配合mysql實作資料存盤
10.充分實踐了struct,interface,map,slice,for range,groutine和channel管道等基礎知識



安裝使用
-
先安裝和運行mysql , 創建go-fly資料庫,并匯入*.sql創建表結構與資料
-
在go get github.com/taoshihan1991/go-fly ,進入$GOPATH/src/github.com/taoshihan1991/go-fly 目錄
在config目錄mysql.json中配置資料庫
{
"Server":"127.0.0.1",
"Port":"3306",
"Database":"go-fly",
"Username":"go-fly",
"Password":"go-fly"
}
-
原始碼運行 go run server.go
-
原始碼打包 go build server.go
github: https://github.com/taoshihan1991/go-fly
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/3644.html
標籤:Go
上一篇:Golang四舍五入保留兩位小數
下一篇:Go處理每分鐘100萬個請求
