Files
kami_backend/internal/boot/boot_enums.go
danial 2253dc739a feat(jd-cookie):优化订单创建逻辑与状态管理- 新增订单状态 OrderStatusJDOrderFailed用于标识京东订单获取失败
- 新增订单变更类型 OrderChangeTypeJDOrderFailed 用于记录下单失败事件
- 调整订单创建逻辑,支持失败订单重试机制
- 新增 RecordOrderHistoryReq 结构体统一记录订单变更历史参数
- 修改数据库表结构,优化字段类型和索引
- 更新订单创建逻辑,分离本地订单与京东订单创建流程- 增加失败订单重新创建京东订单的处理逻辑
- 调整订单状态检查逻辑,支持更多状态处理
-优化订单历史记录方式,增加备注信息支持
- 更新数据库字符集为 utf8mb4_unicode_ci 提升兼容性
2025-10-18 23:41:31 +08:00

13 lines
9.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// ================================================================================
package boot
import (
"github.com/gogf/gf/v2/util/gtag"
)
func init() {
gtag.SetGlobalEnums(`{"github.com/gogf/gf/v2/database/gdb.InsertOption":[0,3,1,2],"github.com/gogf/gf/v2/database/gdb.LocalType":["bigint","bool","[]byte","date","datetime","float32","float64","int","int64","int64-bytes","[]int64","[]int","json","jsonb","string","[]string","time","uint","uint64","uint64-bytes","[]uint64",""],"github.com/gogf/gf/v2/database/gdb.Propagation":["MANDATORY","NESTED","NEVER","NOT_SUPPORTED","REQUIRED","REQUIRES_NEW","SUPPORTS"],"github.com/gogf/gf/v2/database/gdb.Role":["master","slave"],"github.com/gogf/gf/v2/database/gdb.SelectType":[3,1,0,2],"github.com/gogf/gf/v2/database/gdb.SoftTimeType":[0,1,2,4,3,5],"github.com/gogf/gf/v2/database/gdb.SqlType":["DB.Begin","DB.ExecContext","DB.PrepareContext","DB.QueryContext","DB.Statement.ExecContext","DB.Statement.QueryContext","DB.Statement.QueryRowContext","TX.Commit","TX.Rollback"],"github.com/gogf/gf/v2/database/gredis.FlushOp":["ASYNC","SYNC"],"github.com/gogf/gf/v2/database/gredis.LInsertOp":["AFTER","BEFORE"],"github.com/gogf/gf/v2/encoding/gjson.ContentType":["ini","json","js","properties","toml","xml","yaml","yml"],"github.com/gogf/gf/v2/internal/errors.StackMode":["brief","detail"],"github.com/gogf/gf/v2/net/ghttp.HandlerType":["handler","hook","middleware","object"],"github.com/gogf/gf/v2/net/ghttp.HookName":["HOOK_AFTER_OUTPUT","HOOK_AFTER_SERVE","HOOK_BEFORE_OUTPUT","HOOK_BEFORE_SERVE"],"github.com/gogf/gf/v2/net/ghttp/internal/graceful.ServerStatus":[1,0,1,0],"github.com/gogf/gf/v2/os/gctx.StrKey":["CtxKeyArgumentsIndex","CtxKeyCommand","CtxKeyParser"],"github.com/gogf/gf/v2/os/gfsnotify.Op":[16,1,4,8,2],"github.com/gogf/gf/v2/os/gmetric.MetricType":["Counter","Histogram","ObservableCounter","ObservableGauge","ObservableUpDownCounter","UpDownCounter"],"github.com/gogf/gf/v2/os/gstructs.RecursiveOption":[1,2,0],"github.com/gogf/gf/v2/text/gstr.CaseType":["Camel","CamelLower","Kebab","KebabScreaming","Lower","Snake","SnakeFirstUpper","SnakeScreaming"],"github.com/gogf/gf/v2/util/gconv/internal/converter.RecursiveType":["auto","true"],"kami/internal/consts.AgisoCallbackStatus":[16,2097152,4,2048,524288,256,32768,1048576],"kami/internal/consts.AppleAccountStatus":[1,5,6,8,4,2,9,7,3],"kami/internal/consts.AppleOrderItunesStatus":[30,31,40,32,10,12,11,14,20,13,15],"kami/internal/consts.AppleOrderOperation":["回调网关失败","订单正在处理中或者等待处理~","回调网关成功","iTunes回调次数超限","创建订单","账户余额查询","创建订单(人工处理订单,需人工介入)","手动修正金额成功","手动回调成功","正在处理","iTunes充值失败(错误未知)","iTunes退回订单等待重新调度","iTunes充值失败(卡密已兑换)","iTunes充值成功","iTunes处理成功(金额异议)","iTunes充值失败(卡密无效)","iTunes充值失败(商店匹配错误)","重复操作","重置订单状态","iTunes开始处理","iTunes充值订单处理超时","代充值账户密码错误,等待重新调度"],"kami/internal/consts.AppleRechargeOrderStatus":[13,15,6,14,5,0,16,4,2,9,12,10,11,7,8,1,3],"kami/internal/consts.CardAppleNotifyStatus":[2,1],"kami/internal/consts.CardCookieJDOrderStatus":["ckFailed","expired","init","failed","riskFailed","stockError","success","wrongFacePrice"],"kami/internal/consts.CardCookieUserClient":["android","ios","web"],"kami/internal/consts.CardJDNotifyStatus":[2,1],"kami/internal/consts.CardRedeemAccountCategory":["apple","cTrip","jd","originalJD","walmart"],"kami/internal/consts.CardRedeemCookieCategory":["jd"],"kami/internal/consts.CardRedeemCookieOrderStatus":["init","placeFail","placeSuccess"],"kami/internal/consts.CardRedeemCookieStatus":["dailyDisable","disable","expired","normal","tmpDisable"],"kami/internal/consts.CardRedeemType":["apple","jd","TMall"],"kami/internal/consts.CardTMallGameNotifyStatus":[2,1],"kami/internal/consts.CookieChangeType":["create","delete","fail","refresh fail","replaced","resume","suspend","update","use"],"kami/internal/consts.DeductionStatus":["fail","return","start","success"],"kami/internal/consts.EnumShopStatus":["bind_order_fail","bind_order_succeed","confirm_order","delivery_failed","delivery_succeed","evaluated_failed","evaluated_succeed","evaluation_bad","evaluation_good","paid","receive_callback"],"kami/internal/consts.JDAccountOperationStatus":["add","deduct","initialize","return"],"kami/internal/consts.JDAccountStatus":[0,5,3,6,2,4,1,7],"kami/internal/consts.JDOrderOperationStatus":[1,4,11,9,10,0,6,8,2,7,5,3],"kami/internal/consts.JDOrderStatus":[0,4,6,10,5,9,7,2,10,3,1,8],"kami/internal/consts.JdCookieStatus":[3,1,2,0],"kami/internal/consts.JdOrderChangeType":["bind","create","expire","invalid","pay","replace","send","unbind"],"kami/internal/consts.JdOrderStatus":[5,6,4,2,1,3],"kami/internal/consts.OrderChangeType":["ck_failed","create","expire","jd_order_failed","pay","rebind"],"kami/internal/consts.OrderStatus":[4,5,0,3,6,2,1],"kami/internal/consts.PageSize":[10,100,20,50],"kami/internal/consts.RechargeTMallGameAccount":["disable","enable"],"kami/internal/consts.RechargeTMallGameCallBackType":["confirm","evaluation"],"kami/internal/consts.RechargeTMallGameOrder":["bind_shop_succeed","callback_failed","callback_manual_failed_manuel","callback_succeed","callback_manual_succeed_manuel","evaluation","callback","created","delivery_failed","delivery_succeed","finished","finished_with_refund_succeed","finished_with_wrong_amount","finished_with_wrong_status","paid","refund_failed","wait_for_evaluation","without_fill_account","trade_rated_add_failed","trade_rated_add_succeed"],"kami/internal/consts.RechargeTMallGameShopSourceType":["agiso","tMall"],"kami/internal/consts.RedeemAccountOperationStatus":["add","deduct","initialize","pre_add","pre_deduct","return"],"kami/internal/consts.RedeemAccountStatus":[0,5,3,6,2,8,4,1,7],"kami/internal/consts.RedeemAccountUsedStatus":[false,true],"kami/internal/consts.RedeemCardScheduleStrategyType":["normal","random"],"kami/internal/consts.RedeemOrderCallbackStatus":[2,1],"kami/internal/consts.RedeemOrderCardCategory":["apple","cTrip","walmart"],"kami/internal/consts.RedeemOrderOperationStatus":[1,4,11,12,13,9,10,19,100,6,15,8,2,7,17,5,16,18,3,14],"kami/internal/consts.RedeemOrderStatus":[100,15,19,20,4,16,6,13,10,5,21,11,12,9,7,2,14,3,18,1,17,8],"kami/internal/consts.RestrictStatus":[0,1],"kami/internal/consts.StatusType":["no","yes"],"kami/internal/consts.StealStatus":[0,1],"kami/internal/consts.SysConfigDictType":["account_max_recharge_count","is_steal_apple_card","is_steal_merchant_card","redeem_allow_repeated","redeem_card_compensated_auto_callback","redeem_card_different_amount","redeem_card_different_fail_callback_allow","redeem_card_different_succeed_callback_allow","redeem_card_min_amount","redeem_card_rate","redeem_redeem_max_count_limit","redeem_schedule_strategy","steal_rule_status"],"kami/internal/consts.SysUserStatus":[0,1],"kami/internal/consts.TMallGameCallbackStatus":[0,1],"kami/internal/consts.TMallGameThirdPartyChannel":["12352","12351"],"kami/internal/consts.UserPaymentStatus":[0,1],"kami/internal/consts.UserPaymentTransactionType":["consumption","deduction_return","Manual Adjustment","deposit"],"kami/internal/model.LoginType":["admin","auth","merchant"],"kami/utility/cache.CachedEnum":["apple_account_target_account_id_by_account","apple_account_target_account_id_by_user","apple_account_tmp_stopped","itunes_account_tmp_stopped","redeem_account_target_id_by_account","redeem_account_target_account_id_by_ck_and_user","redeem_account_target_id_by_user","redeem_account_tmp_stopped","tMallGameOrderTid","tMallGameCacheKeyAgiso","tMallGameCacheKeyTMall"],"kami/utility/cache.PrefixEnum":["account_limiter_type","apple_duplicated_order","MachineCurrentAccountId","jd_account_query_cache_with_cookie","jd_account_query_cache","jd_card_extract","jd_payment_check","redeem_apple_account_limited_type","redeem_type","redeem_with_payment_type","trace","walmart_account_query_cache_with_cookie","walmart_account_query_cache"],"kami/utility/integration/originalJd.HttpStatus":[201,202,500,200,204,203,300,205,100],"kami/utility/integration/redeem.FailType":[1,2],"kami/utility/integration/redeem/ctrip.BindCardType":[113,105,110,114,104,100,115],"kami/utility/integration/redeem/jd.CallbackResponseStatus":[113,115,104,107,106,111,105,110,120,110,100,201,101],"kami/utility/integration/redeem/walmart.BindCardType":[1013,1006,1016,1100,1110,1005,1004,1000,1015],"kami/utility/integration/restriction.ConstsImpl":["csdn","dbip","ip66","iqiyi","idcd","meitu","olt","PCOnline","qjqq","vo"],"kami/utility/integration/tmall.EnumRateStatus":["RATE_BUYER_SELLER","RATE_BUYER_UNSELLER","RATE_UNBUYER","RATE_UNBUYER_SELLER","RATE_UNSELLER"],"kami/utility/integration/tmall.EnumTradeStatus":["PAID_FORBID_CONSIGN","PAY_PENDING","SELLER_CONSIGNED_PART","TRADE_BUYER_SIGNED","TRADE_CLOSED","TRADE_CLOSED_BY_TAOBAO","TRADE_FINISHED","TRADE_NO_CREATE_PAY","WAIT_BUYER_CONFIRM_GOODS","WAIT_BUYER_PAY","WAIT_PRE_AUTH_CONFIRM","WAIT_SELLER_SEND_GOODS"],"kami/utility/limiter.Type":["cardInfo:jd:account:cookie","cardInfo:jd:account:cookie:set","cardInfo:account:cookie:checker","cardInfo:account:cookie:set"],"kami/utility/pool.Key":["account_detect","apple_account_check_wallet","apple_card_callback","apple_card_t_mall_callback","jd_card_callback","jd_card_consume","redeem_card_callback","redeem_card_consume","t_mall_game_account_callback"]}`)
}