Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlipayRisk ¶
type AlipayRisk struct {
ID int `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
Channel uint `gorm:"not null;column:channel" json:"channel"`
Pid string `gorm:"not null;column:pid" json:"pid"`
Smid string `gorm:"column:smid" json:"smid"`
TradeNos string `gorm:"column:tradeNos" json:"tradeNos"`
RiskType string `gorm:"column:risktype" json:"risktype"`
RiskLevel string `gorm:"column:risklevel" json:"risklevel"`
RiskDesc string `gorm:"column:riskdesc" json:"riskdesc"`
ComplainTime string `gorm:"column:complainTime" json:"complainTime"`
ComplainText string `gorm:"column:complainText" json:"complainText"`
Date time.Time `gorm:"column:date;type:datetime" json:"date"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
ProcessCode string `gorm:"column:process_code" json:"process_code"`
}
type Anounce ¶
type Anounce struct {
ID int `gorm:"primaryKey;autoIncrement;not null" json:"id"`
Content string `gorm:"column:content" json:"content"`
Color string `gorm:"column:color" json:"color"`
Sort int `gorm:"column:sort;not null;default:1" json:"sort"`
AddTime time.Time `gorm:"column:addtime;type:datetime" json:"add_time"`
Status int `gorm:"column:status;not null;default:1" json:"status"`
}
type Batch ¶
type Batch struct {
Batch string `gorm:"column:batch;primaryKey;not null"`
AllMoney decimal.Decimal `gorm:"column:all_money;not null;type:decimal(10,2)"`
Count int `gorm:"column:count;not null;default:0"`
Time time.Time `gorm:"column:time;type:datetime"`
Status int `gorm:"column:status;not null;default:0"`
}
type Channel ¶
type Channel struct {
ID uint `gorm:"primaryKey;autoIncrement;not null" json:"id"`
Mode int `gorm:"column:mode;default:0" json:"mode"`
Type uint `gorm:"column:type;not null" json:"type"`
Plugin string `gorm:"column:plugin;not null" json:"plugin"`
Name string `gorm:"column:name;not null" json:"name"`
Rate decimal.Decimal `gorm:"column:rate;not null;type:decimal(5,2);default:100.00" json:"rate"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
AppID string `gorm:"column:appid" json:"appid"`
AppKey string `gorm:"column:appkey" json:"appkey"`
AppSecret string `gorm:"column:appsecret" json:"appsecret"`
AppUrl string `gorm:"column:appurl" json:"appurl"`
AppMerchantID string `gorm:"column:appmchid" json:"appmchid"`
AppType string `gorm:"column:apptype" json:"apptype"`
DayTop int `gorm:"column:daytop;default:0" json:"daytop"`
DayStatus int `gorm:"column:daystatus;default:0" json:"daystatus"`
PayMin string `gorm:"column:paymin;default:0" json:"paymin"`
PayMax string `gorm:"column:paymax;default:0" json:"paymax"`
AppWxMp int `gorm:"column:appwxmp" json:"appwxmp"`
AppWxA int `gorm:"column:appwxa" json:"appwxa"`
AppSwitch int `gorm:"column:appswitch" json:"appswitch"`
}
type Domain ¶
type Domain struct {
ID uint `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
UID int `gorm:"column:uid;not null;default:0" json:"uid"`
Domain string `gorm:"column:domain;not null;default:''" json:"domain"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
AddTime time.Time `gorm:"column:addtime;type:datetime" json:"addtime"`
EndTime time.Time `gorm:"column:endtime;type:datetime" json:"endtime"`
}
type Group ¶
type Group struct {
GID uint `gorm:"primaryKey;autoIncrement;not null;column:gid" json:"gid"`
Name string `gorm:"column:name;not null;default:''" json:"name"`
Info string `gorm:"column:info;default:''" json:"info"`
IsBuy bool `gorm:"column:isbuy;default:0" json:"is_buy"`
Price decimal.Decimal `gorm:"column:price;type:decimal(10,2);default:0.00" json:"price"`
Sort int `gorm:"column:sort;default:0;not null" json:"sort"`
Expire int `gorm:"column:expire;default:0;not null" json:"expire"`
SettleOpen int `gorm:"column:settle_open;default:0;not null" json:"settle_open"`
SettleType int `gorm:"column:settle_type;default:0;not null" json:"settle_type"`
Settings string `gorm:"column:settings;default:''" json:"settings"`
}
type Log ¶
type Log struct {
ID int `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
UID int `gorm:"column:uid;not null;default:0" json:"uid"`
Type string `gorm:"column:type" json:"type"`
Date time.Time `gorm:"column:date;type:datetime" json:"date"`
IP string `gorm:"column:ip" json:"ip"`
City string `gorm:"column:city" json:"city"`
Data string `gorm:"column:data" json:"data"`
}
type Order ¶
type Order struct {
TradeNo string `gorm:"primaryKey;column:trade_no;type:char(19);not null" json:"trade_no"`
OutTradeNo string `gorm:"column:out_trade_no;not null;index:out_trade_no_uid,unique" json:"out_trade_no"`
ApiTradeNo string `gorm:"column:api_trade_no;index" json:"api_trade_no"`
UID uint `gorm:"column:uid;not null;index:out_trade_no_uid,unique" json:"uid"`
TID uint `gorm:"column:tid;not null;default:0" json:"tid"`
Type uint `gorm:"column:type;not null;" json:"type"`
Channel uint `gorm:"column:channel;not null" json:"channel"`
Name string `gorm:"column:name;not null" json:"name"`
Money decimal.Decimal `gorm:"column:money;type:decimal(10,2);not null" json:"money"`
RealMoney decimal.Decimal `gorm:"column:realmoney;type:decimal(10,2)" json:"real_money"`
GetMoney decimal.Decimal `gorm:"column:getmoney;type:decimal(10,2)" json:"get_money"`
NotifyUrl string `gorm:"column:notify_url;type:varchar(255)" json:"notify_url"`
ReturnUrl string `gorm:"column:return_url;type:varchar(255)" json:"return_url"`
Param string `gorm:"column:param" json:"param"`
AddTime time.Time `gorm:"column:addtime;type:datetime" json:"addtime"`
EndTime time.Time `gorm:"column:endtime;type:datetime" json:"endtime"`
Date time.Time `gorm:"column:date;type:date;index" json:"date"`
Domain string `gorm:"column:domain" json:"domain"`
Domain2 string `gorm:"column:domain2" json:"domain2"`
IP string `gorm:"column:ip" json:"ip"`
Buyer string `gorm:"column:buyer" json:"buyer"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
Notify int `gorm:"column:notify;not null;default:0" json:"notify"`
NotifyTime time.Time `gorm:"column:notifytime;type:datetime" json:"notifytime"`
Invite uint `gorm:"column:invite;not null;default:0;index" json:"invite"`
InviteMoney decimal.Decimal `gorm:"column:invite_money;type:decimal(10,2)" json:"invite_money"`
}
type Record ¶
type Record struct {
ID int `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
UID int `gorm:"column:uid;not null;index" json:"uid"`
Action int `gorm:"column:action;not null" json:"action"`
Money decimal.Decimal `gorm:"column:money;type:decimal(10,2)" json:"money"`
OldMoney decimal.Decimal `gorm:"column:oldmoney;type:decimal(10,2)" json:"oldmoney"`
NewMoney decimal.Decimal `gorm:"column:newmoney;type:decimal(10,2)" json:"newmoney"`
Type string `gorm:"column:type" json:"type"`
TradeNo string `gorm:"column:trade_no;index" json:"trade_no"`
Date time.Time `gorm:"column:date;type:datetime;not null" json:"date"`
}
type Regcode ¶
type Regcode struct {
ID int `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
UID int `gorm:"column:uid;not null;default:0" json:"uid"`
Type int `gorm:"column:type;not null;default:0;index" json:"type"`
Code string `gorm:"column:code;not null;index" json:"code"`
To string `gorm:"column:to;index" json:"to"`
Time int `gorm:"column:time;not null" json:"time"`
IP string `gorm:"column:ip" json:"ip"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
ErrCount int `gorm:"column:errcount;not null;default:0" json:"errcount"`
}
type Risk ¶
type Risk struct {
ID int `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
UID int `gorm:"column:uid;not null;default:0;index" json:"uid"`
Type int `gorm:"column:type;not null;default:0" json:"type"`
Url string `gorm:"column:url" json:"url"`
Content string `gorm:"column:content" json:"content"`
Date time.Time `gorm:"column:date;type:datetime" json:"date"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
}
type Roll ¶
type Roll struct {
ID uint `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
Type uint `gorm:"column:type;not null;default:0" json:"type"`
Name string `gorm:"column:name;not null;default:''" json:"name"`
Kind uint `gorm:"column:kind;not null;default:0" json:"kind"`
Info string `gorm:"column:info" json:"info"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
Index int `gorm:"column:index;not null;default:0" json:"index"`
}
type Settle ¶
type Settle struct {
ID int `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
UID int `gorm:"column:uid;not null;default:0;index" json:"uid"`
Batch string `gorm:"column:batch;index" json:"batch"`
Auto int `gorm:"column:auto;not null;default:1" json:"auto"`
Type int `gorm:"column:type;not null;default:1" json:"type"`
Account string `gorm:"column:account;not null" json:"account"`
Username string `gorm:"column:username;not null" json:"username"`
Money decimal.Decimal `gorm:"column:money;not null" json:"money"`
RealMoney decimal.Decimal `gorm:"column:realmoney;not null" json:"realmoney"`
AddTime time.Time `gorm:"column:addtime;type:datetime" json:"addtime"`
EndTime time.Time `gorm:"column:endtime;type:datetime" json:"endtime"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
TransferStatus int `gorm:"column:transfer_status;not null;default:0" json:"transfer_status"`
TransferResult string `gorm:"column:transfer_result" json:"transfer_result"`
TransferDate time.Time `gorm:"column:transfer_date;type:datetime" json:"transfer_date"`
Result string `gorm:"column:result" json:"result"`
}
type Type ¶
type Type struct {
ID uint `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
Name string `gorm:"column:name;not null;index" json:"name"`
Device uint `gorm:"column:device;not null;default:0;index" json:"device"`
ShowName string `gorm:"column:showname;not null;default:''" json:"showname"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
}
type User ¶
type User struct {
UID uint `gorm:"primaryKey;autoIncrement;not null;column:uid" json:"uid"`
GID uint `gorm:"column:gid;not null;default:0" json:"gid"`
UpID uint `gorm:"column:upid;not null;default:0" json:"upid"`
Key string `gorm:"column:key;not null" json:"key"`
Password string `gorm:"column:pwd" json:"pwd"`
Account string `gorm:"column:account" json:"account"`
Username string `gorm:"column:username" json:"username"`
CodeName string `gorm:"column:codename" json:"codename"`
SettleID int `gorm:"column:settle_id;not null;default:1" json:"settle_id"`
AlipayUid string `gorm:"column:alipay_uid" json:"alipay_uid"`
QQUid string `gorm:"column:qq_uid" json:"qq_uid"`
WxUid string `gorm:"column:wx_uid" json:"wx_uid"`
Money decimal.Decimal `gorm:"column:money;not null;default:0.00" json:"money"`
Email string `gorm:"column:email;index" json:"email"`
Phone string `gorm:"column:phone;index" json:"phone"`
QQ string `gorm:"column:qq" json:"qq"`
Url string `gorm:"column:url" json:"url"`
Cert int `gorm:"column:cert;not null;default:0" json:"cert"`
CertType int `gorm:"column:certtype;not null;default:0" json:"certtype"`
CertNo string `gorm:"column:certno" json:"certno"`
CertName string `gorm:"column:certname" json:"certname"`
CertTime time.Time `gorm:"column:certtime;type:datetime" json:"certtime"`
CertToken string `gorm:"column:certtoken" json:"certtoken"`
CertCorpNo string `gorm:"column:certcorpno" json:"certcorpno"`
CertCorpName string `gorm:"column:certcorpname" json:"certcorpname"`
AddTime time.Time `gorm:"column:addtime;type:datetime" json:"addtime"`
LastTime time.Time `gorm:"column:lasttime;type:datetime" json:"lasttime"`
EndTime time.Time `gorm:"column:endtime;type:datetime" json:"endtime"`
Level int `gorm:"column:level;not null;default:1" json:"level"`
Pay int `gorm:"column:pay;not null;default:1" json:"pay"`
Settle int `gorm:"column:settle;not null;default:1" json:"settle"`
KeyLogin int `gorm:"column:keylogin;not null;default:1" json:"keylogin"`
Apply int `gorm:"column:apply;not null;default:0" json:"apply"`
Mode int `gorm:"column:mode;not null;default:0" json:"mode"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
Refund int `gorm:"column:refund;not null;default:0" json:"refund"`
ChannelInfo string `gorm:"column:channelinfo" json:"channelinfo"`
OrderName string `gorm:"column:ordername" json:"ordername"`
}
type Weixin ¶
type Weixin struct {
ID uint `gorm:"primaryKey;autoIncrement;not null;column:id" json:"id"`
Type uint `gorm:"column:type;not null;default:0" json:"type"`
Name string `gorm:"column:name;not null" json:"name"`
Status int `gorm:"column:status;not null;default:0" json:"status"`
AppID string `gorm:"column:appid" json:"appid"`
AppSecret string `gorm:"column:appsecret" json:"appsecret"`
}
Click to show internal directories.
Click to hide internal directories.