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.
34 lines
904 B
34 lines
904 B
package special_sale
|
|
|
|
import (
|
|
"github.com/golangkit/formatime"
|
|
)
|
|
|
|
//@特卖位配置表
|
|
type SpecialSaleModel struct {
|
|
Id uint `json:"id"`
|
|
Title string `json:"title"`
|
|
Url string `json:"url"`
|
|
StartTime formatime.Date `json:"start_time"`
|
|
EndTime formatime.Date `json:"end_time"`
|
|
CreateTime formatime.Second `json:"create_time"`
|
|
GysId uint `json:"gys_id"`
|
|
Type int `json:"type"`
|
|
}
|
|
|
|
func (r *SpecialSaleModel) TableName() string {
|
|
return "recook_goods_special_sale"
|
|
}
|
|
|
|
//特卖位商品关联表
|
|
type SpecialSaleAssociationModel struct {
|
|
Id uint `json:"id"`
|
|
GoodsId uint `json:"goods_id"`
|
|
GysId uint `json:"gys_id"`
|
|
SpecialSaleId uint `json:"special_sale_id"`
|
|
}
|
|
|
|
func (s *SpecialSaleAssociationModel) TableName() string {
|
|
return "recook_goods_special_sale_association"
|
|
}
|