first commit
This commit is contained in:
18
pkg/constant/content.go
Normal file
18
pkg/constant/content.go
Normal file
@ -0,0 +1,18 @@
|
||||
package constant
|
||||
|
||||
const (
|
||||
JxApiToken = "8056be17be26d7e8f4"
|
||||
|
||||
ContentSmsTemplateTypeLogin = "LOGIN"
|
||||
ContentSmsTemplateTypeRegDriver = "REG-DRIVER"
|
||||
ContentSmsTemplateTypeRegPassenger = "REG-PASSENGER"
|
||||
|
||||
ContentSmsRecordSendSuccess = 2
|
||||
ContentSmsRecordSendFailed = 1
|
||||
)
|
||||
|
||||
var ContentSmsTemplateType map[string]string
|
||||
|
||||
func init() {
|
||||
ContentSmsTemplateType = map[string]string{}
|
||||
}
|
||||
170
pkg/constant/exam_order/order_status.go
Normal file
170
pkg/constant/exam_order/order_status.go
Normal file
@ -0,0 +1,170 @@
|
||||
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)
|
||||
}
|
||||
24
pkg/constant/p_vars.go
Normal file
24
pkg/constant/p_vars.go
Normal file
@ -0,0 +1,24 @@
|
||||
package constant
|
||||
|
||||
const (
|
||||
PhotoDomainUrl = "https://photo-app.ddegame.cn/"
|
||||
API_SECRET = "c9ca017f078a4cd1ba5ccb9d02d4869a"
|
||||
HTTP_METHOD_POST = "POST"
|
||||
LOG_QUOTE_STRING = "#"
|
||||
|
||||
// 验证码类型
|
||||
SMS_CODE_TYPE_SIGN_IN = "signIn" //登录验证码
|
||||
|
||||
// 未登录 需要跳登录页
|
||||
ErrorCodeNeedLogin int = 7031
|
||||
ErrorCodeSignError int = 7032
|
||||
|
||||
// APP登录方式
|
||||
AppLoginTypePwd = "1" //密码登录
|
||||
AppLoginTypeSmsCode = "2" //验证码登录
|
||||
|
||||
CustomerProductId = "CUSTOMER" // 自定义充值的产品ID
|
||||
|
||||
WeekStarGiftGrantToReward = "TO_REWARD" // 给周星名气榜用户发放的礼物列表key
|
||||
WeekStarGiftGrantToReceive = "TO_RECEIVE" // 给周星人气榜用户发放的礼物列表key
|
||||
)
|
||||
15
pkg/constant/sys_vars.go
Normal file
15
pkg/constant/sys_vars.go
Normal file
@ -0,0 +1,15 @@
|
||||
package constant
|
||||
|
||||
// 资源类型
|
||||
type ResourceTypeEnum int
|
||||
|
||||
const (
|
||||
Image ResourceTypeEnum = iota // = 0
|
||||
Video // = 1
|
||||
Audio
|
||||
)
|
||||
|
||||
func (actionType ResourceTypeEnum) String() string {
|
||||
names := []string{"图片", "视频", "音频"}
|
||||
return names[actionType]
|
||||
}
|
||||
7
pkg/constant/tenant.go
Normal file
7
pkg/constant/tenant.go
Normal file
@ -0,0 +1,7 @@
|
||||
package constant
|
||||
|
||||
const (
|
||||
HeaderUserId = "USER-ID"
|
||||
TenantId = "TENANT-ID"
|
||||
ScopeId = "SCOPE-ID"
|
||||
)
|
||||
21
pkg/constant/withdraw_status.go
Normal file
21
pkg/constant/withdraw_status.go
Normal file
@ -0,0 +1,21 @@
|
||||
package constant
|
||||
|
||||
const (
|
||||
WithdrawStatusReview = "1"
|
||||
WithdrawStatusApproved = "2"
|
||||
WithdrawStatusReject = "3"
|
||||
WithdrawStatusPayFailed = "4"
|
||||
WithdrawStatusPaySuccess = "5"
|
||||
)
|
||||
|
||||
var WithdrawStatusCon map[string]string
|
||||
|
||||
func init() {
|
||||
WithdrawStatusCon = map[string]string{
|
||||
WithdrawStatusReview: "审核中",
|
||||
WithdrawStatusApproved: "审核通过",
|
||||
WithdrawStatusReject: "审核失败",
|
||||
WithdrawStatusPayFailed: "打款失败",
|
||||
WithdrawStatusPaySuccess: "打款成功",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user