You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
|
2 months ago
|
package routers
|
||
|
|
|
||
|
|
import (
|
||
|
|
handler "server/modules/customer/handler/gm"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
func gmHandle(e *gin.Engine) {
|
||
|
|
// 客服机器人配置
|
||
|
|
e.POST("/gm/customer/robot/info", handler.GetCustomerRobot)
|
||
|
|
e.POST("/gm/customer/robot/edit", handler.EditCustomerRobot)
|
||
|
|
e.POST("/gm/customer/robot/del", handler.DelCustomerRobot)
|
||
|
|
|
||
|
|
// 客服订单标签
|
||
|
|
e.GET("/gm/order/label/info", handler.GetCustomerLabel)
|
||
|
|
e.POST("/gm/order/label/edit", handler.EditCustomerLabel)
|
||
|
|
e.POST("/gm/order/label/del", handler.DelCustomerLabel)
|
||
|
|
|
||
|
|
// 客服系统配置
|
||
|
|
e.GET("/gm/customer/config/info", handler.GetConfigCustomer)
|
||
|
|
e.POST("/gm/customer/config/edit", handler.EditConfigCustomer)
|
||
|
|
e.POST("/gm/customer/config/del", handler.DelConfigCustomer)
|
||
|
|
|
||
|
|
// 客服系统黑名单
|
||
|
|
e.POST("/gm/customer/black/list", handler.GetCustomerBlackUser)
|
||
|
|
e.POST("/gm/customer/black/edit", handler.EditCustomerBlackUser)
|
||
|
|
|
||
|
|
e.GET("/gm/control/*action", handler.ConfigControlCommon)
|
||
|
|
e.POST("/gm/control/*action", handler.ConfigControlCommon)
|
||
|
|
}
|