Files
servicebase/pkg/dto/DispatchOrderCenterDataDTO.go
2025-11-19 14:24:13 +08:00

57 lines
1.5 KiB
Go

package dto
// 派单中心数据对象
type DispatchOrderCenterDataDTO struct {
DispatchOrderId string
HostUserId string
HostUserAvatar string
HostUserNickname string
HostUserNo string
BuyerId string
BuyerUserAvatar string
BuyerUserNickname string
BuyerUserNo string
SkillIcon string
SkillName string
CustomerRequirement string
Scheme string
CreateTime string
Status string //1派单中 2=完成 3=弃单
Title string // 消息中心使用
SkillMode string
SkillLevel string
SkillService string
Gender string
OrderCnt int32
OrderPrice int32
OrderAmount int32
ChatroomId string
UnitName string
TakeStatus string // 接单状态
TakeStatusDesc string // 接单状态文案描述
StatusDesc string // 派单状态文案描述
Lock string
GuildBase
}
type DispatchOrderCombineDTO struct {
// model_master.TDispatchOrder
TakeStatus string `gorm:"column:take_status;" json:"take_status"` // 接单状态
}
var TakeStatusDesc = map[string]string{
"success": "抢单成功",
"failed": "抢单失败",
"notTake": "未抢单",
"init": "抢单中",
"cancel": "取消抢单",
"dispatch_cancel": "取消派单",
}
var StatusDesc = map[string]string{
"1": "派单中",
"2": "派单成功",
"3": "派单结束",
}