package rchgordmod import ( "time" "go.mongodb.org/mongo-driver/bson/primitive" ) type UpserSelector struct { UID *uint64 `json:"uid,omitempty" bson:"uid,omitempty"` //用户id OID *string `json:"oid,omitempty" bson:"oid,omitempty"` //支付平台订单号 TraderId *string `json:"traderId,omitempty" bson:"traderId,omitempty"` //商户ID UserIP *string `json:"userIp,omitempty" bson:"userIp,omitempty"` //用户IP DevID *string `json:"devID,omitempty" bson:"devID,omitempty"` //设备id Name *string `json:"name,omitempty" bson:"name,omitempty"` //用户名称 Tel *string `json:"tel,omitempty" bson:"tel,omitempty"` //用户手机号 DevType *string `json:"devType,omitempty" bson:"devType,omitempty"` //设备系统类型 ios pc android Amount int64 `json:"amount" bson:"amount"` //金币数量 Money *int64 `json:"money,omitempty" bson:"money,omitempty"` //充值金额 单位角 PayMoney *int64 `json:"payMoney,omitempty" bson:"payMoney,omitempty"` //实际到账金额 RechargeType *string `json:"rechargeType,omitempty" bson:"rechargeType,omitempty"` //充值类型 Channel *string `json:"channel,omitempty" bson:"channel,omitempty"` //渠道类型 鲨鱼 金鱼 代充 Status *int `json:"status" bson:"status"` //1进行中 2付款失败 3付款成功 4已经退款 StatusDesc *string `json:"statusDesc,omitempty" bson:"statusDesc,omitempty"` //状态描述 NotifyTime *int64 `json:"notifyTime,omitempty" bson:"notifyTime,omitempty"` //第三方回调的时间 NotifyStatus *int `json:"notifyStatus,omitempty" bson:"notifyStatus,omitempty"` //通知第三方上分情况状态 LockStatus *int `json:"lockStatus,omitempty" bson:"lockStatus,omitempty"` //订单操作锁定状态 用户订单更新操作 FailureAt *time.Time `json:"failureAt,omitempty" bson:"failureAt,omitempty"` //回调失败时间 SuccessAt *time.Time `json:"successAt,omitempty" bson:"successAt,omitempty"` //回调成功时间 PaymentAt *time.Time `json:"paymentAt,omitempty" bson:"paymentAt,omitempty"` //支付时间 UpdatedAt *time.Time `json:"updatedAt,omitempty" bson:"updatedAt,omitempty"` //刷新时间 ProductType *int `json:"productType,omitempty" bson:"productType,omitempty"` //0站群 1棋牌 ChanShareMod *int `json:"chanShareMod,omitempty" bson:"chanShareMod,omitempty"` //渠道分成类型 0 不分成 (默认) 1 金币充值分成 2正常vip消费分成 DiscDoc DiscDoc `bson:",inline"` } type ReplaceEditSelector struct { OID *string `json:"oid,omitempty" bson:"oid,omitempty"` //支付平台订单号 PayMoney *int64 `json:"payMoney,omitempty" bson:"payMoney,omitempty"` //实际到账金额 Status *int `json:"status" bson:"status,omitempty"` //1进行中 2付款失败 3付款成功 4已经退款 StatusDesc *string `json:"statusDesc,omitempty" bson:"statusDesc,omitempty"` //状态描述 LockStatus *int `json:"lockStatus,omitempty" bson:"lockStatus,omitempty"` //订单操作锁定状态 用户订单更新操作 NotifyStatus *int `json:"notifyStatus,omitempty" bson:"notifyStatus,omitempty"` //通知第三方上分情况状态 Remark *string `json:"remark,omitempty" bson:"remark,omitempty"` //备注 VipID primitive.ObjectID `json:"vipID,omitempty" bson:"vipID,omitempty"` //是否是vip冲 hi ChanShareMod *int `json:"chanShareMod,omitempty" bson:"chanShareMod,omitempty"` //渠道分成类型 0 不分成 (默认) 1 金币充值分成 2正常vip消费分成 ProgressAt *time.Time `json:"progressAt,omitempty" bson:"progressAt,omitempty"` //第三方下单成功时间 FailureAt *time.Time `json:"failureAt,omitempty" bson:"failureAt,omitempty"` //回调失败时间 SuccessAt *time.Time `json:"successAt,omitempty" bson:"successAt,omitempty"` //回调成功时间 PaymentAt *time.Time `json:"paymentAt,omitempty" bson:"paymentAt,omitempty"` //支付时间 UpdatedAt time.Time `json:"updatedAt,omitempty" bson:"updatedAt,omitempty"` //刷新时间 ProductChildType *ChildType `json:"productChildType" bson:"productChildType"` //产品子类型 ServiceID primitive.ObjectID `json:"serviceId" bson:"serviceId"` //裸聊服务ID ProductID primitive.ObjectID `json:"productID" bson:"productID"` //产品ID } type EditSelector struct { OID *string `json:"oid,omitempty" bson:"oid,omitempty"` //支付平台订单号 PayMoney *int64 `json:"payMoney,omitempty" bson:"payMoney,omitempty"` //实际到账金额 Status int `json:"status" bson:"status"` //1进行中 2付款失败 3付款成功 4已经退款 StatusDesc *string `json:"statusDesc,omitempty" bson:"statusDesc,omitempty"` //状态描述 NotifyStatus *int `json:"notifyStatus,omitempty" bson:"notifyStatus,omitempty"` //通知第三方上分情况状态 ProgressAt *time.Time `json:"progressAt,omitempty" bson:"progressAt,omitempty"` //第三方下单成功时间 FailureAt *time.Time `json:"failureAt,omitempty" bson:"failureAt,omitempty"` //回调失败时间 SuccessAt *time.Time `json:"successAt,omitempty" bson:"successAt,omitempty"` //回调成功时间 PaymentAt *time.Time `json:"paymentAt,omitempty" bson:"paymentAt,omitempty"` //支付时间 RefundAt *time.Time `json:"refundAt,omitempty" bson:"refundAt,omitempty"` //退款时间 UpdatedAt time.Time `json:"updatedAt,omitempty" bson:"updatedAt,omitempty"` //刷新时间 Mode *string `json:"mode,omitempty" bson:"mode,omitempty"` //支付模式 Channel *string `json:"channel,omitempty" bson:"channel,omitempty"` //渠道类型 鲨鱼 金鱼 代充 Rate *string `json:"rate,omitempty" bson:"rate,omitempty"` //渠道费率 ProductType *int `json:"productType,omitempty" bson:"productType,omitempty"` //支付产品类型 0 站群 1 棋牌 ChanShareMod *int `json:"chanShareMod,omitempty" bson:"chanShareMod,omitempty"` //渠道分成类型 Remark *string `json:"remark,omitempty" bson:"remark,omitempty"` //备注 } type RechargToPayP struct { RechargeType string `json:"rechargeType" binding:"required"` //充值类型 ProductID primitive.ObjectID `json:"productID"` //充值金币类型id VipID primitive.ObjectID `json:"vipID"` //是否是vip冲 hi ProductType int `json:"productType"` //充值产品 0 站群 1 棋牌 Money int64 `json:"money"` //金额 ProductChildType ChildType `json:"productChildType"` //产品子类型 ServiceID primitive.ObjectID `json:"serviceId"` //裸聊服务ID } // RechargeOrder 账户充值流水 App返回给前端 type RechargeOrderAppRes struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` //流水id OID string `json:"oid" bson:"oid"` //支付平台订单号 UID uint64 `json:"uid" bson:"uid"` //用户id Name string `json:"name" bson:"name"` //用户名称 Tel string `json:"tel" bson:"tel"` //用户手机号 Money int64 `json:"money" bson:"money"` //充值金额 订单金额 李秋山确认 PayMoney int64 `json:"payMoney" bson:"payMoney"` //实际到账金额 用户实际支付金额 李秋山确认 Status int `json:"status" bson:"status"` //1进行中 2付款失败 3付款成功 4已经退款 StatusDesc string `json:"statusDesc" bson:"statusDesc"` //状态描述 Remark string `json:"remark" bson:"remark"` //备注 FailureAt time.Time `json:"failureAt" bson:"failureAt"` //回调失败时间 SuccessAt time.Time `json:"successAt" bson:"successAt"` //回调成功时间 CreatedAt time.Time `json:"createdAt" bson:"createdAt"` //创建时间 }