You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.8 KiB
37 lines
1.8 KiB
package user
|
|
|
|
import "github.com/golangkit/formatime"
|
|
|
|
type DiamondRegister struct {
|
|
ID uint `gorm:"column:id" json:"id"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
Phone string `gorm:"column:phone" json:"phone"`
|
|
Wechat string `gorm:"column:wechat" json:"wechat"`
|
|
Province string `gorm:"column:province" json:"province"`
|
|
City string `gorm:"column:city" json:"city"`
|
|
Zone string `gorm:"column:zone" json:"zone"`
|
|
SocialFansNum int `gorm:"column:social_fans_num" json:"social_fans_num"`
|
|
PlatformBefore string `gorm:"column:platform_before" json:"platform_before"`
|
|
HighestSocialRecord int `gorm:"column:highest_social_record" json:"highest_social_record"`
|
|
IntroUserId uint `gorm:"column:intro_user_id" json:"intro_user_id"`
|
|
RegisterUrl string `gorm:"column:register_url" json:"registerUrl"`
|
|
Status int `gorm:"column:status" json:"status"`
|
|
Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
AuditManangerId uint `gorm:"column:audit_manager_id" json:"audit_manager_id"`
|
|
AuditTime formatime.Second `gorm:"column:audit_time" json:"audit_time"`
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
|
|
IntroUserInfo Information `gorm:"-"`
|
|
}
|
|
|
|
const (
|
|
// 1 wait 2 pass 3 refuse
|
|
WaitForDiamondRegisterStatus = 1
|
|
PassForDiamondRegisterStatus = 2
|
|
RefuseForDiamondRegisterStatus = 3
|
|
)
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (i *DiamondRegister) TableName() string {
|
|
return "recook_diamond_register"
|
|
}
|