在线客服系统

项目简介

Golang语言客服系统,主要使用了gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL等技术

安装使用

程序正常运行后,监听端口8081,可以直接ip+端口8081访问

也可以配置域名访问,反向代理到8081端口,就能隐藏端口号

客服对接

聊天链接

http://127.0.0.1:8081/chatIndex?kefu_id=dbestech

弹窗使用

    (function(a, b, c, d) {
        let h = b.getElementsByTagName('head')[0];let s = b.createElement('script');
        s.type = 'text/javascript';s.src = c+"/static/js/kefu-front.js";s.onload = s.onreadystatechange = function () {
            if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") d(c);
        };h.appendChild(s);
    })(window, document,"http://127.0.0.1:8081",function(u){
        KEFU.init({
            KEFU_URL:u,
            KEFU_KEFU_ID: "kefu2",
        })
    });