first
This commit is contained in:
63
data/orders.go
Normal file
63
data/orders.go
Normal file
@@ -0,0 +1,63 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
Orders struct {
|
||||
OrdersId int64 `json:"orders_id" gorm:"primary_key;column:orders_id"`
|
||||
OrdersNo string `json:"orders_no" gorm:"column:orders_no"`
|
||||
TradeNo string `json:"trade_no" gorm:"column:trade_no"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CourseId int64 `json:"course_id" gorm:"column:course_id"`
|
||||
PayMoney float64 `json:"pay_money" gorm:"column:pay_money"`
|
||||
PayWay int `json:"pay_way" gorm:"column:pay_way"`
|
||||
Status int `json:"status" gorm:"column:status"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
RefundContent string `json:"refund_content" gorm:"column:refund_content"`
|
||||
OrdersType int `json:"orders_type" gorm:"column:orders_type"`
|
||||
VipNameType int `json:"vip_name_type" gorm:"column:vip_name_type"`
|
||||
CourseDetailsId int64 `json:"course_details_id" gorm:"column:course_details_id"`
|
||||
CourseDetailsIds string `json:"course_details_ids" gorm:"column:course_details_ids"`
|
||||
QdMoney float64 `json:"qd_money" gorm:"column:qd_money"`
|
||||
SysUserId int64 `json:"sys_user_id" gorm:"column:sys_user_id"`
|
||||
OneMoney float64 `json:"one_money" gorm:"column:one_money"`
|
||||
OneUserId int64 `json:"one_user_id" gorm:"column:one_user_id"`
|
||||
TwoMoney float64 `json:"two_money" gorm:"column:two_money"`
|
||||
TwoUserId int64 `json:"two_user_id" gorm:"column:two_user_id"`
|
||||
PayTime string `json:"pay_time" gorm:"column:pay_time"`
|
||||
PayDiamond float64 `json:"pay_diamond" gorm:"column:pay_diamond"`
|
||||
Diamond int32 `json:"diamond" gorm:"column:diamond"`
|
||||
}
|
||||
|
||||
OrdersCopy1 struct {
|
||||
OrdersId int64 `json:"orders_id" gorm:"primary_key;column:orders_id"`
|
||||
OrdersNo string `json:"orders_no" gorm:"column:orders_no"`
|
||||
TradeNo string `json:"trade_no" gorm:"column:trade_no"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CourseId int64 `json:"course_id" gorm:"column:course_id"`
|
||||
PayMoney float64 `json:"pay_money" gorm:"column:pay_money"`
|
||||
PayWay int `json:"pay_way" gorm:"column:pay_way"`
|
||||
Status int `json:"status" gorm:"column:status"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
RefundContent string `json:"refund_content" gorm:"column:refund_content"`
|
||||
OrdersType int `json:"orders_type" gorm:"column:orders_type"`
|
||||
VipNameType int `json:"vip_name_type" gorm:"column:vip_name_type"`
|
||||
CourseDetailsId int64 `json:"course_details_id" gorm:"column:course_details_id"`
|
||||
CourseDetailsIds string `json:"course_details_ids" gorm:"column:course_details_ids"`
|
||||
QdMoney float64 `json:"qd_money" gorm:"column:qd_money"`
|
||||
SysUserId int64 `json:"sys_user_id" gorm:"column:sys_user_id"`
|
||||
OneMoney float64 `json:"one_money" gorm:"column:one_money"`
|
||||
OneUserId int64 `json:"one_user_id" gorm:"column:one_user_id"`
|
||||
TwoMoney float64 `json:"two_money" gorm:"column:two_money"`
|
||||
TwoUserId int64 `json:"two_user_id" gorm:"column:two_user_id"`
|
||||
PayTime string `json:"pay_time" gorm:"column:pay_time"`
|
||||
PayDiamond float64 `json:"pay_diamond" gorm:"column:pay_diamond"`
|
||||
Diamond int32 `json:"diamond" gorm:"column:diamond"`
|
||||
}
|
||||
)
|
||||
|
||||
func (o *Orders) TableName() string {
|
||||
return "orders"
|
||||
}
|
||||
|
||||
func (o *OrdersCopy1) TableName() string {
|
||||
return "orders_copy1"
|
||||
}
|
||||
45
data/pau_details.go
Normal file
45
data/pau_details.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
PayDetails struct {
|
||||
Id int64 `json:"id" gorm:"primary_key;column:id"`
|
||||
Classify int `json:"classify" gorm:"column:classify"`
|
||||
TradeNo string `json:"trade_no" gorm:"column:trade_no"`
|
||||
Money float64 `json:"money" gorm:"column:money"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
PayTime string `json:"pay_time" gorm:"column:pay_time"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
Remark string `json:"remark" gorm:"column:remark"`
|
||||
OrderId string `json:"order_id" gorm:"column:order_id"`
|
||||
ProductId string `json:"product_id" gorm:"column:product_id"`
|
||||
PayDiamond float64 `json:"pay_diamond" gorm:"column:pay_diamond"`
|
||||
Diamond int `json:"diamond" gorm:"column:diamond"`
|
||||
ThirdOrderNo string `json:"third_order_no" gorm:"column:third_order_no"`
|
||||
}
|
||||
|
||||
PayDetailsCopy1 struct {
|
||||
Id int64 `json:"id" gorm:"primary_key;column:id"`
|
||||
Classify int `json:"classify" gorm:"column:classify"`
|
||||
TradeNo string `json:"trade_no" gorm:"column:trade_no"`
|
||||
Money float64 `json:"money" gorm:"column:money"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
PayTime string `json:"pay_time" gorm:"column:pay_time"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
Remark string `json:"remark" gorm:"column:remark"`
|
||||
OrderId string `json:"order_id" gorm:"column:order_id"`
|
||||
ProductId string `json:"product_id" gorm:"column:product_id"`
|
||||
PayDiamond float64 `json:"pay_diamond" gorm:"column:pay_diamond"`
|
||||
Diamond int `json:"diamond" gorm:"column:diamond"`
|
||||
ThirdOrderNo string `json:"third_order_no" gorm:"column:third_order_no"`
|
||||
}
|
||||
)
|
||||
|
||||
func (PayDetails) TableName() string {
|
||||
return "pay_details"
|
||||
}
|
||||
|
||||
func (PayDetailsCopy1) TableName() string {
|
||||
return "pay_details_copy1"
|
||||
}
|
||||
45
data/user_money_details.go
Normal file
45
data/user_money_details.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
UserMoneyDetails struct {
|
||||
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
SysUserId int64 `json:"sys_user_id" gorm:"column:sys_user_id"`
|
||||
ByUserId int64 `json:"by_user_id" gorm:"column:by_user_id"`
|
||||
Title string `json:"title" gorm:"column:title"`
|
||||
Classify int `json:"classify" gorm:"column:classify"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
State int `json:"state" gorm:"column:state"`
|
||||
Money float64 `json:"money" gorm:"column:money"`
|
||||
Content string `json:"content" gorm:"column:content"`
|
||||
MoneyType int `json:"money_type" gorm:"column:money_type"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
||||
AwardCount int `json:"award_count" gorm:"column:award_count"`
|
||||
}
|
||||
|
||||
UserMoneyDetailsCopy1 struct {
|
||||
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
||||
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
||||
SysUserId int64 `json:"sys_user_id" gorm:"column:sys_user_id"`
|
||||
ByUserId int64 `json:"by_user_id" gorm:"column:by_user_id"`
|
||||
Title string `json:"title" gorm:"column:title"`
|
||||
Classify int `json:"classify" gorm:"column:classify"`
|
||||
Type int `json:"type" gorm:"column:type"`
|
||||
State int `json:"state" gorm:"column:state"`
|
||||
Money float64 `json:"money" gorm:"column:money"`
|
||||
Content string `json:"content" gorm:"column:content"`
|
||||
MoneyType int `json:"money_type" gorm:"column:money_type"`
|
||||
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
||||
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
||||
AwardCount int `json:"award_count" gorm:"column:award_count"`
|
||||
}
|
||||
)
|
||||
|
||||
func (UserMoneyDetails) TableName() string {
|
||||
return "user_money_details"
|
||||
}
|
||||
|
||||
func (UserMoneyDetailsCopy1) TableName() string {
|
||||
return "user_money_details_copy1"
|
||||
}
|
||||
Reference in New Issue
Block a user