33 lines
1.4 KiB
Go
33 lines
1.4 KiB
Go
|
|
package dto
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"customer-server/consts/account"
|
|||
|
|
|
|||
|
|
"github.com/gogf/gf/v2/frame/g"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
type AccountHttpConnectReq struct {
|
|||
|
|
g.Meta `path:"/accountConnect" method:"get" tags:"AccountHttp" summary:"Http连接" dc:"发送Http请求,用于消息推送"`
|
|||
|
|
UserId string `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
|||
|
|
AccountCode string `json:"accountCode" v:"required#客服账号不能为空" dc:"客服账号"`
|
|||
|
|
Platform account.Platform `json:"platform" v:"required#平台不能为空" dc:"平台"`
|
|||
|
|
QuestionContent string `json:"questionContent" dc:"问题内容"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
type AccountHttpConnectRes struct {
|
|||
|
|
Content string `json:"content"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// AccountWebSocketConnectReq WebSocket 连接请求
|
|||
|
|
type AccountWebSocketConnectReq struct {
|
|||
|
|
g.Meta `path:"/accountConnect" method:"get" tags:"AccountWebSocket" summary:"WebSocket连接" dc:"建立WebSocket连接,用于实时消息推送"`
|
|||
|
|
UserId string `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
|||
|
|
AccountCode string `json:"accountCode" v:"required#客服账号不能为空" dc:"客服账号"`
|
|||
|
|
Platform account.Platform `json:"platform" v:"required#平台不能为空" dc:"平台"`
|
|||
|
|
QuestionContent string `json:"questionContent" dc:"问题内容"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
type AccountWebSocketConnectRes struct {
|
|||
|
|
Content string `json:"content"`
|
|||
|
|
}
|