增加路由分组

pull/23/head
taoshihan1991 4 years ago
parent e98cc3dc3c
commit 73381185d8

@ -10,6 +10,14 @@ import (
func InitApiRouter(engine *gin.Engine) {
//首页
engine.GET("/", controller.Index)
//路由分组
v2 := engine.Group("/2")
{
//获取消息
v2.GET("/2/messages", controller.GetMessagesV2)
//发送单条信息
v2.POST("/2/message", middleware.Ipblack, controller.SendMessageV2)
}
engine.POST("/check", controller.LoginCheckPass)
engine.POST("/check_auth", middleware.JwtApiMiddleware, controller.MainCheckAuth)
engine.GET("/userinfo", middleware.JwtApiMiddleware, controller.GetKefuInfoAll)
@ -19,9 +27,7 @@ func InitApiRouter(engine *gin.Engine) {
engine.GET("/ws_kefu", middleware.JwtApiMiddleware, ws.NewKefuServer)
engine.GET("/ws_visitor", ws.NewVisitorServer)
//获取消息
engine.GET("/messages", controller.GetVisitorMessage)
engine.GET("/2/messages", controller.GetMessagesV2)
engine.GET("/message_notice", controller.SendVisitorNotice)
//发送单条消息
engine.POST("/message", middleware.Ipblack, controller.SendMessage)

@ -1,6 +1,6 @@
.launchButton{
position: fixed!important;
bottom: 55px!important;
bottom: 100px!important;
right: 20px!important;
left: auto!important;
height: 48px!important;

@ -36,7 +36,7 @@ function clickBtn(){
type: 2,
title: GOFLY_BTN_TEXT,
closeBtn: 1, //不显示关闭按钮
shade: [0],
shade: 0,
area: ['520px', '530px'],
offset: 'rb', //右下角弹出
anim: 2,

Loading…
Cancel
Save