This commit is contained in:
2025-05-27 18:35:01 +08:00
parent ca66cc91d4
commit 79e1ba2616
115 changed files with 22039 additions and 1045 deletions

View File

@@ -9,11 +9,11 @@ import (
var ErrNotFound = sqlx.ErrNotFound
var ErrNoRowsUpdate = errors.New("update db no rows change")
var UserAuthTypeAppMobile string = "app_mobile" //平台内部
var UserAuthTypeAppWechat string = "app_wechat" //微信小程序
var UserAuthTypeH5Mobile string = "h5_mobile"
var UserAuthTypeWxMini string = "wx_mini"
var UserAuthTypeWxOfficialAccount string = "wx_official_account"
const (
UserAuthTypeMobile = "mobile" //手机号
UserAuthTypeWechatH5OpenID = "wechat_h5_openid" //微信H5 openid
UserAuthTypeWechatMiniOpenID = "wechat_mini_openid" //微信小程序 openid
)
const (
QueryStatePending = "pending"
@@ -21,3 +21,18 @@ const (
QueryStateSuccess = "success"
QueryStateProcessing = "processing"
)
const (
OrderStatusPending = "pending"
OrderStatusFailed = "failed"
OrderStatusPaid = "paid"
OrderStatusRefund = "refund"
OrderStatusRefunding = "refunding"
OrderStatusClosed = "closed"
)
const (
OrderRefundStatusPending = "pending"
OrderRefundStatusSuccess = "success"
OrderRefundStatusFailed = "failed"
OrderRefundStatusClosed = "closed"
)