1
This commit is contained in:
@@ -48,77 +48,77 @@ type SystemTemp struct {
|
||||
}
|
||||
|
||||
type Apps struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
ID int `orm:"column(id)" 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"`
|
||||
UserID string `json:"user_id" db:"user_id"` //属于哪个账号的
|
||||
Name string `json:"name"` //应用名称
|
||||
Type int `json:"type"` //应用类型
|
||||
AppKey string `json:"app_key" db:"app_key"` //Key
|
||||
Status int `json:"status"` //状态
|
||||
Mobile string `json:"mobile"` //手机号
|
||||
UserID string `orm:"column(user_id)" json:"user_id" db:"user_id"` //属于哪个账号的
|
||||
Name string `json:"name"` //应用名称
|
||||
Type int `json:"type"` //应用类型
|
||||
AppKey string `json:"app_key" db:"app_key"` //Key
|
||||
Status int `json:"status"` //状态
|
||||
Mobile string `json:"mobile"` //手机号
|
||||
}
|
||||
|
||||
type MenuDetail struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
ID int `orm:"column(id)" 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"`
|
||||
MenuID int `json:"menu_id" db:"menu_id"`
|
||||
MenuID int `orm:"column(menu_id)" json:"menu_id" db:"menu_id"`
|
||||
Name string `json:"name"`
|
||||
Content string `json:"content"`
|
||||
URL string `json:"url" db:"url"`
|
||||
URL string `orm:"column(url)" json:"url" db:"url"`
|
||||
Method string `json:"method"`
|
||||
PublicParam string `json:"public_param" db:"public_param"`
|
||||
PrivateParam string `json:"private_param" db:"private_param"`
|
||||
CallParam string `json:"call_param" db:"call_param"`
|
||||
ReturnParam string `json:"return_param" db:"return_param"`
|
||||
ReturnEX string `json:"return_ex" db:"return_ex"`
|
||||
ReturnEX string `orm:"column(return_ex)" json:"return_ex" db:"return_ex"`
|
||||
}
|
||||
|
||||
//流量支出
|
||||
type SimFlowExpend struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
ID int `orm:"column(id)" 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"`
|
||||
IccID string `json:"icc_id" db:"icc_id"` //sim卡iccid
|
||||
Flow float64 `json:"flow"` //流量数
|
||||
FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位
|
||||
IccID string `orm:"column(icc_id)" json:"icc_id" db:"icc_id"` //sim卡iccid
|
||||
Flow float64 `json:"flow"` //流量数
|
||||
FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位
|
||||
}
|
||||
|
||||
//流量划入
|
||||
type SimFlowIncome struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
ID int `orm:"column(id)" 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"`
|
||||
IccID string `json:"icc_id" db:"icc_id"` //sim卡iccid
|
||||
Flow float64 `json:"flow"` //流量数
|
||||
FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位
|
||||
IncomeType int `json:"income_type" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的
|
||||
OrderID string `json:"order_id" db:"order_id"` //订单号
|
||||
IccID string `orm:"column(icc_id)" json:"icc_id" db:"icc_id"` //sim卡iccid
|
||||
Flow float64 `json:"flow"` //流量数
|
||||
FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位
|
||||
IncomeType int `json:"income_type" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的
|
||||
OrderID string `orm:"column(order_id)" json:"order_id" db:"order_id"` //订单号
|
||||
}
|
||||
|
||||
type PayOrder struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
ID int `orm:"column(id)" 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 int64 `json:"pay_price" db:"pay_price"` //支付金额
|
||||
TransactionID string `json:"transaction_id" db:"transaction_id"` // 支付成功后,支付方生成的事务ID
|
||||
OrderID string `orm:"column(order_id)" json:"order_id" db:"order_id"` //订单号
|
||||
UserID string `orm:"column(user_id)" 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 int64 `json:"pay_price" db:"pay_price"` //支付金额
|
||||
TransactionID string `orm:"column(transaction_id)" 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
|
||||
PrepayID string `orm:"column(prepay_id)" 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
|
||||
Comment string `json:"comment"` //备注
|
||||
ThingID string `orm:"column(thing_id)" json:"thing_id" db:"thing_id"` //订单充值项目ID
|
||||
TypeID string `orm:"column(type_id)" json:"type_id" db:"type_id"` //类型ID,充流量就是套餐对应的id
|
||||
}
|
||||
|
||||
type OrderPay struct {
|
||||
|
||||
Reference in New Issue
Block a user