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.
16 lines
568 B
16 lines
568 B
package promotion
|
|
|
|
import "github.com/golangkit/formatime"
|
|
|
|
type TimeItem struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id,omitempty"`
|
|
PromotionID uint `gorm:"column:promotion_id" json:"-"`
|
|
PromotionName string `gorm:"column:promotion_name" json:"promotionName"`
|
|
StartTime formatime.Second `gorm:"column:start_time" json:"startTime,omitempty"`
|
|
EndTime formatime.Second `gorm:"column:end_time" json:"endTime,omitempty"`
|
|
}
|
|
|
|
func (*TimeItem) TableName() string {
|
|
return "recook_promotion_time_item"
|
|
}
|