Files
servicebase/pkg/constant/exam_order/order_status.go
2025-11-18 17:48:20 +08:00

171 lines
5.7 KiB
Go

package exam_order
type OrderStatus string
const (
// 订单原始状态 已下单待支付
ORDER_ORIGIN_STATUS_CREATED_WAIT_PAY OrderStatus = "1"
// 订单原始状态 已支付待接单
ORDER_ORIGIN_STATUS_PAID_WAIT_SELLER_AGREE OrderStatus = "2"
// 订单原始状态 已接单
ORDER_ORIGIN_STATUS_SELLER_AGREED OrderStatus = "3"
// 订单原始状态 已完成
ORDER_ORIGIN_STATUS_FINISHED OrderStatus = "4"
// 订单原始状态 退款中
ORDER_ORIGIN_STATUS_REFUNDING OrderStatus = "5"
// 订单原始状态 售后中(申诉中)
ORDER_ORIGIN_STATUS_IN_APPEAL OrderStatus = "6"
// 订单原始状态 申诉失败 订单完成
ORDER_ORIGIN_STATUS_APPEAL_FAILED OrderStatus = "8"
// 订单原始状态 售后完成(申诉完成)
ORDER_ORIGIN_STATUS_APPEAL_DONE OrderStatus = "9"
// 订单原始状态 支付前买家取消
ORDER_ORIGIN_STATUS_UNPAY_BUYER_CANCELED OrderStatus = "20"
// 订单原始状态 10分钟未支付自动过期
ORDER_ORIGIN_STATUS_UNPAY_AUTO_EXPISED OrderStatus = "21"
// 订单原始状态 支付后买家取消
ORDER_ORIGIN_STATUS_PAID_BUYER_CANCELED OrderStatus = "22"
// 订单原始状态 支付后卖家未接单 自动取消
ORDER_ORIGIN_STATUS_PAID_SELLER_NOT_AGREE_AUTO_CANCELED OrderStatus = "23"
// 订单原始状态 卖家拒绝接单
ORDER_ORIGIN_STATUS_SELLER_REJECTED_ORDER OrderStatus = "24"
// 订单原始状态 卖家同意退款
ORDER_ORIGIN_STATUS_SELLER_AGREE_REFUND OrderStatus = "25"
// 订单原始状态 (售后成功)申诉成功,并免单退款
ORDER_ORIGIN_STATUS_APPEAL_SUCCESS_CANCELED OrderStatus = "26"
// 订单原始状态 买家申请退款卖家超时未处理自动取消
ORDER_ORIGIN_STATUS_REFUNDING_EXPIRED_AUTO_CANCELED OrderStatus = "27"
)
func (o OrderStatus) String() string {
return string(o)
}
type PayStatus string
const (
// 订单支付状态 未支付
ORDER_PAY_STATUS_UNPAY PayStatus = "0"
// 订单支付状态 已支付
ORDER_PAY_STATUS_PAID PayStatus = "1"
// 订单支付状态 已退款
ORDER_PAY_STATUS_REFUND PayStatus = "2"
)
func (o PayStatus) String() string {
return string(o)
}
type ExaminerOrderStatus string
const (
ExaminerIdle ExaminerOrderStatus = "idle" // 空闲
ExaminerAccept ExaminerOrderStatus = "accept" // 空闲
)
func (o ExaminerOrderStatus) String() string {
return string(o)
}
type ExamSkillStatus string
const (
ExamSkillNormal ExamSkillStatus = "normal"
ExamSkillDown ExamSkillStatus = "down"
)
func (o ExamSkillStatus) String() string {
return string(o)
}
type OrderAction string
const (
//PayOrder = 支付订单 CancelOrder = 取消订单 AgreeOrder= 同意接单 RefuseOrder=拒绝接单 FinishOrder = 确认完成 RequestRefund=请求退款 AgreeRefund=同意退款 RefuseRefund=拒绝退款
// 订单操作 创建订单
ORDER_ACTION_CREATE_ORDER OrderAction = "CreateOrder"
// 订单操作 支付订单
ORDER_ACTION_PAY_ORDER OrderAction = "PayOrder"
// 订单操作 取消订单
ORDER_ACTION_CANCEL_ORDER OrderAction = "CancelOrder"
// 订单操作 卖家同意接单
ORDER_ACTION_AGREE_ORDER OrderAction = "AgreeOrder"
// 订单操作 卖家完成一局
ORDER_ACTION_SUB_COMPLETE_ORDER OrderAction = "SubCompleteOrder"
// 订单操作 买家续单
ORDER_ACTION_RENEW_ORDER OrderAction = "RenewOrder"
// 订单操作 卖家开始陪玩
ORDER_ACTION_START_ORDER OrderAction = "StartOrder"
// 订单操作 卖家拒绝接单
ORDER_ACTION_REJECT_ORDER OrderAction = "RejectOrder"
// 订单操作 买家完成订单
ORDER_ACTION_FINISH_ORDER OrderAction = "FinishOrder"
// 订单操作 提前结束
ORDER_ACTION_EARLY_END_ORDER OrderAction = "EarlyEndOrder"
// 订单操作 按局订单 陪玩结束
ORDER_ACTION_SELLER_END_ORDER OrderAction = "SellerEndOrderByCount"
// 订单操作 买家请求退款
ORDER_ACTION_REQUEST_REFUND OrderAction = "RequestRefund"
// 订单操作 卖家同意退款
ORDER_ACTION_AGREE_REFUND OrderAction = "AgreeRefund"
// 订单操作 卖家拒绝退款
ORDER_ACTION_REJECT_REFUND OrderAction = "RejectRefund"
// 订单操作 评价订单
ORDER_ACTION_RATE_ORDER OrderAction = "RateOrder"
// 订单操作 再次下单
ORDER_ACTION_ORDER_AGAIN OrderAction = "ReCreateOrder"
// 订单操作 申请售后
ORDER_ACTION_ORDER_SUPPORT OrderAction = "ApplySupportOrder"
// 订单操作 删除订单
ORDER_ACTION_ORDER_DEL OrderAction = "DeleteOrder"
// 订单操作 订单免单
ORDER_ACTION_ORDER_FREE OrderAction = "FreeOrder"
// 订单操作 联系售后
ORDER_ACTION_CONTACT_SUPPORT OrderAction = "ContactSupport"
// 订单操作 删除评价订单
ORDER_ACTION_DELETE_ORDER_RATE OrderAction = "DeleteOrderRate"
// 订单操作 删除订单
ORDER_ACTION_DELETE_ORDER OrderAction = "DeleteOrder"
// 订单操作 申诉
ORDER_ACTION_APPEAL_SUCCESS OrderAction = "AppealSuccess"
// 订单操作 申诉失败
ORDER_ACTION_APPEAL_FAIL OrderAction = "AppealFail"
//订单操作 增加单量
ORDER_ACTION_ADD_ORDER_COUNT OrderAction = "AddOrderCount"
//订单操作 减少单量
ORDER_ACTION_REDUCE_ORDER_COUNT OrderAction = "ReduceOrderCount"
//订单操作 进入房间
ORDER_ACTION_ENTER_ROOM OrderAction = "EnterRoom"
// 订单操作 提交审核
ORDER_ACTION_SUBMIT_REVIEW OrderAction = "SubmitReview"
)
func (o OrderAction) String() string {
return string(o)
}
type OrderReviewStatus string
const (
OrderReviewInit OrderReviewStatus = "init"
OrderReviewAccept OrderReviewStatus = "accept"
OrderReviewDeny OrderReviewStatus = "deny"
)
func (o OrderReviewStatus) String() string {
return string(o)
}
type OrderSupportStatus string
const (
OrderSupportInit OrderSupportStatus = "init"
OrderSupportDone OrderSupportStatus = "done"
)
func (o OrderSupportStatus) String() string {
return string(o)
}