19 lines
620 B
Go
19 lines
620 B
Go
package radio
|
|
|
|
import (
|
|
"sundynix-go/global"
|
|
"time"
|
|
)
|
|
|
|
type Vip struct {
|
|
global.BaseModel
|
|
Price int `gorm:"default:0;comment:价格,单位,分 " json:"price"` //vip价格 单位:分
|
|
DiscountedPrice int `gorm:"default:0;comment:优惠价格,单位,分 " json:"discountedPrice"` // 优惠价格 单位:分
|
|
ExpiredAt time.Time `gorm:"index;column:expired_at" json:"expiredAt"` //过期时间
|
|
Remark string `gorm:"column:remark" json:"remark"` //备注
|
|
}
|
|
|
|
func (Vip) TableName() string {
|
|
return "sundynix_radio_vip_config"
|
|
}
|