mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 21:12:33 +00:00
53 lines
5.0 KiB
Go
53 lines
5.0 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNameRoadInfo = "road_info"
|
|
|
|
// RoadInfo 通道数据表
|
|
type RoadInfo struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
|
|
Status string `gorm:"column:status;not null;default:active通道状态" json:"status"`
|
|
RoadName string `gorm:"column:road_name;not null;comment:通道名称" json:"road_name"` // 通道名称
|
|
RoadUID string `gorm:"column:road_uid;not null;comment:通道唯一id" json:"road_uid"` // 通道唯一id
|
|
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
|
|
ProductName string `gorm:"column:product_name;not null;comment:上游产品名称" json:"product_name"` // 上游产品名称
|
|
ProductUID string `gorm:"column:product_uid;not null;comment:上游产品编号" json:"product_uid"` // 上游产品编号
|
|
PayType string `gorm:"column:pay_type;not null;comment:支付类型" json:"pay_type"` // 支付类型
|
|
BasicFee float64 `gorm:"column:basic_fee;not null;comment:基本汇率/成本汇率" json:"basic_fee"` // 基本汇率/成本汇率
|
|
SettleFee float64 `gorm:"column:settle_fee;not null;comment:代付手续费" json:"settle_fee"` // 代付手续费
|
|
TotalLimit float64 `gorm:"column:total_limit;not null;comment:通道总额度" json:"total_limit"` // 通道总额度
|
|
TodayLimit float64 `gorm:"column:today_limit;not null;comment:每日最多额度" json:"today_limit"` // 每日最多额度
|
|
SingleMinLimit float64 `gorm:"column:single_min_limit;not null;comment:单笔最小金额" json:"single_min_limit"` // 单笔最小金额
|
|
SingleMaxLimit float64 `gorm:"column:single_max_limit;not null;comment:单笔最大金额" json:"single_max_limit"` // 单笔最大金额
|
|
StarHour int32 `gorm:"column:star_hour;not null;comment:通道开始时间" json:"star_hour"` // 通道开始时间
|
|
EndHour int32 `gorm:"column:end_hour;not null;comment:通道结束时间" json:"end_hour"` // 通道结束时间
|
|
Params string `gorm:"column:params;comment:参数json格式" json:"params"` // 参数json格式
|
|
TodayIncome float64 `gorm:"column:today_income;not null;default:0.000;comment:当天的收入" json:"today_income"` // 当天的收入
|
|
TotalIncome float64 `gorm:"column:total_income;not null;default:0.000;comment:通道总收入" json:"total_income"` // 通道总收入
|
|
TodayProfit float64 `gorm:"column:today_profit;not null;default:0.000;comment:当天的收益" json:"today_profit"` // 当天的收益
|
|
TotalProfit float64 `gorm:"column:total_profit;not null;default:0.000;comment:通道总收益" json:"total_profit"` // 通道总收益
|
|
Balance float64 `gorm:"column:balance;not null;default:0.000;comment:通道的余额" json:"balance"` // 通道的余额
|
|
RequestAll int32 `gorm:"column:request_all;comment:请求总次数" json:"request_all"` // 请求总次数
|
|
RequestSuccess int32 `gorm:"column:request_success;comment:请求成功次数" json:"request_success"` // 请求成功次数
|
|
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
|
|
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
|
|
TodayRequestAll int32 `gorm:"column:today_request_all" json:"today_request_all"`
|
|
TodayRequestSuccess int32 `gorm:"column:today_request_success" json:"today_request_success"`
|
|
ProductCode string `gorm:"column:product_code;comment:产品编码" json:"product_code"` // 产品编码
|
|
PaymentHTML string `gorm:"column:payment_html;comment:支付页面模板,需要与前段对齐)" json:"payment_html"` // 支付页面模板,需要与前段对齐)
|
|
TransactionType string `gorm:"column:transaction_type" json:"transaction_type"`
|
|
IsAllowDifferentResend int32 `gorm:"column:is_allow_different_resend" json:"is_allow_different_resend"`
|
|
}
|
|
|
|
// TableName RoadInfo's table name
|
|
func (*RoadInfo) TableName() string {
|
|
return TableNameRoadInfo
|
|
}
|