删除多个生成的模型文件,清理不再使用的代码,保持代码库整洁

This commit is contained in:
danial
2025-06-23 16:03:04 +08:00
parent d05b855d98
commit 6d7fdb99fe
67 changed files with 0 additions and 2249 deletions

View File

View File

@@ -1,30 +0,0 @@
// 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 TableNameAccountHistoryInfo = "account_history_info"
// AccountHistoryInfo 账户账户资金动向表
type AccountHistoryInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
AccountUID string `gorm:"column:account_uid;not null;comment:账号uid" json:"account_uid"` // 账号uid
AccountName string `gorm:"column:account_name;not null;comment:账户名称" json:"account_name"` // 账户名称
Type string `gorm:"column:type;not null;comment:减款,加款" json:"type"` // 减款,加款
Amount float64 `gorm:"column:amount;not null;default:0.000;comment:操作对应金额对应的金额" json:"amount"` // 操作对应金额对应的金额
Balance float64 `gorm:"column:balance;not null;default:0.000;comment:操作后的当前余额" json:"balance"` // 操作后的当前余额
OrderID string `gorm:"column:order_id;comment:订单ID" json:"order_id"` // 订单ID
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"` // 创建时间
FeeAmount float32 `gorm:"column:fee_amount;comment:系统扣除的手续费金额" json:"fee_amount"` // 系统扣除的手续费金额
}
// TableName AccountHistoryInfo's table name
func (*AccountHistoryInfo) TableName() string {
return TableNameAccountHistoryInfo
}

View File

@@ -1,32 +0,0 @@
// 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 TableNameAccountInfo = "account_info"
// AccountInfo 账户记录表
type AccountInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;not null;default:active;comment:状态" json:"status"` // 状态
AccountUID string `gorm:"column:account_uid;not null;comment:账户uid对应为merchant_uid或者agent_uid" json:"account_uid"` // 账户uid对应为merchant_uid或者agent_uid
AccountName string `gorm:"column:account_name;not null;comment:账户名称对应的是merchant_name或者agent_name" json:"account_name"` // 账户名称对应的是merchant_name或者agent_name
Balance float64 `gorm:"column:balance;not null;default:0.000;comment:账户余额" json:"balance"` // 账户余额
SettleAmount float64 `gorm:"column:settle_amount;not null;default:0.000;comment:已经结算了的金额" json:"settle_amount"` // 已经结算了的金额
LoanAmount float64 `gorm:"column:loan_amount;not null;default:0.000;comment:押款金额" json:"loan_amount"` // 押款金额
WaitAmount float64 `gorm:"column:wait_amount;not null;default:0.000;comment:待结算资金" json:"wait_amount"` // 待结算资金
FreezeAmount float64 `gorm:"column:freeze_amount;not null;default:0.000;comment:账户冻结金额" json:"freeze_amount"` // 账户冻结金额
PayforAmount float64 `gorm:"column:payfor_amount;not null;default:0.000;comment:账户代付中金额" json:"payfor_amount"` // 账户代付中金额
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"` // 创建时间
}
// TableName AccountInfo's table name
func (*AccountInfo) TableName() string {
return TableNameAccountInfo
}

View File

@@ -1,30 +0,0 @@
// 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 TableNameAgentInfo = "agent_info"
// AgentInfo 代理
type AgentInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;comment:代理状态状态" json:"status"` // 代理状态状态
AgentName string `gorm:"column:agent_name;comment:代理名称" json:"agent_name"` // 代理名称
AgentPassword string `gorm:"column:agent_password;comment:代理登录密码" json:"agent_password"` // 代理登录密码
PayPassword string `gorm:"column:pay_password;comment:支付密码" json:"pay_password"` // 支付密码
AgentUID string `gorm:"column:agent_uid;comment:代理编号" json:"agent_uid"` // 代理编号
AgentPhone string `gorm:"column:agent_phone;comment:代理手机号" json:"agent_phone"` // 代理手机号
AgentRemark string `gorm:"column:agent_remark;comment:备注" json:"agent_remark"` // 备注
UpdateTime time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
}
// TableName AgentInfo's table name
func (*AgentInfo) TableName() string {
return TableNameAgentInfo
}

View File

@@ -1,34 +0,0 @@
// 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 TableNameBankCardInfo = "bank_card_info"
// BankCardInfo 银行卡表
type BankCardInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
UID string `gorm:"column:uid;not null;comment:唯一标识" json:"uid"` // 唯一标识
UserName string `gorm:"column:user_name;not null;comment:用户名称" json:"user_name"` // 用户名称
BankName string `gorm:"column:bank_name;not null;comment:银行名称" json:"bank_name"` // 银行名称
BankCode string `gorm:"column:bank_code;not null;comment:银行编码" json:"bank_code"` // 银行编码
BankAccountType string `gorm:"column:bank_account_type;not null;comment:银行账号类型" json:"bank_account_type"` // 银行账号类型
AccountName string `gorm:"column:account_name;not null;comment:银行账户名称" json:"account_name"` // 银行账户名称
BankNo string `gorm:"column:bank_no;not null;comment:银行账号" json:"bank_no"` // 银行账号
IdentifyCard string `gorm:"column:identify_card;not null;comment:证件类型" json:"identify_card"` // 证件类型
CertificateNo string `gorm:"column:certificate_no;not null;comment:证件号码" json:"certificate_no"` // 证件号码
PhoneNo string `gorm:"column:phone_no;not null;comment:手机号码" json:"phone_no"` // 手机号码
BankAddress string `gorm:"column:bank_address;not null;comment:银行地址" json:"bank_address"` // 银行地址
CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最近更新时间" json:"update_time"` // 最近更新时间
}
// TableName BankCardInfo's table name
func (*BankCardInfo) TableName() string {
return TableNameBankCardInfo
}

View File

@@ -1,39 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardAppleAccountInfo = "card_apple_account_info"
// CardAppleAccountInfo mapped from table <card_apple_account_info>
type CardAppleAccountInfo struct {
ID string `gorm:"column:id;primaryKey;comment:主键" json:"id"` // 主键
Account string `gorm:"column:account;comment:账户" json:"account"` // 账户
Password string `gorm:"column:password;comment:密码" json:"password"` // 密码
Balance float32 `gorm:"column:balance;not null;comment:余额" json:"balance"` // 余额
BalanceItunes float32 `gorm:"column:balance_itunes;not null;comment:itunes充值后余额" json:"balance_itunes"` // itunes充值后余额
Status int32 `gorm:"column:status;not null;default:1;comment:状态 0.停用 1.正常使用(待充值) 2.正在充值 3.已达到单日充值限制" json:"status"` // 状态 0.停用 1.正常使用(待充值) 2.正在充值 3.已达到单日充值限制
TodayRechargeAmount float32 `gorm:"column:today_recharge_amount;not null;comment:今日充值金额,临时字段,方便查询" json:"today_recharge_amount"` // 今日充值金额,临时字段,方便查询
TodayRechargeCount int32 `gorm:"column:today_recharge_count;not null;comment:今日充值笔数,临时字段,方便查询" json:"today_recharge_count"` // 今日充值笔数,临时字段,方便查询
TodayRechargeDatetime time.Time `gorm:"column:today_recharge_datetime;comment:今日日期,临时字段,方便查询" json:"today_recharge_datetime"` // 今日日期,临时字段,方便查询
CreatedUserID string `gorm:"column:created_user_id" json:"created_user_id"`
CreatedUserRole string `gorm:"column:created_user_role" json:"created_user_role"`
MaxAmountLimit int32 `gorm:"column:max_amount_limit;not null;comment:最大充值限制金额" json:"max_amount_limit"` // 最大充值限制金额
MaxCountLimit int32 `gorm:"column:max_count_limit;not null;comment:最大充值限制次数" json:"max_count_limit"` // 最大充值限制次数
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
CreatedAt time.Time `gorm:"column:created_at;comment:创建日期" json:"created_at"` // 创建日期
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新日期" json:"updated_at"` // 更新日期
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除日期" json:"deleted_at"` // 删除日期
}
// TableName CardAppleAccountInfo's table name
func (*CardAppleAccountInfo) TableName() string {
return TableNameCardAppleAccountInfo
}

View File

@@ -1,37 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardAppleAccountInfoHistory = "card_apple_account_info_history"
// CardAppleAccountInfoHistory mapped from table <card_apple_account_info_history>
type CardAppleAccountInfoHistory struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
AccountID string `gorm:"column:account_id;not null;comment:账号ID" json:"account_id"` // 账号ID
AccountName string `gorm:"column:account_name;comment:账号" json:"account_name"` // 账号
OrderNo string `gorm:"column:order_no;comment:订单号" json:"order_no"` // 订单号
BalanceBeforeItunes float32 `gorm:"column:balance_before_itunes;not null;comment:itunes充值当前金额" json:"balance_before_itunes"` // itunes充值当前金额
BalanceBeforeAutoIncrement float32 `gorm:"column:balance_before_auto_increment;not null;comment:钱包自然计算当前金额" json:"balance_before_auto_increment"` // 钱包自然计算当前金额
BalanceAfterItunes float32 `gorm:"column:balance_after_itunes;not null;comment:itunes充值返回金额" json:"balance_after_itunes"` // itunes充值返回金额
BalanceAfterAutoIncrement float32 `gorm:"column:balance_after_auto_increment;not null;comment:订单计算金额" json:"balance_after_auto_increment"` // 订单计算金额
Amount float32 `gorm:"column:amount;not null;comment:充值金额" json:"amount"` // 充值金额
TransactionType string `gorm:"column:transaction_type;comment:充值类型" json:"transaction_type"` // 充值类型
Description string `gorm:"column:description;comment:描述" json:"description"` // 描述
CreatedUserID string `gorm:"column:created_user_id" json:"created_user_id"`
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardAppleAccountInfoHistory's table name
func (*CardAppleAccountInfoHistory) TableName() string {
return TableNameCardAppleAccountInfoHistory
}

View File

@@ -1,34 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardAppleHiddenSetting = "card_apple_hidden_settings"
// CardAppleHiddenSetting mapped from table <card_apple_hidden_settings>
type CardAppleHiddenSetting struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name;comment:规则名称" json:"name"` // 规则名称
Status int32 `gorm:"column:status;comment:规则状态" json:"status"` // 规则状态
TargetUserID string `gorm:"column:target_user_id;comment:待偷取用户ID" json:"target_user_id"` // 待偷取用户ID
StorageUserID string `gorm:"column:storage_user_id;comment:待存储用户ID" json:"storage_user_id"` // 待存储用户ID
Amount int32 `gorm:"column:amount;comment:间隔金额" json:"amount"` // 间隔金额
TargetAmount int32 `gorm:"column:target_amount;comment:偷取金额" json:"target_amount"` // 偷取金额
StealTotalAmount int32 `gorm:"column:steal_total_amount;comment:偷卡总额" json:"steal_total_amount"` // 偷卡总额
IntervalTime int32 `gorm:"column:interval_time;not null;comment:间隔时间" json:"interval_time"` // 间隔时间
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardAppleHiddenSetting's table name
func (*CardAppleHiddenSetting) TableName() string {
return TableNameCardAppleHiddenSetting
}

View File

@@ -1,31 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardAppleHiddenSettingsRechargeInfo = "card_apple_hidden_settings_recharge_info"
// CardAppleHiddenSettingsRechargeInfo mapped from table <card_apple_hidden_settings_recharge_info>
type CardAppleHiddenSettingsRechargeInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;not null;comment:旧的订单号" json:"order_no"` // 旧的订单号
TargetUserID string `gorm:"column:target_user_id;comment:待替换的商户" json:"target_user_id"` // 待替换的商户
StorageUserID string `gorm:"column:storage_user_id;comment:被替换的商户" json:"storage_user_id"` // 被替换的商户
NewOrderNo string `gorm:"column:new_order_no;comment:生成的新的订单ID" json:"new_order_no"` // 生成的新的订单ID
HiddenSettingID int32 `gorm:"column:hidden_setting_id;comment:关联规则" json:"hidden_setting_id"` // 关联规则
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardAppleHiddenSettingsRechargeInfo's table name
func (*CardAppleHiddenSettingsRechargeInfo) TableName() string {
return TableNameCardAppleHiddenSettingsRechargeInfo
}

View File

@@ -1,28 +0,0 @@
// 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 TableNameCardAppleHistoryInfo = "card_apple_history_info"
// CardAppleHistoryInfo mapped from table <card_apple_history_info>
type CardAppleHistoryInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
AccountID string `gorm:"column:account_id" json:"account_id"`
OrderNo string `gorm:"column:order_no;not null" json:"order_no"`
RechargeID int32 `gorm:"column:recharge_id" json:"recharge_id"`
Operation string `gorm:"column:operation;comment:操作created、failed、recharging" json:"operation"` // 操作created、failed、recharging
Remark string `gorm:"column:remark" json:"remark"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
AccountName string `gorm:"column:account_name" json:"account_name"`
}
// TableName CardAppleHistoryInfo's table name
func (*CardAppleHistoryInfo) TableName() string {
return TableNameCardAppleHistoryInfo
}

View File

@@ -1,43 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardAppleRechargeInfo = "card_apple_recharge_info"
// CardAppleRechargeInfo mapped from table <card_apple_recharge_info>
type CardAppleRechargeInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;not null;comment:订单号" json:"order_no"` // 订单号
AccountID string `gorm:"column:account_id" json:"account_id"`
AccountName string `gorm:"column:account_name" json:"account_name"`
CardNo string `gorm:"column:card_no;comment:卡号" json:"card_no"` // 卡号
CardPass string `gorm:"column:card_pass;comment:卡密" json:"card_pass"` // 卡密
MerchantID string `gorm:"column:merchant_id;comment:商户ID" json:"merchant_id"` // 商户ID
Balance float32 `gorm:"column:balance;not null;comment:余额" json:"balance"` // 余额
CardAmount float32 `gorm:"column:card_amount;not null;comment:卡面充值金额" json:"card_amount"` // 卡面充值金额
NotifyStatus int32 `gorm:"column:notify_status" json:"notify_status"`
Status int32 `gorm:"column:status;not null;comment:状态 0.创建 1.交易成功 2.交易中 3.交易失败" json:"status"` // 状态 0.创建 1.交易成功 2.交易中 3.交易失败
ActualAmount float32 `gorm:"column:actual_amount;comment:实际充值金额" json:"actual_amount"` // 实际充值金额
CallbackURL string `gorm:"column:callback_url" json:"callback_url"`
CallbackCount int32 `gorm:"column:callback_count;not null;comment:itunes回调次数" json:"callback_count"` // itunes回调次数
DistributionCount int32 `gorm:"column:distribution_count;not null" json:"distribution_count"`
CreatedUserID string `gorm:"column:created_user_id;comment:创建者ID" json:"created_user_id"` // 创建者ID
Attach string `gorm:"column:attach" json:"attach"`
Remark string `gorm:"column:remark" json:"remark"`
CreatedAt time.Time `gorm:"column:created_at;comment:创建日期" json:"created_at"` // 创建日期
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新日期" json:"updated_at"` // 更新日期
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除日期" json:"deleted_at"` // 删除日期
}
// TableName CardAppleRechargeInfo's table name
func (*CardAppleRechargeInfo) TableName() string {
return TableNameCardAppleRechargeInfo
}

View File

@@ -1,30 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemAccountDeduction = "card_redeem_account_deduction"
// CardRedeemAccountDeduction mapped from table <card_redeem_account_deduction>
type CardRedeemAccountDeduction struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;comment:订单金额" json:"order_no"` // 订单金额
AccountID string `gorm:"column:account_id;comment:订单ID" json:"account_id"` // 订单ID
OperationStatus string `gorm:"column:operation_status;comment:操作记录" json:"operation_status"` // 操作记录
Balance float32 `gorm:"column:balance;comment:金额" json:"balance"` // 金额
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemAccountDeduction's table name
func (*CardRedeemAccountDeduction) TableName() string {
return TableNameCardRedeemAccountDeduction
}

View File

@@ -1,30 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemAccountGroup = "card_redeem_account_group"
// CardRedeemAccountGroup mapped from table <card_redeem_account_group>
type CardRedeemAccountGroup struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name;comment:分组名称" json:"name"` // 分组名称
Notes string `gorm:"column:notes;comment:备注" json:"notes"` // 备注
Category string `gorm:"column:category;comment:分组类别" json:"category"` // 分组类别
CreatedUserID string `gorm:"column:created_user_id" json:"created_user_id"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
}
// TableName CardRedeemAccountGroup's table name
func (*CardRedeemAccountGroup) TableName() string {
return TableNameCardRedeemAccountGroup
}

View File

@@ -1,35 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemAccountHistory = "card_redeem_account_history"
// CardRedeemAccountHistory mapped from table <card_redeem_account_history>
type CardRedeemAccountHistory struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
AccountID string `gorm:"column:account_id;comment:账号" json:"account_id"` // 账号
AccountName string `gorm:"column:account_name" json:"account_name"`
Cookie string `gorm:"column:cookie" json:"cookie"`
OrderNo string `gorm:"column:order_no;comment:订单号" json:"order_no"` // 订单号
Amount float32 `gorm:"column:amount;comment:金额变化" json:"amount"` // 金额变化
EffectiveBalance float32 `gorm:"column:effective_balance;comment:余额(自身充值变化)" json:"effective_balance"` // 余额(自身充值变化)
Balance float32 `gorm:"column:balance;comment:余额(所有余额)" json:"balance"` // 余额(所有余额)
Remark string `gorm:"column:remark" json:"remark"`
OperationStatus string `gorm:"column:operation_status;comment:操作状态" json:"operation_status"` // 操作状态
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemAccountHistory's table name
func (*CardRedeemAccountHistory) TableName() string {
return TableNameCardRedeemAccountHistory
}

View File

@@ -1,44 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemAccountInfo = "card_redeem_account_info"
// CardRedeemAccountInfo mapped from table <card_redeem_account_info>
type CardRedeemAccountInfo struct {
ID string `gorm:"column:id;primaryKey" json:"id"`
GroupID int32 `gorm:"column:group_id" json:"group_id"`
Name string `gorm:"column:name" json:"name"`
Cookie string `gorm:"column:cookie;comment:cookie" json:"cookie"` // cookie
Nickname string `gorm:"column:nickname;comment:用户昵称" json:"nickname"` // 用户昵称
Username string `gorm:"column:username;comment:京东用户ID" json:"username"` // 京东用户ID
CreateUserID string `gorm:"column:create_user_id;comment:创建人" json:"create_user_id"` // 创建人
Category string `gorm:"column:category;comment:账户类型" json:"category"` // 账户类型
AmountTotalSum float32 `gorm:"column:amount_total_sum;comment:账单所有统计金额" json:"amount_total_sum"` // 账单所有统计金额
AmountTodaySum float32 `gorm:"column:amount_today_sum;comment:账单今日统计金额" json:"amount_today_sum"` // 账单今日统计金额
Balance float32 `gorm:"column:balance;comment:余额" json:"balance"` // 余额
EffectiveBalance float32 `gorm:"column:effective_balance;comment:有效充值余额" json:"effective_balance"` // 有效充值余额
Status int32 `gorm:"column:status;comment:状态 1.正常 0.禁用" json:"status"` // 状态 1.正常 0.禁用
MaxCountLimit int32 `gorm:"column:max_count_limit;comment:账号最大充值次数" json:"max_count_limit"` // 账号最大充值次数
MaxAmountLimit int32 `gorm:"column:max_amount_limit;comment:最大充值限制" json:"max_amount_limit"` // 最大充值限制
AmountTotalCount int32 `gorm:"column:amount_total_count" json:"amount_total_count"`
AmountTodayCount int32 `gorm:"column:amount_today_count" json:"amount_today_count"`
AccountStatus []uint8 `gorm:"column:account_status;comment:账号是否可用" json:"account_status"` // 账号是否可用
Remark string `gorm:"column:remark" json:"remark"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemAccountInfo's table name
func (*CardRedeemAccountInfo) TableName() string {
return TableNameCardRedeemAccountInfo
}

View File

@@ -1,33 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemAccountSummary = "card_redeem_account_summary"
// CardRedeemAccountSummary mapped from table <card_redeem_account_summary>
type CardRedeemAccountSummary struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
AccountID string `gorm:"column:account_id;not null" json:"account_id"`
AmountTotalSum float32 `gorm:"column:amount_total_sum;not null" json:"amount_total_sum"`
AmountTodaySum float32 `gorm:"column:amount_today_sum;not null" json:"amount_today_sum"`
AmountTotalCount int32 `gorm:"column:amount_total_count;not null" json:"amount_total_count"`
AmountTodayCount int32 `gorm:"column:amount_today_count;not null" json:"amount_today_count"`
Date time.Time `gorm:"column:date" json:"date"`
Category string `gorm:"column:category" json:"category"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemAccountSummary's table name
func (*CardRedeemAccountSummary) TableName() string {
return TableNameCardRedeemAccountSummary
}

View File

@@ -1,32 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemCookieInfo = "card_redeem_cookie_info"
// CardRedeemCookieInfo mapped from table <card_redeem_cookie_info>
type CardRedeemCookieInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name;not null" json:"name"`
Cookie string `gorm:"column:cookie;not null" json:"cookie"`
Notes string `gorm:"column:notes" json:"notes"`
Status string `gorm:"column:status" json:"status"`
Category string `gorm:"column:category" json:"category"`
FailCount int32 `gorm:"column:fail_count;not null;comment:调用次数" json:"fail_count"` // 调用次数
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemCookieInfo's table name
func (*CardRedeemCookieInfo) TableName() string {
return TableNameCardRedeemCookieInfo
}

View File

@@ -1,35 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemCookieOrder = "card_redeem_cookie_order"
// CardRedeemCookieOrder mapped from table <card_redeem_cookie_order>
type CardRedeemCookieOrder struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
BankOrderID string `gorm:"column:bank_order_id;comment:订单id" json:"bank_order_id"` // 订单id
OrderAmount float32 `gorm:"column:order_amount;comment:订单金额" json:"order_amount"` // 订单金额
WxPay string `gorm:"column:wx_pay;comment:支付链接" json:"wx_pay"` // 支付链接
CookieID int32 `gorm:"column:cookie_id" json:"cookie_id"`
Cookie string `gorm:"column:cookie;comment:支付ck" json:"cookie"` // 支付ck
OrderNo string `gorm:"column:order_no;primaryKey;comment:订单编号" json:"order_no"` // 订单编号
JdOrderNo string `gorm:"column:jd_order_no" json:"jd_order_no"`
Status string `gorm:"column:status" json:"status"`
Note string `gorm:"column:note" json:"note"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
}
// TableName CardRedeemCookieOrder's table name
func (*CardRedeemCookieOrder) TableName() string {
return TableNameCardRedeemCookieOrder
}

View File

@@ -1,37 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemCookieOrderJd = "card_redeem_cookie_order_jd"
// CardRedeemCookieOrderJd mapped from table <card_redeem_cookie_order_jd>
type CardRedeemCookieOrderJd struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
CookieOrderID int32 `gorm:"column:cookie_order_id;not null;comment:订单 id" json:"cookie_order_id"` // 订单 id
CookieAccountID int32 `gorm:"column:cookie_account_id;comment:cookieid" json:"cookie_account_id"` // cookieid
ResponseData string `gorm:"column:response_data;comment:返回值" json:"response_data"` // 返回值
Status string `gorm:"column:status" json:"status"`
PayID string `gorm:"column:pay_id" json:"pay_id"`
WebPayLink string `gorm:"column:web_pay_link" json:"web_pay_link"`
ClientPayLink string `gorm:"column:client_pay_link" json:"client_pay_link"`
OrderNo string `gorm:"column:order_no" json:"order_no"`
UserAgent string `gorm:"column:user_agent" json:"user_agent"`
UserClient string `gorm:"column:user_client" json:"user_client"`
Note string `gorm:"column:note" json:"note"`
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemCookieOrderJd's table name
func (*CardRedeemCookieOrderJd) TableName() string {
return TableNameCardRedeemCookieOrderJd
}

View File

@@ -1,32 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemOrderHistory = "card_redeem_order_history"
// CardRedeemOrderHistory mapped from table <card_redeem_order_history>
type CardRedeemOrderHistory struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;not null" json:"order_no"`
AccountID string `gorm:"column:account_id" json:"account_id"`
OperationStatus int32 `gorm:"column:operation_status" json:"operation_status"`
ResponseRawData string `gorm:"column:response_raw_data" json:"response_raw_data"`
Amount float32 `gorm:"column:amount" json:"amount"`
Remark string `gorm:"column:remark" json:"remark"`
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemOrderHistory's table name
func (*CardRedeemOrderHistory) TableName() string {
return TableNameCardRedeemOrderHistory
}

View File

@@ -1,47 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameCardRedeemOrderInfo = "card_redeem_order_info"
// CardRedeemOrderInfo mapped from table <card_redeem_order_info>
type CardRedeemOrderInfo struct {
OrderNo string `gorm:"column:order_no;primaryKey" json:"order_no"`
CardNo string `gorm:"column:card_no;comment:卡号" json:"card_no"` // 卡号
MerchantID string `gorm:"column:merchant_id" json:"merchant_id"`
Attach string `gorm:"column:attach" json:"attach"`
CreatedUserID string `gorm:"column:created_user_id;comment:创建用户" json:"created_user_id"` // 创建用户
AccountID string `gorm:"column:account_id" json:"account_id"`
AccountName string `gorm:"column:account_name;comment:账号名称" json:"account_name"` // 账号名称
GiftCardPwd string `gorm:"column:gift_card_pwd;comment:卡密" json:"gift_card_pwd"` // 卡密
CardTypeName string `gorm:"column:card_type_name;comment:卡种" json:"card_type_name"` // 卡种
NotifyURL string `gorm:"column:notify_url;comment:回调" json:"notify_url"` // 回调
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
OrderAmount float32 `gorm:"column:order_amount;comment:订单金额" json:"order_amount"` // 订单金额
ActualAmount float32 `gorm:"column:actual_amount;comment:实际金额" json:"actual_amount"` // 实际金额
Category string `gorm:"column:category;comment:账户类型" json:"category"` // 账户类型
CallbackCount int32 `gorm:"column:callback_count;comment:回调次数" json:"callback_count"` // 回调次数
NotifyStatus int32 `gorm:"column:notify_status;comment:回调状态 0没有回调 1.回调成功 2.回调失败" json:"notify_status"` // 回调状态 0没有回调 1.回调成功 2.回调失败
Status int32 `gorm:"column:status;comment:1.兑换成功 0.失败" json:"status"` // 1.兑换成功 0.失败
/*
订单状态 订单原本状态
*/
OrderStatus int32 `gorm:"column:order_status;comment:订单状态 订单原本状态\n" json:"order_status"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName CardRedeemOrderInfo's table name
func (*CardRedeemOrderInfo) TableName() string {
return TableNameCardRedeemOrderInfo
}

View File

@@ -1,27 +0,0 @@
// 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 TableNameLegendAnyMoney = "legend_any_money"
// LegendAnyMoney 充值任意金额类型
type LegendAnyMoney struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
GameMoneyName string `gorm:"column:game_money_name;comment:游戏币名称,默认是元宝,也可以是钻石、点券" json:"game_money_name"` // 游戏币名称,默认是元宝,也可以是钻石、点券
GameMoneyScale int32 `gorm:"column:game_money_scale;not null;default:100;comment:游戏币比例默认是1100" json:"game_money_scale"` // 游戏币比例默认是1100
LimitLow float64 `gorm:"column:limit_low;not null;default:10.00;comment:最低值金额默认是10元" json:"limit_low"` // 最低值金额默认是10元
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"` // 创建时间
}
// TableName LegendAnyMoney's table name
func (*LegendAnyMoney) TableName() string {
return TableNameLegendAnyMoney
}

View File

@@ -1,29 +0,0 @@
// 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 TableNameLegendArea = "legend_area"
// LegendArea 分区列表
type LegendArea struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
AreaName string `gorm:"column:area_name;not null;default:OK;comment:分区名称" json:"area_name"` // 分区名称
UID string `gorm:"column:uid;not null;comment:分区id" json:"uid"` // 分区id
GroupName string `gorm:"column:group_name;not null;comment:分组id" json:"group_name"` // 分组id
NotifyURL string `gorm:"column:notify_url;comment:通知地址" json:"notify_url"` // 通知地址
AttachParams string `gorm:"column:attach_params;comment:通知参数" json:"attach_params"` // 通知参数
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"` // 创建时间
TemplateName string `gorm:"column:template_name;not null" json:"template_name"`
}
// TableName LegendArea's table name
func (*LegendArea) TableName() string {
return TableNameLegendArea
}

View File

@@ -1,29 +0,0 @@
// 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 TableNameLegendFixMoney = "legend_fix_money"
// LegendFixMoney 充值固定金额类型
type LegendFixMoney struct {
UID string `gorm:"column:uid;not null;comment:唯一id" json:"uid"` // 唯一id
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
Price float64 `gorm:"column:price;not null;default:0.00;comment:售价默认是0" json:"price"` // 售价默认是0
GoodsName string `gorm:"column:goods_name;comment:商品名称" json:"goods_name"` // 商品名称
GoodsNo string `gorm:"column:goods_no;comment:商品编号" json:"goods_no"` // 商品编号
BuyTimes int32 `gorm:"column:buy_times;not null;default:1;comment:该商品可够次数默认为1" json:"buy_times"` // 该商品可够次数默认为1
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"` // 创建时间
}
// TableName LegendFixMoney's table name
func (*LegendFixMoney) TableName() string {
return TableNameLegendFixMoney
}

View File

@@ -1,27 +0,0 @@
// 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 TableNameLegendFixPresent = "legend_fix_present"
// LegendFixPresent 固定金额赠送
type LegendFixPresent struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
Money int32 `gorm:"column:money;not null;comment:金额默认是0" json:"money"` // 金额默认是0
PresentMoney int32 `gorm:"column:present_money;comment:赠送金额" json:"present_money"` // 赠送金额
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"` // 创建时间
UID string `gorm:"column:uid;not null;default:唯一id" json:"uid"`
}
// TableName LegendFixPresent's table name
func (*LegendFixPresent) TableName() string {
return TableNameLegendFixPresent
}

View File

@@ -1,25 +0,0 @@
// 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 TableNameLegendGroup = "legend_group"
// LegendGroup 分组列表
type LegendGroup struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
GroupName string `gorm:"column:group_name;not null;default:OK;comment:分组名称" json:"group_name"` // 分组名称
UID string `gorm:"column:uid;not null;comment:分组id" json:"uid"` // 分组id
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"` // 创建时间
}
// TableName LegendGroup's table name
func (*LegendGroup) TableName() string {
return TableNameLegendGroup
}

View File

@@ -1,27 +0,0 @@
// 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 TableNameLegendScalePresent = "legend_scale_present"
// LegendScalePresent 按百分比赠送
type LegendScalePresent struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
Money int32 `gorm:"column:money;not null;comment:金额默认是0" json:"money"` // 金额默认是0
PresentScale float64 `gorm:"column:present_scale;comment:赠送比例" json:"present_scale"` // 赠送比例
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"` // 创建时间
UID string `gorm:"column:uid;not null;default:唯一id" json:"uid"`
}
// TableName LegendScalePresent's table name
func (*LegendScalePresent) TableName() string {
return TableNameLegendScalePresent
}

View File

@@ -1,29 +0,0 @@
// 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 TableNameLegendScaleTemplate = "legend_scale_template"
// LegendScaleTemplate 传奇比例模板
type LegendScaleTemplate struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户uid" json:"merchant_uid"` // 商户uid
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
UserUID string `gorm:"column:user_uid;not null;default:role;comment:用户标识" json:"user_uid"` // 用户标识
UserWarn string `gorm:"column:user_warn;comment:用户标识提醒" json:"user_warn"` // 用户标识提醒
MoneyType string `gorm:"column:money_type;not null;default:any;comment:金额类型any-任意金额fix-固定金额" json:"money_type"` // 金额类型any-任意金额fix-固定金额
PresentType string `gorm:"column:present_type;not null;default:close;comment:赠送方式close-关闭fix-固定金额的赠送scale-按按百分比赠送" json:"present_type"` // 赠送方式close-关闭fix-固定金额的赠送scale-按按百分比赠送
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"` // 创建时间
}
// TableName LegendScaleTemplate's table name
func (*LegendScaleTemplate) TableName() string {
return TableNameLegendScaleTemplate
}

View File

@@ -1,29 +0,0 @@
// 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 TableNameMenuInfo = "menu_info"
// MenuInfo 存放左侧栏的菜单
type MenuInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
MenuOrder int32 `gorm:"column:menu_order;not null;comment:一级菜单的排名顺序" json:"menu_order"` // 一级菜单的排名顺序
MenuUID string `gorm:"column:menu_uid;not null;comment:一级菜单的唯一标识" json:"menu_uid"` // 一级菜单的唯一标识
FirstMenu string `gorm:"column:first_menu;not null;comment:一级菜单名称字符不能超过50" json:"first_menu"` // 一级菜单名称字符不能超过50
SecondMenu string `gorm:"column:second_menu;comment:二级菜单名称,每个之间用|隔开" json:"second_menu"` // 二级菜单名称,每个之间用|隔开
Creater string `gorm:"column:creater;not null;comment:创建者的id" json:"creater"` // 创建者的id
Status string `gorm:"column:status;not null;default:active;comment:菜单的状态情况默认是active" json:"status"` // 菜单的状态情况默认是active
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最近更新时间" json:"update_time"` // 最近更新时间
}
// TableName MenuInfo's table name
func (*MenuInfo) TableName() string {
return TableNameMenuInfo
}

View File

@@ -1,49 +0,0 @@
// 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 TableNameMerchantDeployInfo = "merchant_deploy_info"
// MerchantDeployInfo mapped from table <merchant_deploy_info>
type MerchantDeployInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;not null;default:active;comment:商户状态状态" json:"status"` // 商户状态状态
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户uid" json:"merchant_uid"` // 商户uid
PayType string `gorm:"column:pay_type;comment:支付配置" json:"pay_type"` // 支付配置
SingleRoadUID string `gorm:"column:single_road_uid;comment:单通道uid" json:"single_road_uid"` // 单通道uid
SingleRoadName string `gorm:"column:single_road_name;comment:单通道名称" json:"single_road_name"` // 单通道名称
SingleRoadPlatformRate string `gorm:"column:single_road_platform_rate;not null;comment:单通到平台净利率(关系映射)" json:"single_road_platform_rate"` // 单通到平台净利率(关系映射)
SingleRoadAgentRate float64 `gorm:"column:single_road_agent_rate;not null;default:0.000;comment:单通到代理净利率" json:"single_road_agent_rate"` // 单通到代理净利率
RollRoadCode string `gorm:"column:roll_road_code;comment:轮询通道编码" json:"roll_road_code"` // 轮询通道编码
RollRoadName string `gorm:"column:roll_road_name;comment:轮询通道名称" json:"roll_road_name"` // 轮询通道名称
RollRoadPlatformRate float64 `gorm:"column:roll_road_platform_rate;not null;default:0.000;comment:轮询通道平台净利率" json:"roll_road_platform_rate"` // 轮询通道平台净利率
RollRoadAgentRate float64 `gorm:"column:roll_road_agent_rate;not null;default:0.000;comment:轮询通道代理净利率" json:"roll_road_agent_rate"` // 轮询通道代理净利率
RestrictArea string `gorm:"column:restrict_area;comment:限制地区" json:"restrict_area"` // 限制地区
IsLoan string `gorm:"column:is_loan;not null;default:NO;comment:是否押款" json:"is_loan"` // 是否押款
LoanRate float64 `gorm:"column:loan_rate;not null;default:0.000;comment:押款比例默认是0" json:"loan_rate"` // 押款比例默认是0
LoanDays int32 `gorm:"column:loan_days;not null;comment:押款的天数默认0天" json:"loan_days"` // 押款的天数默认0天
UnfreezeHour int32 `gorm:"column:unfreeze_hour;not null;comment:每天解款的时间点,默认是凌晨" json:"unfreeze_hour"` // 每天解款的时间点,默认是凌晨
WaitUnfreezeAmount float64 `gorm:"column:wait_unfreeze_amount;comment:等待解款的金额" json:"wait_unfreeze_amount"` // 等待解款的金额
LoanAmount float64 `gorm:"column:loan_amount;comment:押款中的金额" json:"loan_amount"` // 押款中的金额
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"` // 创建时间
AutoSettle string `gorm:"column:auto_settle" json:"auto_settle"`
AutoPayfor string `gorm:"column:auto_payfor" json:"auto_payfor"`
IsRestrictAgent []uint8 `gorm:"column:is_restrict_agent;comment:是否检测代理" json:"is_restrict_agent"` // 是否检测代理
IsRestrictCardPass []uint8 `gorm:"column:is_restrict_card_pass;comment:是否限制卡密" json:"is_restrict_card_pass"` // 是否限制卡密
IsRestrictDevice []uint8 `gorm:"column:is_restrict_device;comment:是否限制设备" json:"is_restrict_device"` // 是否限制设备
IsRestrictIP []uint8 `gorm:"column:is_restrict_ip;comment:是否限制IP" json:"is_restrict_ip"` // 是否限制IP
IsRestrictInternalIP []uint8 `gorm:"column:is_restrict_internal_ip;comment:是否限制局域网IP" json:"is_restrict_internal_ip"` // 是否限制局域网IP
SubmitStrategy string `gorm:"column:submit_strategy;default:DIRECT;comment:订单提交策略DIRECT-直接提交POOL-缓存在订单池中二次提交" json:"submit_strategy"` // 订单提交策略DIRECT-直接提交POOL-缓存在订单池中二次提交
}
// TableName MerchantDeployInfo's table name
func (*MerchantDeployInfo) TableName() string {
return TableNameMerchantDeployInfo
}

View File

@@ -1,37 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameMerchantHiddenConfig = "merchant_hidden_config"
// MerchantHiddenConfig mapped from table <merchant_hidden_config>
type MerchantHiddenConfig struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name" json:"name"`
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户Id" json:"merchant_uid"` // 商户Id
RoadUID string `gorm:"column:road_uid;not null;comment:商户通道" json:"road_uid"` // 商户通道
Amount int32 `gorm:"column:amount;comment:金额" json:"amount"` // 金额
FaceAmount int32 `gorm:"column:face_amount;comment:面额" json:"face_amount"` // 面额
DelayDurationMin int32 `gorm:"column:delay_duration_min;comment:延迟时间(最小)" json:"delay_duration_min"` // 延迟时间(最小)
DelayDurationMax int32 `gorm:"column:delay_duration_max;comment:延迟时间(最大)" json:"delay_duration_max"` // 延迟时间(最大)
Enable int32 `gorm:"column:enable;comment:是否启用" json:"enable"` // 是否启用
Strategy int32 `gorm:"column:strategy;comment:策略 1空白 2.错误 3.随机" json:"strategy"` // 策略 1空白 2.错误 3.随机
AmountRule string `gorm:"column:amount_rule;comment:偷卡规则" json:"amount_rule"` // 偷卡规则
ExtraReturnInfo string `gorm:"column:extra_return_info;comment:绑卡返回额外信息" json:"extra_return_info"` // 绑卡返回额外信息
CreatedAt time.Time `gorm:"column:created_at;not null;comment:创建时间" json:"created_at"` // 创建时间
UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:更新时间" json:"updated_at"` // 更新时间
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName MerchantHiddenConfig's table name
func (*MerchantHiddenConfig) TableName() string {
return TableNameMerchantHiddenConfig
}

View File

@@ -1,32 +0,0 @@
// 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 TableNameMerchantHiddenRecord = "merchant_hidden_record"
// MerchantHiddenRecord mapped from table <merchant_hidden_record>
type MerchantHiddenRecord struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
TargetOrderNo string `gorm:"column:target_order_no;comment:替换掉的id" json:"target_order_no"` // 替换掉的id
SourceOrderNo string `gorm:"column:source_order_no;comment:原有id" json:"source_order_no"` // 原有id
OrderAmount float32 `gorm:"column:order_amount;comment:偷卡金额" json:"order_amount"` // 偷卡金额
ActualAmount float32 `gorm:"column:actual_amount;comment:实际金额" json:"actual_amount"` // 实际金额
MerchantHiddenConfigID int32 `gorm:"column:merchant_hidden_config_id;comment:关联偷卡规则" json:"merchant_hidden_config_id"` // 关联偷卡规则
Strategy int32 `gorm:"column:strategy;comment:规则" json:"strategy"` // 规则
DelayDuration int32 `gorm:"column:delay_duration;not null;comment:延迟时间" json:"delay_duration"` // 延迟时间
Status int32 `gorm:"column:status;not null;comment:状态 1.成功 2.失败 3.准备开始" json:"status"` // 状态 1.成功 2.失败 3.准备开始
IsFinish bool `gorm:"column:is_finish;comment:是否结束本轮偷卡" json:"is_finish"` // 是否结束本轮偷卡
CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"created_at"` // 创建时间
UpdatedAt time.Time `gorm:"column:updated_at;comment:修改时间" json:"updated_at"` // 修改时间
}
// TableName MerchantHiddenRecord's table name
func (*MerchantHiddenRecord) TableName() string {
return TableNameMerchantHiddenRecord
}

View File

@@ -1,42 +0,0 @@
// 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 TableNameMerchantInfo = "merchant_info"
// MerchantInfo 商户支付配置表
type MerchantInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;comment:商户状态状态" json:"status"` // 商户状态状态
BelongAgentUID string `gorm:"column:belong_agent_uid;comment:所属代理uid" json:"belong_agent_uid"` // 所属代理uid
BelongAgentName string `gorm:"column:belong_agent_name;comment:所属代理名称" json:"belong_agent_name"` // 所属代理名称
MerchantName string `gorm:"column:merchant_name;comment:商户名称" json:"merchant_name"` // 商户名称
MerchantUID string `gorm:"column:merchant_uid;comment:商户uid" json:"merchant_uid"` // 商户uid
MerchantKey string `gorm:"column:merchant_key;comment:商户key" json:"merchant_key"` // 商户key
MerchantSecret string `gorm:"column:merchant_secret;comment:商户密钥" json:"merchant_secret"` // 商户密钥
LoginAccount string `gorm:"column:login_account;comment:登录账号" json:"login_account"` // 登录账号
LoginPassword string `gorm:"column:login_password;comment:登录密码" json:"login_password"` // 登录密码
AutoSettle string `gorm:"column:auto_settle;not null;default:YES;comment:是否自动结算" json:"auto_settle"` // 是否自动结算
AutoPayFor string `gorm:"column:auto_pay_for;not null;default:YES;comment:是否自动代付" json:"auto_pay_for"` // 是否自动代付
WhiteIps string `gorm:"column:white_ips;comment:配置ip白名单" json:"white_ips"` // 配置ip白名单
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
SinglePayForRoadUID string `gorm:"column:single_pay_for_road_uid;comment:单代付代付通道uid" json:"single_pay_for_road_uid"` // 单代付代付通道uid
SinglePayForRoadName string `gorm:"column:single_pay_for_road_name;comment:单代付通道名称" json:"single_pay_for_road_name"` // 单代付通道名称
RollPayForRoadCode string `gorm:"column:roll_pay_for_road_code;comment:轮询代付通道编码" json:"roll_pay_for_road_code"` // 轮询代付通道编码
RollPayForRoadName string `gorm:"column:roll_pay_for_road_name;comment:轮询代付通道名称" json:"roll_pay_for_road_name"` // 轮询代付通道名称
PayforFee float32 `gorm:"column:payfor_fee;comment:代付手续费" json:"payfor_fee"` // 代付手续费
UpdateTime time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
OtpSecret string `gorm:"column:otp_secret;comment:二次验证" json:"otp_secret"` // 二次验证
}
// TableName MerchantInfo's table name
func (*MerchantInfo) TableName() string {
return TableNameMerchantInfo
}

View File

@@ -1,28 +0,0 @@
// 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 TableNameMerchantLoadInfo = "merchant_load_info"
// MerchantLoadInfo 商户对应的每条通道的押款信息
type MerchantLoadInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;comment:no-没有结算yes-结算" json:"status"` // no-没有结算yes-结算
MerchantUID string `gorm:"column:merchant_uid;comment:商户uid" json:"merchant_uid"` // 商户uid
RoadUID string `gorm:"column:road_uid;comment:通道uid" json:"road_uid"` // 通道uid
LoadDate string `gorm:"column:load_date;comment:押款日期格式2019-10-10" json:"load_date"` // 押款日期格式2019-10-10
LoadAmount float32 `gorm:"column:load_amount;comment:押款金额" json:"load_amount"` // 押款金额
UpdateTime time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
}
// TableName MerchantLoadInfo's table name
func (*MerchantLoadInfo) TableName() string {
return TableNameMerchantLoadInfo
}

View File

@@ -1,26 +0,0 @@
// 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 TableNameMigration = "migrations"
// Migration mapped from table <migrations>
type Migration struct {
IDMigration int32 `gorm:"column:id_migration;primaryKey;autoIncrement:true;comment:surrogate key" json:"id_migration"` // surrogate key
Name string `gorm:"column:name;comment:migration name, unique" json:"name"` // migration name, unique
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:date migrated or rolled back" json:"created_at"` // date migrated or rolled back
Statements string `gorm:"column:statements;comment:SQL statements for this migration" json:"statements"` // SQL statements for this migration
RollbackStatements string `gorm:"column:rollback_statements;comment:SQL statment for rolling back migration" json:"rollback_statements"` // SQL statment for rolling back migration
Status string `gorm:"column:status;comment:update indicates it is a normal migration while rollback means this migration is rolled back" json:"status"` // update indicates it is a normal migration while rollback means this migration is rolled back
}
// TableName Migration's table name
func (*Migration) TableName() string {
return TableNameMigration
}

View File

@@ -1,30 +0,0 @@
// 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 TableNameNotifyInfo = "notify_info"
// NotifyInfo 支付回调
type NotifyInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Type string `gorm:"column:type;not null;comment:支付订单-order 代付订单-payfor" json:"type"` // 支付订单-order 代付订单-payfor
BankOrderID string `gorm:"column:bank_order_id;not null;comment:系统订单id" json:"bank_order_id"` // 系统订单id
MerchantOrderID string `gorm:"column:merchant_order_id;not null;comment:下游商户订单id" json:"merchant_order_id"` // 下游商户订单id
Status string `gorm:"column:status;not null;default:wait;comment:状态字段" json:"status"` // 状态字段
Times int32 `gorm:"column:times;not null;comment:回调次数" json:"times"` // 回调次数
URL string `gorm:"column:url;comment:回调的url" json:"url"` // 回调的url
Response string `gorm:"column:response;comment:回调返回的结果" json:"response"` // 回调返回的结果
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"` // 创建时间
}
// TableName NotifyInfo's table name
func (*NotifyInfo) TableName() string {
return TableNameNotifyInfo
}

View File

@@ -1,70 +0,0 @@
// 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 TableNameOrderInfo = "order_info"
// OrderInfo 订单信息表
type OrderInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
MerchantOrderID string `gorm:"column:merchant_order_id;comment:商户订单ID" json:"merchant_order_id"` // 商户订单ID
ShopName string `gorm:"column:shop_name;comment:商品名称" json:"shop_name"` // 商品名称
OrderPeriod string `gorm:"column:order_period;comment:订单有效时间" json:"order_period"` // 订单有效时间
BankOrderID string `gorm:"column:bank_order_id;comment:系统订单ID" json:"bank_order_id"` // 系统订单ID
BankTransID string `gorm:"column:bank_trans_id;comment:上游流水ID" json:"bank_trans_id"` // 上游流水ID
OrderAmount float64 `gorm:"column:order_amount;comment:订单提交金额" json:"order_amount"` // 订单提交金额
ShowAmount float64 `gorm:"column:show_amount;comment:待支付金额" json:"show_amount"` // 待支付金额
FactAmount float64 `gorm:"column:fact_amount;comment:实际支付金额" json:"fact_amount"` // 实际支付金额
RollPoolCode string `gorm:"column:roll_pool_code;comment:轮询池编码" json:"roll_pool_code"` // 轮询池编码
RollPoolName string `gorm:"column:roll_pool_name;comment:轮询池名称" json:"roll_pool_name"` // 轮询池名称
RoadUID string `gorm:"column:road_uid;comment:支付通道ID" json:"road_uid"` // 支付通道ID
RoadName string `gorm:"column:road_name;comment:支付通道名称" json:"road_name"` // 支付通道名称
PayProductCode string `gorm:"column:pay_product_code;comment:上游支付公司编码" json:"pay_product_code"` // 上游支付公司编码
PayProductName string `gorm:"column:pay_product_name;comment:上游支付公司名称" json:"pay_product_name"` // 上游支付公司名称
PayTypeCode string `gorm:"column:pay_type_code;comment:支付产品编码" json:"pay_type_code"` // 支付产品编码
PayTypeName string `gorm:"column:pay_type_name;comment:支付产品名称" json:"pay_type_name"` // 支付产品名称
OsType string `gorm:"column:os_type;comment:操作系统类型" json:"os_type"` // 操作系统类型
Status string `gorm:"column:status;comment:订单支付状态" json:"status"` // 订单支付状态
Refund string `gorm:"column:refund;comment:退款状态" json:"refund"` // 退款状态
RefundTime string `gorm:"column:refund_time;comment:退款操作时间" json:"refund_time"` // 退款操作时间
Freeze string `gorm:"column:freeze;comment:冻结状态" json:"freeze"` // 冻结状态
FreezeTime string `gorm:"column:freeze_time;comment:冻结时间" json:"freeze_time"` // 冻结时间
Unfreeze string `gorm:"column:unfreeze;comment:是否已解冻" json:"unfreeze"` // 是否已解冻
UnfreezeTime string `gorm:"column:unfreeze_time;comment:解冻时间" json:"unfreeze_time"` // 解冻时间
NotifyURL string `gorm:"column:notify_url;comment:回调通知地址" json:"notify_url"` // 回调通知地址
MerchantUID string `gorm:"column:merchant_uid;comment:商户ID" json:"merchant_uid"` // 商户ID
MerchantName string `gorm:"column:merchant_name;comment:商户名称" json:"merchant_name"` // 商户名称
AgentUID string `gorm:"column:agent_uid;comment:代理ID" json:"agent_uid"` // 代理ID
AgentName string `gorm:"column:agent_name;comment:代理名称" json:"agent_name"` // 代理名称
Response string `gorm:"column:response;comment:上游返回的结果" json:"response"` // 上游返回的结果
UpdateTime time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
ExValue string `gorm:"column:ex_value;comment:扩展字段" json:"ex_value"` // 扩展字段
CardData string `gorm:"column:card_data" json:"card_data"`
Operator string `gorm:"column:operator" json:"operator"`
CardReturnData string `gorm:"column:card_return_data" json:"card_return_data"`
CardReturnTime time.Time `gorm:"column:card_return_time;comment:上游返回数据时间" json:"card_return_time"` // 上游返回数据时间
PayTime time.Time `gorm:"column:pay_time" json:"pay_time"`
IP string `gorm:"column:ip;comment:ip地址" json:"ip"` // ip地址
IsIPRestricted int32 `gorm:"column:is_ip_restricted;comment:ip是否被限制" json:"is_ip_restricted"` // ip是否被限制
TransactionType string `gorm:"column:transaction_type" json:"transaction_type"`
IsBlock int32 `gorm:"column:is_block;comment:是否在黑名单中" json:"is_block"` // 是否在黑名单中
PayURL string `gorm:"column:pay_url;comment:支付链接" json:"pay_url"` // 支付链接
IsReplace int32 `gorm:"column:is_replace;comment:是否是偷卡的链接" json:"is_replace"` // 是否是偷卡的链接
IsSucceedByReplace int32 `gorm:"column:is_succeed_by_replace;comment:0" json:"is_succeed_by_replace"` // 0
SendCount int32 `gorm:"column:send_count;comment:核销次数" json:"send_count"` // 核销次数
IsAmountDifferent int32 `gorm:"column:is_amount_different" json:"is_amount_different"`
SendRecord string `gorm:"column:send_record;comment:历史记录" json:"send_record"` // 历史记录
PoolOrderID string `gorm:"column:pool_order_id" json:"pool_order_id"`
}
// TableName OrderInfo's table name
func (*OrderInfo) TableName() string {
return TableNameOrderInfo
}

View File

@@ -1,46 +0,0 @@
// 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 TableNameOrderProfitInfo = "order_profit_info"
// OrderProfitInfo 订单利润表
type OrderProfitInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
MerchantName string `gorm:"column:merchant_name;not null;comment:商户名称" json:"merchant_name"` // 商户名称
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户uid" json:"merchant_uid"` // 商户uid
AgentUID string `gorm:"column:agent_uid;comment:代理uid表示该商户是谁的代理" json:"agent_uid"` // 代理uid表示该商户是谁的代理
AgentName string `gorm:"column:agent_name;comment:代理名称" json:"agent_name"` // 代理名称
PayProductCode string `gorm:"column:pay_product_code;not null;comment:支付产品编码" json:"pay_product_code"` // 支付产品编码
PayProductName string `gorm:"column:pay_product_name;not null;comment:支付产品名称" json:"pay_product_name"` // 支付产品名称
PayTypeCode string `gorm:"column:pay_type_code;not null;comment:支付类型编码" json:"pay_type_code"` // 支付类型编码
PayTypeName string `gorm:"column:pay_type_name;not null;comment:支付类型名称" json:"pay_type_name"` // 支付类型名称
Status string `gorm:"column:status;not null;default:wait;comment:等待支付-wait,支付成功-success, 支付失败-failed" json:"status"` // 等待支付-wait,支付成功-success, 支付失败-failed
MerchantOrderID string `gorm:"column:merchant_order_id;not null;comment:下游商户提交过来的订单id" json:"merchant_order_id"` // 下游商户提交过来的订单id
BankOrderID string `gorm:"column:bank_order_id;not null;comment:平台自身的订单id" json:"bank_order_id"` // 平台自身的订单id
BankTransID string `gorm:"column:bank_trans_id;not null;comment:上游返回的订单id" json:"bank_trans_id"` // 上游返回的订单id
OrderAmount float64 `gorm:"column:order_amount;not null;default:0.000;comment:订单提交金额" json:"order_amount"` // 订单提交金额
ShowAmount float64 `gorm:"column:show_amount;not null;default:0.000;comment:展示在用户面前待支付的金额" json:"show_amount"` // 展示在用户面前待支付的金额
FactAmount float64 `gorm:"column:fact_amount;not null;default:0.000;comment:实际支付金额" json:"fact_amount"` // 实际支付金额
UserInAmount float64 `gorm:"column:user_in_amount;not null;default:0.000;comment:商户入账金额" json:"user_in_amount"` // 商户入账金额
AllProfit float64 `gorm:"column:all_profit;not null;default:0.000;comment:总的利润,包括上游,平台,代理" json:"all_profit"` // 总的利润,包括上游,平台,代理
SupplierRate float64 `gorm:"column:supplier_rate;not null;default:0.000;comment:上游的汇率" json:"supplier_rate"` // 上游的汇率
PlatformRate float64 `gorm:"column:platform_rate;not null;default:0.000;comment:平台自己的手续费率" json:"platform_rate"` // 平台自己的手续费率
AgentRate float64 `gorm:"column:agent_rate;not null;default:0.000;comment:代理的手续费率" json:"agent_rate"` // 代理的手续费率
SupplierProfit float64 `gorm:"column:supplier_profit;not null;default:0.000;comment:上游的利润" json:"supplier_profit"` // 上游的利润
PlatformProfit float64 `gorm:"column:platform_profit;not null;default:0.000;comment:平台利润" json:"platform_profit"` // 平台利润
AgentProfit float64 `gorm:"column:agent_profit;not null;default:0.000;comment:代理利润" json:"agent_profit"` // 代理利润
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"` // 创建时间
}
// TableName OrderProfitInfo's table name
func (*OrderProfitInfo) TableName() string {
return TableNameOrderProfitInfo
}

View File

@@ -1,35 +0,0 @@
// 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 TableNameOrderSettleInfo = "order_settle_info"
// OrderSettleInfo 订单结算表
type OrderSettleInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
PayProductCode string `gorm:"column:pay_product_code;not null;comment:支付产品编码" json:"pay_product_code"` // 支付产品编码
PayProductName string `gorm:"column:pay_product_name;not null;comment:支付产品名称" json:"pay_product_name"` // 支付产品名称
PayTypeCode string `gorm:"column:pay_type_code;not null;comment:支付类型编码" json:"pay_type_code"` // 支付类型编码
PayTypeName string `gorm:"column:pay_type_name;not null;comment:支付类型名称" json:"pay_type_name"` // 支付类型名称
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户uid表示订单是哪个商户的" json:"merchant_uid"` // 商户uid表示订单是哪个商户的
RoadUID string `gorm:"column:road_uid;not null;comment:通道uid" json:"road_uid"` // 通道uid
MerchantName string `gorm:"column:merchant_name;not null;comment:商户名称" json:"merchant_name"` // 商户名称
MerchantOrderID string `gorm:"column:merchant_order_id;not null;comment:下游商户提交过来的订单id" json:"merchant_order_id"` // 下游商户提交过来的订单id
BankOrderID string `gorm:"column:bank_order_id;not null;comment:平台自身的订单id" json:"bank_order_id"` // 平台自身的订单id
SettleAmount float64 `gorm:"column:settle_amount;not null;default:0.000;comment:结算金额" json:"settle_amount"` // 结算金额
IsAllowSettle string `gorm:"column:is_allow_settle;not null;default:yes;comment:是否允许结算,允许-yes不允许-no" json:"is_allow_settle"` // 是否允许结算,允许-yes不允许-no
IsCompleteSettle string `gorm:"column:is_complete_settle;not null;default:no;comment:该笔订单是否结算完毕,没有结算-no结算完毕-yes" json:"is_complete_settle"` // 该笔订单是否结算完毕,没有结算-no结算完毕-yes
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"` // 创建时间
}
// TableName OrderSettleInfo's table name
func (*OrderSettleInfo) TableName() string {
return TableNameOrderSettleInfo
}

View File

@@ -1,57 +0,0 @@
// 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 TableNamePayforInfo = "payfor_info"
// PayforInfo 代付表
type PayforInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
PayforUID string `gorm:"column:payfor_uid;comment:代付唯一uid" json:"payfor_uid"` // 代付唯一uid
MerchantUID string `gorm:"column:merchant_uid;comment:发起代付的商户uid" json:"merchant_uid"` // 发起代付的商户uid
MerchantName string `gorm:"column:merchant_name;comment:发起代付的商户名称" json:"merchant_name"` // 发起代付的商户名称
MerchantOrderID string `gorm:"column:merchant_order_id;comment:下游代付订单id" json:"merchant_order_id"` // 下游代付订单id
BankOrderID string `gorm:"column:bank_order_id;comment:系统代付订单id" json:"bank_order_id"` // 系统代付订单id
BankTransID string `gorm:"column:bank_trans_id;comment:上游返回的代付订单id" json:"bank_trans_id"` // 上游返回的代付订单id
RoadUID string `gorm:"column:road_uid;comment:所用的代付通道uid" json:"road_uid"` // 所用的代付通道uid
RoadName string `gorm:"column:road_name;comment:所有通道的名称" json:"road_name"` // 所有通道的名称
RollPoolCode string `gorm:"column:roll_pool_code;comment:所用轮询池编码" json:"roll_pool_code"` // 所用轮询池编码
RollPoolName string `gorm:"column:roll_pool_name;comment:所用轮询池的名称" json:"roll_pool_name"` // 所用轮询池的名称
PayforFee float32 `gorm:"column:payfor_fee;comment:代付手续费" json:"payfor_fee"` // 代付手续费
PayforAmount float32 `gorm:"column:payfor_amount;comment:代付到账金额" json:"payfor_amount"` // 代付到账金额
PayforTotalAmount float32 `gorm:"column:payfor_total_amount;comment:代付总金额" json:"payfor_total_amount"` // 代付总金额
BankCode string `gorm:"column:bank_code;comment:银行编码" json:"bank_code"` // 银行编码
BankName string `gorm:"column:bank_name;comment:银行名称" json:"bank_name"` // 银行名称
BankAccountName string `gorm:"column:bank_account_name;comment:银行开户名称" json:"bank_account_name"` // 银行开户名称
BankAccountNo string `gorm:"column:bank_account_no;comment:银行开户账号" json:"bank_account_no"` // 银行开户账号
BankAccountType string `gorm:"column:bank_account_type;comment:银行卡类型,对私-private对公-public" json:"bank_account_type"` // 银行卡类型,对私-private对公-public
Country string `gorm:"column:country;comment:开户所属国家" json:"country"` // 开户所属国家
Province string `gorm:"column:province;comment:银行卡开户所属省" json:"province"` // 银行卡开户所属省
City string `gorm:"column:city;comment:银行卡开户所属城市" json:"city"` // 银行卡开户所属城市
Ares string `gorm:"column:ares;comment:所属地区" json:"ares"` // 所属地区
BankAccountAddress string `gorm:"column:bank_account_address;comment:银行开户具体街道" json:"bank_account_address"` // 银行开户具体街道
PhoneNo string `gorm:"column:phone_no;comment:开户所用手机号" json:"phone_no"` // 开户所用手机号
GiveType string `gorm:"column:give_type;comment:下发类型payfor_road-通道打款payfor_hand-手动打款payfor_refuse-拒绝打款" json:"give_type"` // 下发类型payfor_road-通道打款payfor_hand-手动打款payfor_refuse-拒绝打款
Type string `gorm:"column:type;comment:代付类型self_api-系统发下, 管理员手动下发给商户-self_merchant管理自己提现-self_help" json:"type"` // 代付类型self_api-系统发下, 管理员手动下发给商户-self_merchant管理自己提现-self_help
NotifyURL string `gorm:"column:notify_url;comment:代付结果回调给下游的地址" json:"notify_url"` // 代付结果回调给下游的地址
Status string `gorm:"column:status;comment:审核-payfor_confirm,系统处理中-payfor_solving银行处理中-payfor_banking代付成功-success, 代付失败-failed" json:"status"` // 审核-payfor_confirm,系统处理中-payfor_solving银行处理中-payfor_banking代付成功-success, 代付失败-failed
IsSend string `gorm:"column:is_send;comment:未发送-no已经发送-yes" json:"is_send"` // 未发送-no已经发送-yes
RequestTime time.Time `gorm:"column:request_time;comment:发起请求时间" json:"request_time"` // 发起请求时间
ResponseTime string `gorm:"column:response_time;comment:上游做出响应的时间" json:"response_time"` // 上游做出响应的时间
ResponseContent string `gorm:"column:response_content;comment:代付的最终结果" json:"response_content"` // 代付的最终结果
Remark string `gorm:"column:remark;comment:代付备注" json:"remark"` // 代付备注
UpdateTime time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
Attach string `gorm:"column:attach" json:"attach"`
}
// TableName PayforInfo's table name
func (*PayforInfo) TableName() string {
return TableNamePayforInfo
}

View File

@@ -1,30 +0,0 @@
// 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 TableNamePowerInfo = "power_info"
// PowerInfo 存放控制页面的一些功能操作
type PowerInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
FirstMenuUID string `gorm:"column:first_menu_uid;not null;comment:一级菜单的唯一标识" json:"first_menu_uid"` // 一级菜单的唯一标识
SecondMenuUID string `gorm:"column:second_menu_uid;not null;comment:二级菜单的唯一标识" json:"second_menu_uid"` // 二级菜单的唯一标识
SecondMenu string `gorm:"column:second_menu;not null;comment:二级菜单的名称" json:"second_menu"` // 二级菜单的名称
PowerItem string `gorm:"column:power_item;not null;comment:权限项的名称" json:"power_item"` // 权限项的名称
PowerID string `gorm:"column:power_id;not null;comment:权限的ID" json:"power_id"` // 权限的ID
Creater string `gorm:"column:creater;not null;comment:创建者的id" json:"creater"` // 创建者的id
Status string `gorm:"column:status;not null;default:active;comment:菜单的状态情况默认是active" json:"status"` // 菜单的状态情况默认是active
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最近更新时间" json:"update_time"` // 最近更新时间
}
// TableName PowerInfo's table name
func (*PowerInfo) TableName() string {
return TableNamePowerInfo
}

View File

@@ -1,30 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRechargeTMallAccount = "recharge_t_mall_account"
// RechargeTMallAccount mapped from table <recharge_t_mall_account>
type RechargeTMallAccount struct {
ID string `gorm:"column:id;primaryKey" json:"id"`
AccountNumber string `gorm:"column:account_number;not null;comment:账户" json:"account_number"` // 账户
Balance float32 `gorm:"column:balance;not null;comment:余额" json:"balance"` // 余额
RechargeTimes int32 `gorm:"column:recharge_times;not null;comment:充值次数" json:"recharge_times"` // 充值次数
Status string `gorm:"column:status;not null;comment:状态" json:"status"` // 状态
CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"created_at"` // 创建时间
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新时间" json:"updated_at"` // 更新时间
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除时间" json:"deleted_at"` // 删除时间
}
// TableName RechargeTMallAccount's table name
func (*RechargeTMallAccount) TableName() string {
return TableNameRechargeTMallAccount
}

View File

@@ -1,39 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRechargeTMallOrder = "recharge_t_mall_order"
// RechargeTMallOrder mapped from table <recharge_t_mall_order>
type RechargeTMallOrder struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
ChannelName string `gorm:"column:channel_name;comment:通道名称" json:"channel_name"` // 通道名称
OrderNo string `gorm:"column:order_no;primaryKey;comment:订单号同时是ID" json:"order_no"` // 订单号同时是ID
AccountID string `gorm:"column:account_id;comment:账户ID" json:"account_id"` // 账户ID
AccountNumber string `gorm:"column:account_number;comment:账号" json:"account_number"` // 账号
Amount float32 `gorm:"column:amount;comment:充值金额" json:"amount"` // 充值金额
Status string `gorm:"column:status" json:"status"`
MerchantOrder string `gorm:"column:merchant_order;not null;comment:第三方订单号" json:"merchant_order"` // 第三方订单号
ThirdMerhantOrder string `gorm:"column:third_merhant_order;comment:第三方订单号" json:"third_merhant_order"` // 第三方订单号
NotifyStatus int32 `gorm:"column:notify_status;comment:回调状态" json:"notify_status"` // 回调状态
CallbackURL string `gorm:"column:callback_url" json:"callback_url"`
Remark string `gorm:"column:remark" json:"remark"`
ShopID int64 `gorm:"column:shop_id;comment:关联天猫订单内部id" json:"shop_id"` // 关联天猫订单内部id
CallbackType string `gorm:"column:callback_type;comment:回调类型" json:"callback_type"` // 回调类型
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RechargeTMallOrder's table name
func (*RechargeTMallOrder) TableName() string {
return TableNameRechargeTMallOrder
}

View File

@@ -1,33 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRechargeTMallOrderFake = "recharge_t_mall_order_fake"
// RechargeTMallOrderFake mapped from table <recharge_t_mall_order_fake>
type RechargeTMallOrderFake struct {
ID string `gorm:"column:id;primaryKey" json:"id"`
SourceOfShop string `gorm:"column:source_of_shop;comment:店铺" json:"source_of_shop"` // 店铺
OrderNo string `gorm:"column:order_no;comment:订单号" json:"order_no"` // 订单号
Category string `gorm:"column:category;comment:品类" json:"category"` // 品类
Account string `gorm:"column:account;comment:充值账号" json:"account"` // 充值账号
Amount float32 `gorm:"column:amount;comment:充值金额" json:"amount"` // 充值金额
TopUpTime time.Time `gorm:"column:top_up_time;comment:充值时间" json:"top_up_time"` // 充值时间
Status int32 `gorm:"column:status;comment:充值状态 0.失败 1.成功" json:"status"` // 充值状态 0.失败 1.成功
CreatedAt time.Time `gorm:"column:created_at;comment:充值时间" json:"created_at"` // 充值时间
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RechargeTMallOrderFake's table name
func (*RechargeTMallOrderFake) TableName() string {
return TableNameRechargeTMallOrderFake
}

View File

@@ -1,31 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRechargeTMallOrderHistory = "recharge_t_mall_order_history"
// RechargeTMallOrderHistory mapped from table <recharge_t_mall_order_history>
type RechargeTMallOrderHistory struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;comment:淘宝订单号" json:"order_no"` // 淘宝订单号
OriginalData string `gorm:"column:original_data" json:"original_data"`
Remark string `gorm:"column:remark" json:"remark"`
Status string `gorm:"column:status" json:"status"`
SourceType string `gorm:"column:source_type;comment:来源,选择淘宝或者阿奇索" json:"source_type"` // 来源,选择淘宝或者阿奇索
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RechargeTMallOrderHistory's table name
func (*RechargeTMallOrderHistory) TableName() string {
return TableNameRechargeTMallOrderHistory
}

View File

@@ -1,41 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRechargeTMallShop = "recharge_t_mall_shop"
// RechargeTMallShop mapped from table <recharge_t_mall_shop>
type RechargeTMallShop struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;comment:订单号" json:"order_no"` // 订单号
Account string `gorm:"column:account;comment:充值账号" json:"account"` // 充值账号
TMallOrderNo string `gorm:"column:t_mall_order_no;comment:淘宝订单号" json:"t_mall_order_no"` // 淘宝订单号
BuyerNick string `gorm:"column:buyer_nick;comment:买家昵称" json:"buyer_nick"` // 买家昵称
BuyerRate bool `gorm:"column:buyer_rate;comment:买家是否评价" json:"buyer_rate"` // 买家是否评价
Status string `gorm:"column:status;comment:交易状态" json:"status"` // 交易状态
Payment string `gorm:"column:payment;comment:实付金额" json:"payment"` // 实付金额
TotalFee string `gorm:"column:total_fee;comment:商品金额" json:"total_fee"` // 商品金额
PayTime time.Time `gorm:"column:pay_time;comment:付款时间" json:"pay_time"` // 付款时间
TradeStatus string `gorm:"column:trade_status;comment:天猫返回状态" json:"trade_status"` // 天猫返回状态
BuyerMemo string `gorm:"column:buyer_memo;comment:买家备注" json:"buyer_memo"` // 买家备注
AlipayNo string `gorm:"column:alipay_no;comment:支付宝交易号" json:"alipay_no"` // 支付宝交易号
BuyerMessage string `gorm:"column:buyer_message;comment:买家留言" json:"buyer_message"` // 买家留言
CreateTime time.Time `gorm:"column:create_time;comment:交易创建时间" json:"create_time"` // 交易创建时间
EndTime time.Time `gorm:"column:end_time;comment:交易结束时间" json:"end_time"` // 交易结束时间
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RechargeTMallShop's table name
func (*RechargeTMallShop) TableName() string {
return TableNameRechargeTMallShop
}

View File

@@ -1,30 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRechargeTMallShopHistory = "recharge_t_mall_shop_history"
// RechargeTMallShopHistory mapped from table <recharge_t_mall_shop_history>
type RechargeTMallShopHistory struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
ShopID int32 `gorm:"column:shop_id;comment:关联订单" json:"shop_id"` // 关联订单
RawData string `gorm:"column:raw_data;comment:原始记录" json:"raw_data"` // 原始记录
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
Status string `gorm:"column:status;comment:操作状态" json:"status"` // 操作状态
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RechargeTMallShopHistory's table name
func (*RechargeTMallShopHistory) TableName() string {
return TableNameRechargeTMallShopHistory
}

View File

@@ -1,31 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRestrictClientAccessIPRelation = "restrict_client_access_ip_relation"
// RestrictClientAccessIPRelation mapped from table <restrict_client_access_ip_relation>
type RestrictClientAccessIPRelation struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
IP string `gorm:"column:ip;comment:IP地址" json:"ip"` // IP地址
IsRemoteIP []uint8 `gorm:"column:is_remote_ip" json:"is_remote_ip"`
RestrictIPRecordID int32 `gorm:"column:restrict_ip_record_id;comment:限制IP详情" json:"restrict_ip_record_id"` // 限制IP详情
RestrictClientAccessRecordID int32 `gorm:"column:restrict_client_access_record_id;comment:IP访问地址详情" json:"restrict_client_access_record_id"` // IP访问地址详情
SessionID string `gorm:"column:session_id;comment:回话ID" json:"session_id"` // 回话ID
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RestrictClientAccessIPRelation's table name
func (*RestrictClientAccessIPRelation) TableName() string {
return TableNameRestrictClientAccessIPRelation
}

View File

@@ -1,30 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRestrictClientAccessRecord = "restrict_client_access_record"
// RestrictClientAccessRecord mapped from table <restrict_client_access_record>
type RestrictClientAccessRecord struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
VisitorID string `gorm:"column:visitor_id;comment:访问ID" json:"visitor_id"` // 访问ID
DeviceModel string `gorm:"column:device_model;comment:设备型号" json:"device_model"` // 设备型号
UserAgent string `gorm:"column:user_agent;comment:用户浏览器代理" json:"user_agent"` // 用户浏览器代理
IsUseProxy []uint8 `gorm:"column:is_use_proxy;comment:是否使用代理" json:"is_use_proxy"` // 是否使用代理
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RestrictClientAccessRecord's table name
func (*RestrictClientAccessRecord) TableName() string {
return TableNameRestrictClientAccessRecord
}

View File

@@ -1,33 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRestrictIPOrderAccess = "restrict_ip_order_access"
// RestrictIPOrderAccess mapped from table <restrict_ip_order_access>
type RestrictIPOrderAccess struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
RestrictIPID int32 `gorm:"column:restrict_ip_id;comment:关联的IP地址" json:"restrict_ip_id"` // 关联的IP地址
OrderNo string `gorm:"column:order_no;comment:订单号" json:"order_no"` // 订单号
CardPass string `gorm:"column:card_pass;comment:卡密" json:"card_pass"` // 卡密
IP string `gorm:"column:ip;comment:ip地址" json:"ip"` // ip地址
Status int32 `gorm:"column:status;comment:状态" json:"status"` // 状态
RestrictStrategy string `gorm:"column:restrict_strategy;comment:限制策略" json:"restrict_strategy"` // 限制策略
DeviceID string `gorm:"column:device_id;comment:设备ID" json:"device_id"` // 设备ID
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RestrictIPOrderAccess's table name
func (*RestrictIPOrderAccess) TableName() string {
return TableNameRestrictIPOrderAccess
}

View File

@@ -1,30 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameRestrictIPRecord = "restrict_ip_record"
// RestrictIPRecord mapped from table <restrict_ip_record>
type RestrictIPRecord struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
IP string `gorm:"column:ip;comment:ip地址" json:"ip"` // ip地址
IPProvince string `gorm:"column:ip_province;comment:ip地址所在省份或地区" json:"ip_province"` // ip地址所在省份或地区
IsPublic []uint8 `gorm:"column:is_public;comment:是否是公共地址" json:"is_public"` // 是否是公共地址
RawData string `gorm:"column:raw_data" json:"raw_data"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName RestrictIPRecord's table name
func (*RestrictIPRecord) TableName() string {
return TableNameRestrictIPRecord
}

View File

@@ -1,52 +0,0 @@
// 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
}

View File

@@ -1,27 +0,0 @@
// 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 TableNameRoadPoolInfo = "road_pool_info"
// RoadPoolInfo 通道池
type RoadPoolInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;not null;default:active;comment:通道池状态" json:"status"` // 通道池状态
RoadPoolName string `gorm:"column:road_pool_name;not null;comment:通道池名称" json:"road_pool_name"` // 通道池名称
RoadPoolCode string `gorm:"column:road_pool_code;not null;comment:通道池编号" json:"road_pool_code"` // 通道池编号
RoadUIDPool string `gorm:"column:road_uid_pool;comment:通道池里面的通道uid" json:"road_uid_pool"` // 通道池里面的通道uid
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"` // 创建时间
}
// TableName RoadPoolInfo's table name
func (*RoadPoolInfo) TableName() string {
return TableNameRoadPoolInfo
}

View File

@@ -1,34 +0,0 @@
// 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 TableNameRoleInfo = "role_info"
// RoleInfo 角色表
type RoleInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
RoleName string `gorm:"column:role_name;not null;comment:角色名称" json:"role_name"` // 角色名称
RoleUID string `gorm:"column:role_uid;not null;comment:角色唯一标识号" json:"role_uid"` // 角色唯一标识号
ShowFirstMenu string `gorm:"column:show_first_menu;not null;comment:可以展示的一级菜单名" json:"show_first_menu"` // 可以展示的一级菜单名
ShowFirstUID string `gorm:"column:show_first_uid;not null;comment:可以展示的一级菜单uid" json:"show_first_uid"` // 可以展示的一级菜单uid
ShowSecondMenu string `gorm:"column:show_second_menu;not null;comment:可以展示的二级菜单名" json:"show_second_menu"` // 可以展示的二级菜单名
ShowSecondUID string `gorm:"column:show_second_uid;not null;comment:可以展示的二级菜单uid" json:"show_second_uid"` // 可以展示的二级菜单uid
ShowPower string `gorm:"column:show_power;not null;comment:可以展示的权限项名称" json:"show_power"` // 可以展示的权限项名称
ShowPowerUID string `gorm:"column:show_power_uid;not null;comment:可以展示的权限项uid" json:"show_power_uid"` // 可以展示的权限项uid
Remark string `gorm:"column:remark;not null;comment:角色描述" json:"remark"` // 角色描述
Creater string `gorm:"column:creater;not null;comment:创建者的id" json:"creater"` // 创建者的id
Status string `gorm:"column:status;not null;default:active;comment:菜单的状态情况默认是active" json:"status"` // 菜单的状态情况默认是active
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最近更新时间" json:"update_time"` // 最近更新时间
}
// TableName RoleInfo's table name
func (*RoleInfo) TableName() string {
return TableNameRoleInfo
}

View File

@@ -1,18 +0,0 @@
// 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
const TableNameSchemaMigration = "schema_migrations"
// SchemaMigration mapped from table <schema_migrations>
type SchemaMigration struct {
Version int64 `gorm:"column:version;primaryKey" json:"version"`
Dirty bool `gorm:"column:dirty;not null" json:"dirty"`
}
// TableName SchemaMigration's table name
func (*SchemaMigration) TableName() string {
return TableNameSchemaMigration
}

View File

@@ -1,32 +0,0 @@
// 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 TableNameSecondMenuInfo = "second_menu_info"
// SecondMenuInfo 存放左侧栏的二级菜单
type SecondMenuInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
FirstMenuOrder int32 `gorm:"column:first_menu_order;not null;comment:一级菜单对应的顺序" json:"first_menu_order"` // 一级菜单对应的顺序
MenuOrder int32 `gorm:"column:menu_order;not null;comment:二级菜单的排名顺序" json:"menu_order"` // 二级菜单的排名顺序
FirstMenuUID string `gorm:"column:first_menu_uid;not null;comment:二级菜单的唯一标识" json:"first_menu_uid"` // 二级菜单的唯一标识
FirstMenu string `gorm:"column:first_menu;not null;comment:一级菜单名称字符不能超过50" json:"first_menu"` // 一级菜单名称字符不能超过50
SecondMenuUID string `gorm:"column:second_menu_uid;not null;comment:二级菜单唯一标识" json:"second_menu_uid"` // 二级菜单唯一标识
SecondMenu string `gorm:"column:second_menu;not null;comment:二级菜单名称" json:"second_menu"` // 二级菜单名称
SecondRouter string `gorm:"column:second_router;not null;comment:二级菜单路由" json:"second_router"` // 二级菜单路由
Creater string `gorm:"column:creater;not null;comment:创建者的id" json:"creater"` // 创建者的id
Status string `gorm:"column:status;not null;default:active;comment:菜单的状态情况默认是active" json:"status"` // 菜单的状态情况默认是active
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最近更新时间" json:"update_time"` // 最近更新时间
}
// TableName SecondMenuInfo's table name
func (*SecondMenuInfo) TableName() string {
return TableNameSecondMenuInfo
}

View File

@@ -1,42 +0,0 @@
// 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 TableNameSysAuthRule = "sys_auth_rule"
// SysAuthRule 菜单节点表
type SysAuthRule struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Pid int32 `gorm:"column:pid;not null;comment:父ID" json:"pid"` // 父ID
Name string `gorm:"column:name;not null;comment:规则名称" json:"name"` // 规则名称
Title string `gorm:"column:title;not null;comment:规则名称" json:"title"` // 规则名称
Icon string `gorm:"column:icon;not null;comment:图标" json:"icon"` // 图标
Condition string `gorm:"column:condition;not null;comment:条件" json:"condition"` // 条件
Remark string `gorm:"column:remark;not null;comment:备注" json:"remark"` // 备注
MenuType int32 `gorm:"column:menu_type;not null;comment:类型 0目录 1菜单 2按钮" json:"menu_type"` // 类型 0目录 1菜单 2按钮
Weigh int32 `gorm:"column:weigh;not null;comment:权重" json:"weigh"` // 权重
IsHide int32 `gorm:"column:is_hide;not null;comment:显示状态" json:"is_hide"` // 显示状态
Path string `gorm:"column:path;not null;comment:路由地址" json:"path"` // 路由地址
Component string `gorm:"column:component;not null;comment:组件路径" json:"component"` // 组件路径
IsLink int32 `gorm:"column:is_link;not null;comment:是否外链 1是 0否" json:"is_link"` // 是否外链 1是 0否
ModuleType string `gorm:"column:module_type;not null;comment:所属模块" json:"module_type"` // 所属模块
ModelID int32 `gorm:"column:model_id;not null;comment:模型ID" json:"model_id"` // 模型ID
IsIframe int32 `gorm:"column:is_iframe;not null;comment:是否内嵌iframe" json:"is_iframe"` // 是否内嵌iframe
IsCached int32 `gorm:"column:is_cached;not null;comment:是否缓存" json:"is_cached"` // 是否缓存
Redirect string `gorm:"column:redirect;not null;comment:路由重定向地址" json:"redirect"` // 路由重定向地址
IsAffix int32 `gorm:"column:is_affix;not null;comment:是否固定" json:"is_affix"` // 是否固定
LinkURL string `gorm:"column:link_url;not null;comment:链接地址" json:"link_url"` // 链接地址
CreatedAt time.Time `gorm:"column:created_at;comment:创建日期" json:"created_at"` // 创建日期
UpdatedAt time.Time `gorm:"column:updated_at;comment:修改日期" json:"updated_at"` // 修改日期
}
// TableName SysAuthRule's table name
func (*SysAuthRule) TableName() string {
return TableNameSysAuthRule
}

View File

@@ -1,23 +0,0 @@
// 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
const TableNameSysCasbinRule = "sys_casbin_rule"
// SysCasbinRule mapped from table <sys_casbin_rule>
type SysCasbinRule struct {
Ptype string `gorm:"column:ptype" json:"ptype"`
V0 string `gorm:"column:v0" json:"v0"`
V1 string `gorm:"column:v1" json:"v1"`
V2 string `gorm:"column:v2" json:"v2"`
V3 string `gorm:"column:v3" json:"v3"`
V4 string `gorm:"column:v4" json:"v4"`
V5 string `gorm:"column:v5" json:"v5"`
}
// TableName SysCasbinRule's table name
func (*SysCasbinRule) TableName() string {
return TableNameSysCasbinRule
}

View File

@@ -1,29 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameSysConfigDict = "sys_config_dict"
// SysConfigDict mapped from table <sys_config_dict>
type SysConfigDict struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name" json:"name"`
Key string `gorm:"column:key;not null" json:"key"`
Value string `gorm:"column:value" json:"value"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName SysConfigDict's table name
func (*SysConfigDict) TableName() string {
return TableNameSysConfigDict
}

View File

@@ -1,28 +0,0 @@
// 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 TableNameSysRole = "sys_role"
// SysRole 角色表
type SysRole struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Status int32 `gorm:"column:status;not null;comment:状态;0:禁用;1:正常" json:"status"` // 状态;0:禁用;1:正常
ListOrder int32 `gorm:"column:list_order;not null;comment:排序" json:"list_order"` // 排序
Name string `gorm:"column:name;not null;comment:角色名称" json:"name"` // 角色名称
Remark string `gorm:"column:remark;not null;comment:备注" json:"remark"` // 备注
DataScope int32 `gorm:"column:data_scope;not null;default:3;comment:数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限" json:"data_scope"` // 数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限
CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"created_at"` // 创建时间
UpdatedAt time.Time `gorm:"column:updated_at;comment:更新时间" json:"updated_at"` // 更新时间
}
// TableName SysRole's table name
func (*SysRole) TableName() string {
return TableNameSysRole
}

View File

@@ -1,34 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameSysUser = "sys_user"
// SysUser mapped from table <sys_user>
type SysUser struct {
ID string `gorm:"column:id;primaryKey;comment:ID" json:"id"` // ID
Username string `gorm:"column:username;not null;comment:账号" json:"username"` // 账号
NickName string `gorm:"column:nick_name;comment:昵称" json:"nick_name"` // 昵称
UserPassword string `gorm:"column:user_password;not null;comment:密码" json:"user_password"` // 密码
IsAdmin int32 `gorm:"column:is_admin;comment:是否是管理员" json:"is_admin"` // 是否是管理员
UserSalt string `gorm:"column:user_salt" json:"user_salt"`
UserStatus int32 `gorm:"column:user_status;comment:用户状态" json:"user_status"` // 用户状态
OtpKey string `gorm:"column:otp_key" json:"otp_key"`
OtpSecret string `gorm:"column:otp_secret" json:"otp_secret"`
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName SysUser's table name
func (*SysUser) TableName() string {
return TableNameSysUser
}

View File

@@ -1,29 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameSysUserConfigChannel = "sys_user_config_channel"
// SysUserConfigChannel mapped from table <sys_user_config_channel>
type SysUserConfigChannel struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
SysUserID string `gorm:"column:sys_user_id;not null" json:"sys_user_id"`
Name string `gorm:"column:name;not null;comment:充值通道" json:"name"` // 充值通道
Num int32 `gorm:"column:num;comment:充值轮询ck个数" json:"num"` // 充值轮询ck个数
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName SysUserConfigChannel's table name
func (*SysUserConfigChannel) TableName() string {
return TableNameSysUserConfigChannel
}

View File

@@ -1,34 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameSysUserDeduction = "sys_user_deductions"
// SysUserDeduction mapped from table <sys_user_deductions>
type SysUserDeduction struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
UserID string `gorm:"column:user_id;comment:用户ID" json:"user_id"` // 用户ID
OrderNo string `gorm:"column:order_no;comment:订单编号" json:"order_no"` // 订单编号
OrderCategory string `gorm:"column:order_category;comment:订单分类" json:"order_category"` // 订单分类
OperationStatus string `gorm:"column:operation_status;comment:操作状态" json:"operation_status"` // 操作状态
UserPaymentID int32 `gorm:"column:user_payment_id;comment:用户钱包ID" json:"user_payment_id"` // 用户钱包ID
UserPaymentRecordID int32 `gorm:"column:user_payment_record_id;comment:用户钱包流水记录ID" json:"user_payment_record_id"` // 用户钱包流水记录ID
Balance float32 `gorm:"column:balance;comment:价格" json:"balance"` // 价格
Note string `gorm:"column:note" json:"note"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName SysUserDeduction's table name
func (*SysUserDeduction) TableName() string {
return TableNameSysUserDeduction
}

View File

@@ -1,37 +0,0 @@
// 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 TableNameSysUserLoginLog = "sys_user_login_log"
// SysUserLoginLog mapped from table <sys_user_login_log>
type SysUserLoginLog struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
UserID string `gorm:"column:user_id" json:"user_id"`
/*
登录名
*/
LoginName string `gorm:"column:login_name;comment:登录名\n" json:"login_name"`
IPAddr string `gorm:"column:ip_addr;comment:登录IP" json:"ip_addr"` // 登录IP
LoginLocation string `gorm:"column:login_location;comment:登录地点" json:"login_location"` // 登录地点
UserAgent string `gorm:"column:user_agent" json:"user_agent"`
Browser string `gorm:"column:browser" json:"browser"`
Os string `gorm:"column:os" json:"os"`
CreatedAt time.Time `gorm:"column:created_at;comment:登录时间" json:"created_at"` // 登录时间
Status int32 `gorm:"column:status;comment:登录状态 1登录成功2登录失败" json:"status"` // 登录状态 1登录成功2登录失败
Message string `gorm:"column:message" json:"message"`
LoginTime time.Time `gorm:"column:login_time;comment:登录时长" json:"login_time"` // 登录时长
Module string `gorm:"column:module" json:"module"`
}
// TableName SysUserLoginLog's table name
func (*SysUserLoginLog) TableName() string {
return TableNameSysUserLoginLog
}

View File

@@ -1,36 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameSysUserPayment = "sys_user_payment"
// SysUserPayment mapped from table <sys_user_payment>
type SysUserPayment struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
UserID string `gorm:"column:user_id;primaryKey" json:"user_id"`
Balance float64 `gorm:"column:balance;not null;default:0.00;comment:余额" json:"balance"` // 余额
TotalDeposits float64 `gorm:"column:total_deposits;not null;default:0.00;comment:总充值金额" json:"total_deposits"` // 总充值金额
TotalConsumption float64 `gorm:"column:total_consumption;not null;default:0.00;comment:总消耗金额" json:"total_consumption"` // 总消耗金额
LastDepositTime time.Time `gorm:"column:last_deposit_time" json:"last_deposit_time"`
LastConsumptionTime time.Time `gorm:"column:last_consumption_time;comment:上次消耗时间" json:"last_consumption_time"` // 上次消耗时间
TotalDepositCount int32 `gorm:"column:total_deposit_count;not null;comment:总充值次数" json:"total_deposit_count"` // 总充值次数
TotalConsumptionCount int32 `gorm:"column:total_consumption_count;not null;comment:总消耗次数" json:"total_consumption_count"` // 总消耗次数
Status string `gorm:"column:status;comment:0.禁用 1.正常 3.关闭" json:"status"` // 0.禁用 1.正常 3.关闭
Notes string `gorm:"column:notes;comment:备注" json:"notes"` // 备注
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName SysUserPayment's table name
func (*SysUserPayment) TableName() string {
return TableNameSysUserPayment
}

View File

@@ -1,36 +0,0 @@
// 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"
"gorm.io/gorm"
)
const TableNameSysUserPaymentRecord = "sys_user_payment_records"
// SysUserPaymentRecord mapped from table <sys_user_payment_records>
type SysUserPaymentRecord struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键
TransactionID string `gorm:"column:transaction_id;primaryKey;comment:交易唯一ID" json:"transaction_id"` // 交易唯一ID
PaymentID int32 `gorm:"column:payment_id;not null;comment:钱包ID" json:"payment_id"` // 钱包ID
DeductionID string `gorm:"column:deduction_id;comment:预扣款ID" json:"deduction_id"` // 预扣款ID
UserID string `gorm:"column:user_id;not null" json:"user_id"`
Amount float64 `gorm:"column:amount;not null;comment:操作金额" json:"amount"` // 操作金额
TransactionType string `gorm:"column:transaction_type;not null;comment:交易类型 1deposit 2.withdrawal" json:"transaction_type"` // 交易类型 1deposit 2.withdrawal
OrderNo string `gorm:"column:order_no;comment:订单号" json:"order_no"` // 订单号
Status string `gorm:"column:status;not null;comment:交易状态0.失败 1.成功" json:"status"` // 交易状态0.失败 1.成功
Category string `gorm:"column:category" json:"category"`
Notes string `gorm:"column:notes;comment:备注" json:"notes"` // 备注
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
}
// TableName SysUserPaymentRecord's table name
func (*SysUserPaymentRecord) TableName() string {
return TableNameSysUserPaymentRecord
}

View File

@@ -1,33 +0,0 @@
// 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 TableNameUserInfo = "user_info"
// UserInfo 管理员表
type UserInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
UserID string `gorm:"column:user_id;not null;comment:用户登录号" json:"user_id"` // 用户登录号
Passwd string `gorm:"column:passwd;not null;comment:用户登录密码" json:"passwd"` // 用户登录密码
Nick string `gorm:"column:nick;not null;default:kity;comment:用户昵称" json:"nick"` // 用户昵称
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
IP string `gorm:"column:ip;not null;default:127.0.0.1;comment:用户当前ip" json:"ip"` // 用户当前ip
Status string `gorm:"column:status;not null;default:active;comment:该用户的状态 active、unactive、delete" json:"status"` // 该用户的状态 active、unactive、delete
Role string `gorm:"column:role;not null;default:nothing;comment:管理者分配的角色" json:"role"` // 管理者分配的角色
RoleName string `gorm:"column:role_name;not null;default:普通操作员;comment:操作员分配的角色名称" json:"role_name"` // 操作员分配的角色名称
OtpSecret string `gorm:"column:otp_secret" json:"otp_secret"`
OtpKey string `gorm:"column:otp_key" json:"otp_key"`
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最后一次修改时间" json:"update_time"` // 最后一次修改时间
}
// TableName UserInfo's table name
func (*UserInfo) TableName() string {
return TableNameUserInfo
}