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.
43 lines
1.1 KiB
43 lines
1.1 KiB
|
2 months ago
|
package routers
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
handler2 "server/modules/backend/handler/guser"
|
||
|
|
handler "server/modules/customer/handler/chat"
|
||
|
|
)
|
||
|
|
|
||
|
|
func chat(e *gin.Engine) {
|
||
|
|
// 工单分配
|
||
|
|
e.POST("/order/allocate", handler.CustomerOrderAllocate)
|
||
|
|
|
||
|
|
// 聊天历史
|
||
|
|
e.POST("/customer/history", handler.GetCustomerHistory)
|
||
|
|
|
||
|
|
// 消息已读
|
||
|
|
e.POST("/customer/read/message", handler.ReadMessage)
|
||
|
|
|
||
|
|
// 发送消息
|
||
|
|
e.POST("/customer/send/message", handler.SendMessage)
|
||
|
|
|
||
|
|
// 工单列表
|
||
|
|
e.POST("/customer/order/list", handler.GetCustomerOrder)
|
||
|
|
|
||
|
|
// 改变工单状态
|
||
|
|
e.POST("/customer/order/change", handler.ChangeCustomerOrderStatus)
|
||
|
|
|
||
|
|
// 编辑工单标签
|
||
|
|
e.POST("/customer/label/edit", handler.EditCustomerOrderLabel)
|
||
|
|
|
||
|
|
// 玩家信息
|
||
|
|
e.POST("/customer/player/info", handler.GetPlayerInfo)
|
||
|
|
|
||
|
|
// 玩家充值历史
|
||
|
|
e.POST("/customer/rechargeHistory", handler2.GetGameUserRechargeHistory)
|
||
|
|
|
||
|
|
// 玩家提现历史
|
||
|
|
e.POST("/customer/withdrawHistory", handler2.GetGameUserWithdrawHistory)
|
||
|
|
|
||
|
|
// 玩家客诉历史
|
||
|
|
e.POST("/customer/complaint/history", handler.ComplaintHistory)
|
||
|
|
}
|