wp-go/models/wp/wp_options.go

17 lines
558 B
Go
Raw Normal View History

2022-11-05 02:32:57 +00:00
package wp
2022-08-27 13:21:05 +00:00
type WpOptions struct {
OptionId uint64 `gorm:"column:option_id" db:"option_id" json:"option_id" form:"option_id"`
OptionName string `gorm:"column:option_name" db:"option_name" json:"option_name" form:"option_name"`
OptionValue string `gorm:"column:option_value" db:"option_value" json:"option_value" form:"option_value"`
Autoload string `gorm:"column:autoload" db:"autoload" json:"autoload" form:"autoload"`
}
func (w WpOptions) PrimaryKey() string {
return "option_id"
}
func (w WpOptions) Table() string {
return "wp_options"
}