aa
This commit is contained in:
@@ -36,6 +36,17 @@ const (
|
||||
FieldID = "id"
|
||||
)
|
||||
|
||||
const (
|
||||
OrderTypeFlow = "flow"
|
||||
|
||||
OrderOriginWxMini = "weixinmini"
|
||||
OrderOriginOpenAPI = "openAPI"
|
||||
)
|
||||
|
||||
const (
|
||||
ConfigTypeSys = "Sys"
|
||||
)
|
||||
|
||||
var (
|
||||
FieldNormalMap = map[string]string{
|
||||
FieldDeletedAt: "删除时间",
|
||||
@@ -180,3 +191,32 @@ type SimFlowIncome struct {
|
||||
FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位
|
||||
IncomeType int `json:"income_type" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的
|
||||
}
|
||||
|
||||
type PayOrder struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
CreatedAt *time.Time `json:"created_at" db:"created_at"`
|
||||
OrderID string `json:"order_id" db:"order_id"` //订单号
|
||||
UserID string `json:"user_id" db:"user_id"` //用户ID
|
||||
OrderType string `json:"order_type" db:"order_type"` //订单类型,流量充值等
|
||||
Origin string `json:"origin"` //订单来源,小程序,开放后台
|
||||
Status int `json:"status"` //订单状态,待支付2,已支付5,支付成功110,支付失败115
|
||||
PayPrice int `json:"pay_price" db:"pay_price"` //支付金额
|
||||
TransactionID string `json:"transaction_id" db:"transaction_id"` // 支付成功后,支付方生成的事务ID
|
||||
PayFinishedAt *time.Time `json:"pay_finished_at" db:"pay_finished_at"`
|
||||
PrepayID string `json:"prepay_id" db:"prepay_id"` // 下单后,支付前,支付方生成的事务ID
|
||||
OriginalData string `json:"original_data" db:"original_data"`
|
||||
Comment string `json:"comment"` //备注
|
||||
ThingID string `json:"thing_id" db:"thing_id"` //订单充值项目ID
|
||||
TypeID string `json:"type_id" db:"type_id"` //类型ID,充流量就是套餐对应的id
|
||||
}
|
||||
|
||||
type NewConfig struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
CreatedAt *time.Time `json:"created_at" db:"created_at"`
|
||||
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
|
||||
LastOperator string `json:"last_operator" db:"last_operator"`
|
||||
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
||||
Type string `json:"type"`
|
||||
Key string `json:"key"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user