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.
123 lines
3.7 KiB
123 lines
3.7 KiB
|
2 months ago
|
package values
|
||
|
|
|
||
|
|
import "server/common"
|
||
|
|
|
||
|
|
// GetCustomerHistoryReq 获取聊天信息
|
||
|
|
type GetCustomerHistoryReq struct {
|
||
|
|
Title int `json:"Title" binding:"required"` // 玩家uid
|
||
|
|
Page int `json:"Page" binding:"required"`
|
||
|
|
Num int `json:"Num" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetCustomerHistoryResp 获取聊天信息
|
||
|
|
type GetCustomerHistoryResp struct {
|
||
|
|
List []*common.CustomerChatData
|
||
|
|
Count int64
|
||
|
|
}
|
||
|
|
|
||
|
|
// ReadMessageReq 消息已读接口
|
||
|
|
type ReadMessageReq struct {
|
||
|
|
OrderId int // 订单id
|
||
|
|
Title int `json:"Title" binding:"required"` // 玩家uid
|
||
|
|
List []int `json:"List" binding:"required"` // 传入需要标记已读消息的id
|
||
|
|
}
|
||
|
|
|
||
|
|
// 发送消息请求
|
||
|
|
type SendMessageReq struct {
|
||
|
|
common.CustomerChatData
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询订单请求
|
||
|
|
type GetCustomerOrderReq struct {
|
||
|
|
Page int `json:"Page" binding:"required"`
|
||
|
|
Num int `json:"Num" binding:"required"`
|
||
|
|
CustomerUid int `json:"CustomerUid"` // uid
|
||
|
|
Uid int `json:"Uid"` // 玩家uid
|
||
|
|
Status int `json:"Status"` // 工单状态码 等于 匹配
|
||
|
|
Vip int `json:"Vip"` // vip等级限制
|
||
|
|
Label int `json:"Label"` // 标签
|
||
|
|
Order int `json:"Order"` // 默认按创建时间逆序, 1表示按创建时间逆序, 2表示按创建时间正序 3表示按消息未读数排序
|
||
|
|
Status2 int `json:"Status2"` // 工单状态码 小于等于 匹配
|
||
|
|
Reply int // 是否已回复 0 不筛选 1已回复 2未回复
|
||
|
|
Recharge bool `json:"Recharge"` // 是否查询充值订单
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetCustomerOrderResp struct {
|
||
|
|
List []*common.CustomerOrder
|
||
|
|
Count int64
|
||
|
|
}
|
||
|
|
|
||
|
|
// 改变工单状态
|
||
|
|
type ChangeCustomerOrderReq struct {
|
||
|
|
List []*CustomerOrderStatus
|
||
|
|
}
|
||
|
|
|
||
|
|
type CustomerOrderStatus struct {
|
||
|
|
Id int `json:"Id"` // 改订单id
|
||
|
|
Status int `json:"Status"` // 工单状态码
|
||
|
|
Label1 int `json:"Label1"` // 工单标签
|
||
|
|
Label2 int `json:"Label2"` // 工单标签
|
||
|
|
Label3 int `json:"Label3"` // 工单标签
|
||
|
|
Label4 int `json:"Label4"` // 工单标签
|
||
|
|
Label5 int `json:"Label5"` // 工单标签
|
||
|
|
Remark string
|
||
|
|
}
|
||
|
|
|
||
|
|
// 分配工单到客服人员
|
||
|
|
type CustomerOrderAllocateReq struct {
|
||
|
|
List []*OrderAllocate
|
||
|
|
}
|
||
|
|
|
||
|
|
type OrderAllocate struct {
|
||
|
|
Uid int // 客服人员uid
|
||
|
|
OrderId int // 分配工单Id
|
||
|
|
}
|
||
|
|
|
||
|
|
// 分配工单到客服人员
|
||
|
|
type CustomerOrderAllocateResp struct {
|
||
|
|
List []*OrderAllocate
|
||
|
|
}
|
||
|
|
|
||
|
|
// 编辑订单标签
|
||
|
|
type EditCustomerOrderLabelReq struct {
|
||
|
|
OrderId int `json:"OrderId" binding:"required"` // 编辑的订单id
|
||
|
|
LabelId1 int `json:"LabelId1" binding:"required"` // 编辑的标签id
|
||
|
|
LabelId2 int `json:"LabelId2" binding:"required"` // 编辑的标签id
|
||
|
|
LabelId3 int `json:"LabelId3" binding:"required"` // 编辑的标签id
|
||
|
|
LabelId4 int `json:"LabelId4" binding:"required"` // 编辑的标签id
|
||
|
|
LabelId5 int `json:"LabelId5" binding:"required"` // 编辑的标签id
|
||
|
|
}
|
||
|
|
|
||
|
|
// 玩家信息
|
||
|
|
type GetPlayerInfoReq struct {
|
||
|
|
Uid int `json:"Uid" binding:"required"` // 客诉玩家uid
|
||
|
|
}
|
||
|
|
|
||
|
|
// 玩家信息响应
|
||
|
|
type GetPlayerInfoResp struct {
|
||
|
|
Uid int // 客诉玩家uid
|
||
|
|
Nick string // 昵称
|
||
|
|
Avatar string // 头像
|
||
|
|
Birth int64 // 注册日期
|
||
|
|
Phone string // 玩家电话号码
|
||
|
|
Channel int // 渠道
|
||
|
|
Package string // 游戏包名
|
||
|
|
Vip int // 玩家vip等级
|
||
|
|
Recharge int64 // 玩家充值总金额
|
||
|
|
Withdraw int64 // 玩家提现总金额
|
||
|
|
CustomerBlack bool // 是否被拉黑
|
||
|
|
}
|
||
|
|
|
||
|
|
// 玩家客诉历史请求
|
||
|
|
type ComplaintHistoryReq struct {
|
||
|
|
Uid int `json:"Uid" binding:"required"` // 玩家uid
|
||
|
|
Page int `json:"Page" binding:"required"`
|
||
|
|
Num int `json:"Num" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// 玩家客诉历史响应
|
||
|
|
type ComplaintHistoryResp struct {
|
||
|
|
List []*common.CustomerOrder
|
||
|
|
Count int64
|
||
|
|
}
|