package routers import ( "github.com/gin-gonic/gin" "server/modules/web/handler" ) func customer(e *gin.RouterGroup) { // 获取客服系统配置 e.GET("/customer/config", handler.GetCustomerConfig) // 获取机器人信息 e.POST("/customer/robot/list", handler.GetCustomerRobotList) // 获取机器人消息 e.POST("/customer/robot/msg/list", handler.GetCustomerRobotMsg) // 获取客服聊天历史 e.POST("/customer/history", handler.GetCustomerHistory) // 上传图片 e.POST("/customer/upload/image", handler.UploadImage) // 加载图片 e.GET("/customer/image/download", handler.DownloadImage) // 读消息 e.POST("/customer/read/message", handler.ReadMessage) // 发送消息 e.POST("/customer/send/message", handler.SendMessage) // 创建客服工单 e.GET("/customer/create/order", handler.CreateCustomerOrder) }