Create & Init Project...

This commit is contained in:
2019-04-22 18:49:16 +08:00
commit fc4fa37393
25440 changed files with 4054998 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package whitelist
// Whitelist tool.
type Whitelist struct {
ID int64 `form:"id" json:"id"`
MID int64 `form:"mid" json:"mid" gorm:"column:mid"`
AdminMID int64 `form:"admin_mid" json:"admin_mid" gorm:"column:admin_mid"`
Comment string `form:"comment" json:"comment"`
State int8 `form:"state" json:"state"`
Type int8 `form:"type" json:"type"`
Fans int64 `form:"fans" json:"fans" gorm:"-"`
CurrentLevel int32 `form:"current_level" json:"current_level" gorm:"-"`
Name string `form:"name" json:"name" gorm:"-"`
Ctime string `form:"ctime" json:"ctime" gorm:"column:ctime"`
Mtime string `form:"mtime" json:"mtime" gorm:"column:mtime"`
}
// TableName fn
func (Whitelist) TableName() string {
return "whitelist"
}