基於GO語言實現的web客服即時通信與客服管理系統。php
1.使用gin http框架實現restful風格的APIhtml
2.使用jwt-go配合gin中間件實現無狀態的jwt登錄認證mysql
3.使用casbin配合gin中間件實現權限控制git
4.使用gin以及template包的模板語法進行展現界面github
5.使用go modoule解決依賴問題web
6.使用go-imap實現郵件的列表展現和讀取sql
7.使用go-smtp實現發送郵件數據庫
8.使用github.com/gorilla/websocket實現即時通信json
9.使用gorm配合mysql實現數據存儲websocket
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