model

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameSmsCoupon = "sms_coupon"
View Source
const TableNameSmsCouponHistory = "sms_coupon_history"
View Source
const TableNameSmsCouponProductCategoryRelation = "sms_coupon_product_category_relation"
View Source
const TableNameSmsCouponProductRelation = "sms_coupon_product_relation"
View Source
const TableNameSmsFlashPromotion = "sms_flash_promotion"
View Source
const TableNameSmsFlashPromotionLog = "sms_flash_promotion_log"
View Source
const TableNameSmsFlashPromotionProductRelation = "sms_flash_promotion_product_relation"
View Source
const TableNameSmsFlashPromotionSession = "sms_flash_promotion_session"
View Source
const TableNameSmsHomeAdvertise = "sms_home_advertise"
View Source
const TableNameSmsHomeBrand = "sms_home_brand"
View Source
const TableNameSmsHomeNewProduct = "sms_home_new_product"
View Source
const TableNameSmsHomeRecommendProduct = "sms_home_recommend_product"
View Source
const TableNameSmsHomeRecommendSubject = "sms_home_recommend_subject"

Variables

This section is empty.

Functions

This section is empty.

Types

type SmsCoupon

type SmsCoupon struct {
	ID   int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Type int32 `` // 优惠券类型;0->全场赠券;1->会员赠券;2->购物赠券;3->注册赠券
	/* 135-byte string literal not displayed */
	Name         string    `gorm:"column:name;not null;comment:名称" json:"name"`                                   // 名称
	Platform     int32     `gorm:"column:platform;not null;comment:使用平台:0->全部;1->移动;2->PC" json:"platform"`       // 使用平台:0->全部;1->移动;2->PC
	Count        int32     `gorm:"column:count;not null;comment:数量" json:"count"`                                 // 数量
	Amount       float64   `gorm:"column:amount;not null;comment:金额" json:"amount"`                               // 金额
	PerLimit     int32     `gorm:"column:per_limit;not null;comment:每人限领张数" json:"per_limit"`                     // 每人限领张数
	MinPoint     float64   `gorm:"column:min_point;not null;comment:使用门槛;0表示无门槛" json:"min_point"`                // 使用门槛;0表示无门槛
	StartTime    time.Time `gorm:"column:start_time;not null;comment:开始时间" json:"start_time"`                     // 开始时间
	EndTime      time.Time `gorm:"column:end_time;not null;comment:结束时间" json:"end_time"`                         // 结束时间
	UseType      int32     `gorm:"column:use_type;not null;comment:使用类型:0->全场通用;1->指定分类;2->指定商品" json:"use_type"` // 使用类型:0->全场通用;1->指定分类;2->指定商品
	Note         string    `gorm:"column:note;not null;comment:备注" json:"note"`                                   // 备注
	PublishCount int32     `gorm:"column:publish_count;not null;comment:发行数量" json:"publish_count"`               // 发行数量
	UseCount     int32     `gorm:"column:use_count;not null;comment:已使用数量" json:"use_count"`                      // 已使用数量
	ReceiveCount int32     `gorm:"column:receive_count;not null;comment:领取数量" json:"receive_count"`               // 领取数量
	EnableTime   time.Time `gorm:"column:enable_time;not null;comment:可以领取的日期" json:"enable_time"`                // 可以领取的日期
	Code         string    `gorm:"column:code;not null;comment:优惠码" json:"code"`                                  // 优惠码
	MemberLevel  int32     `gorm:"column:member_level;not null;comment:可领取的会员类型:0->无限时" json:"member_level"`      // 可领取的会员类型:0->无限时
}

SmsCoupon 优惠券表

func (*SmsCoupon) TableName

func (*SmsCoupon) TableName() string

TableName SmsCoupon's table name

type SmsCouponHistory

type SmsCouponHistory struct {
	ID             int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	CouponID       int64     `gorm:"column:coupon_id;not null;comment:优惠券id" json:"coupon_id"`                       // 优惠券id
	MemberID       int64     `gorm:"column:member_id;not null;comment:会员id" json:"member_id"`                        // 会员id
	CouponCode     string    `gorm:"column:coupon_code;not null;comment:优惠码" json:"coupon_code"`                     // 优惠码
	MemberNickname string    `gorm:"column:member_nickname;not null;comment:领取人昵称" json:"member_nickname"`           // 领取人昵称
	GetType        int32     `gorm:"column:get_type;not null;comment:获取类型:0->后台赠送;1->主动获取" json:"get_type"`          // 获取类型:0->后台赠送;1->主动获取
	CreateTime     time.Time `gorm:"column:create_time;not null;comment:领取时间" json:"create_time"`                    // 领取时间
	UseStatus      int32     `gorm:"column:use_status;not null;comment:使用状态:0->未使用;1->已使用;2->已过期" json:"use_status"` // 使用状态:0->未使用;1->已使用;2->已过期
	UseTime        time.Time `gorm:"column:use_time;not null;comment:使用时间" json:"use_time"`                          // 使用时间
	OrderID        int64     `gorm:"column:order_id;not null;comment:订单编号" json:"order_id"`                          // 订单编号
	OrderSn        string    `gorm:"column:order_sn;not null;comment:订单号码" json:"order_sn"`                          // 订单号码
}

SmsCouponHistory 优惠券使用、领取历史表

func (*SmsCouponHistory) TableName

func (*SmsCouponHistory) TableName() string

TableName SmsCouponHistory's table name

type SmsCouponProductCategoryRelation

type SmsCouponProductCategoryRelation struct {
	ID                  int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	CouponID            int64  `gorm:"column:coupon_id;not null;comment:优惠券id" json:"coupon_id"`                          // 优惠券id
	ProductCategoryID   int64  `gorm:"column:product_category_id;not null;comment:产品分类id" json:"product_category_id"`     // 产品分类id
	ProductCategoryName string `gorm:"column:product_category_name;not null;comment:产品分类名称" json:"product_category_name"` // 产品分类名称
	ParentCategoryName  string `gorm:"column:parent_category_name;not null;comment:父分类名称" json:"parent_category_name"`    // 父分类名称
}

SmsCouponProductCategoryRelation 优惠券和产品分类关系表

func (*SmsCouponProductCategoryRelation) TableName

TableName SmsCouponProductCategoryRelation's table name

type SmsCouponProductRelation

type SmsCouponProductRelation struct {
	ID          int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	CouponID    int64  `gorm:"column:coupon_id;not null;comment:优惠券id" json:"coupon_id"`      // 优惠券id
	ProductID   int64  `gorm:"column:product_id;not null;comment:产品id" json:"product_id"`     // 产品id
	ProductName string `gorm:"column:product_name;not null;comment:商品名称" json:"product_name"` // 商品名称
	ProductSn   string `gorm:"column:product_sn;not null;comment:商品编码" json:"product_sn"`     // 商品编码
}

SmsCouponProductRelation 优惠券和产品的关系表

func (*SmsCouponProductRelation) TableName

func (*SmsCouponProductRelation) TableName() string

TableName SmsCouponProductRelation's table name

type SmsFlashPromotion

type SmsFlashPromotion struct {
	ID         int64     `gorm:"column:id;primaryKey;autoIncrement:true;comment:编号" json:"id"` // 编号
	Title      string    `gorm:"column:title;not null;comment:标题" json:"title"`                // 标题
	StartDate  time.Time `gorm:"column:start_date;not null;comment:开始日期" json:"start_date"`    // 开始日期
	EndDate    time.Time `gorm:"column:end_date;not null;comment:结束日期" json:"end_date"`        // 结束日期
	Status     int32     `gorm:"column:status;not null;comment:上下线状态" json:"status"`           // 上下线状态
	CreateTime time.Time `gorm:"column:create_time;not null;comment:创建时间" json:"create_time"`  // 创建时间
}

SmsFlashPromotion 限时购表

func (*SmsFlashPromotion) TableName

func (*SmsFlashPromotion) TableName() string

TableName SmsFlashPromotion's table name

type SmsFlashPromotionLog

type SmsFlashPromotionLog struct {
	ID            int64     `gorm:"column:id;primaryKey;autoIncrement:true;comment:编号" json:"id"`        // 编号
	MemberID      int64     `gorm:"column:member_id;not null;comment:会员id" json:"member_id"`             // 会员id
	ProductID     int64     `gorm:"column:product_id;not null;comment:商品id" json:"product_id"`           // 商品id
	MemberPhone   string    `gorm:"column:member_phone;not null;comment:会员电话" json:"member_phone"`       // 会员电话
	ProductName   string    `gorm:"column:product_name;not null;comment:商品名称" json:"product_name"`       // 商品名称
	SubscribeTime time.Time `gorm:"column:subscribe_time;not null;comment:会员订阅时间" json:"subscribe_time"` // 会员订阅时间
	SendTime      time.Time `gorm:"column:send_time;not null;comment:发送时间" json:"send_time"`             // 发送时间
}

SmsFlashPromotionLog 限时购通知记录

func (*SmsFlashPromotionLog) TableName

func (*SmsFlashPromotionLog) TableName() string

TableName SmsFlashPromotionLog's table name

type SmsFlashPromotionProductRelation

type SmsFlashPromotionProductRelation struct {
	ID                      int64   `gorm:"column:id;primaryKey;autoIncrement:true;comment:编号" json:"id"`                            // 编号
	FlashPromotionID        int64   `gorm:"column:flash_promotion_id;not null;comment:限时购id" json:"flash_promotion_id"`              // 限时购id
	FlashPromotionSessionID int64   `gorm:"column:flash_promotion_session_id;not null;comment:编号" json:"flash_promotion_session_id"` // 编号
	ProductID               int64   `gorm:"column:product_id;not null;comment:商品id" json:"product_id"`                               // 商品id
	FlashPromotionPrice     float64 `gorm:"column:flash_promotion_price;not null;comment:限时购价格" json:"flash_promotion_price"`        // 限时购价格
	FlashPromotionCount     int32   `gorm:"column:flash_promotion_count;not null;comment:限时购数量" json:"flash_promotion_count"`        // 限时购数量
	FlashPromotionLimit     int32   `gorm:"column:flash_promotion_limit;not null;comment:每人限购数量" json:"flash_promotion_limit"`       // 每人限购数量
	Sort                    int32   `gorm:"column:sort;not null;comment:排序" json:"sort"`                                             // 排序
}

SmsFlashPromotionProductRelation 商品限时购与商品关系表

func (*SmsFlashPromotionProductRelation) TableName

TableName SmsFlashPromotionProductRelation's table name

type SmsFlashPromotionSession

type SmsFlashPromotionSession struct {
	ID         int64     `gorm:"column:id;primaryKey;autoIncrement:true;comment:编号" json:"id"`   // 编号
	Name       string    `gorm:"column:name;not null;comment:场次名称" json:"name"`                  // 场次名称
	StartTime  time.Time `gorm:"column:start_time;not null;comment:每日开始时间" json:"start_time"`    // 每日开始时间
	EndTime    time.Time `gorm:"column:end_time;not null;comment:每日结束时间" json:"end_time"`        // 每日结束时间
	Status     int32     `gorm:"column:status;not null;comment:启用状态:0->不启用;1->启用" json:"status"` // 启用状态:0->不启用;1->启用
	CreateTime time.Time `gorm:"column:create_time;not null;comment:创建时间" json:"create_time"`    // 创建时间
}

SmsFlashPromotionSession 限时购场次表

func (*SmsFlashPromotionSession) TableName

func (*SmsFlashPromotionSession) TableName() string

TableName SmsFlashPromotionSession's table name

type SmsHomeAdvertise

type SmsHomeAdvertise struct {
	ID         int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name       string    `gorm:"column:name;not null;comment:名称" json:"name"`                        // 名称
	Type       int32     `gorm:"column:type;not null;comment:轮播位置:0->PC首页轮播;1->app首页轮播" json:"type"` // 轮播位置:0->PC首页轮播;1->app首页轮播
	Pic        string    `gorm:"column:pic;not null;comment:图片地址" json:"pic"`                        // 图片地址
	StartTime  time.Time `gorm:"column:start_time;not null;comment:开始时间" json:"start_time"`          // 开始时间
	EndTime    time.Time `gorm:"column:end_time;not null;comment:结束时间" json:"end_time"`              // 结束时间
	Status     int32     `gorm:"column:status;not null;comment:上下线状态:0->下线;1->上线" json:"status"`     // 上下线状态:0->下线;1->上线
	ClickCount int32     `gorm:"column:click_count;not null;comment:点击数" json:"click_count"`         // 点击数
	OrderCount int32     `gorm:"column:order_count;not null;comment:下单数" json:"order_count"`         // 下单数
	URL        string    `gorm:"column:url;not null;comment:链接地址" json:"url"`                        // 链接地址
	Note       *string   `gorm:"column:note;comment:备注" json:"note"`                                 // 备注
	Sort       int32     `gorm:"column:sort;not null;comment:排序" json:"sort"`                        // 排序
}

SmsHomeAdvertise 首页轮播广告表

func (*SmsHomeAdvertise) TableName

func (*SmsHomeAdvertise) TableName() string

TableName SmsHomeAdvertise's table name

type SmsHomeBrand

type SmsHomeBrand struct {
	ID              int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	BrandID         int64  `gorm:"column:brand_id;not null;comment:商品品牌id" json:"brand_id"`                            // 商品品牌id
	BrandName       string `gorm:"column:brand_name;not null;comment:商品品牌名称" json:"brand_name"`                        // 商品品牌名称
	RecommendStatus int32  `gorm:"column:recommend_status;not null;comment:推荐状态:0->不推荐;1->推荐" json:"recommend_status"` // 推荐状态:0->不推荐;1->推荐
	Sort            int32  `gorm:"column:sort;not null;comment:排序" json:"sort"`                                        // 排序
}

SmsHomeBrand 首页推荐品牌表

func (*SmsHomeBrand) TableName

func (*SmsHomeBrand) TableName() string

TableName SmsHomeBrand's table name

type SmsHomeNewProduct

type SmsHomeNewProduct struct {
	ID              int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ProductID       int64  `gorm:"column:product_id;not null;comment:商品id" json:"product_id"`                          // 商品id
	ProductName     string `gorm:"column:product_name;not null;comment:商品名称" json:"product_name"`                      // 商品名称
	RecommendStatus int32  `gorm:"column:recommend_status;not null;comment:推荐状态:0->不推荐;1->推荐" json:"recommend_status"` // 推荐状态:0->不推荐;1->推荐
	Sort            int32  `gorm:"column:sort;not null;comment:排序" json:"sort"`                                        // 排序
}

SmsHomeNewProduct 新鲜好物表

func (*SmsHomeNewProduct) TableName

func (*SmsHomeNewProduct) TableName() string

TableName SmsHomeNewProduct's table name

type SmsHomeRecommendProduct

type SmsHomeRecommendProduct struct {
	ID              int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ProductID       int64  `gorm:"column:product_id;not null;comment:商品id" json:"product_id"`                          // 商品id
	ProductName     string `gorm:"column:product_name;not null;comment:商品名称" json:"product_name"`                      // 商品名称
	RecommendStatus int32  `gorm:"column:recommend_status;not null;comment:推荐状态:0->不推荐;1->推荐" json:"recommend_status"` // 推荐状态:0->不推荐;1->推荐
	Sort            int32  `gorm:"column:sort;not null;comment:排序" json:"sort"`                                        // 排序
}

SmsHomeRecommendProduct 人气推荐商品表

func (*SmsHomeRecommendProduct) TableName

func (*SmsHomeRecommendProduct) TableName() string

TableName SmsHomeRecommendProduct's table name

type SmsHomeRecommendSubject

type SmsHomeRecommendSubject struct {
	ID              int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	SubjectID       int64  `gorm:"column:subject_id;not null;comment:专题id" json:"subject_id"`                          // 专题id
	SubjectName     string `gorm:"column:subject_name;not null;comment:专题名称" json:"subject_name"`                      // 专题名称
	RecommendStatus int32  `gorm:"column:recommend_status;not null;comment:推荐状态:0->不推荐;1->推荐" json:"recommend_status"` // 推荐状态:0->不推荐;1->推荐
	Sort            int32  `gorm:"column:sort;not null;comment:排序" json:"sort"`                                        // 排序
}

SmsHomeRecommendSubject 首页推荐专题表

func (*SmsHomeRecommendSubject) TableName

func (*SmsHomeRecommendSubject) TableName() string

TableName SmsHomeRecommendSubject's table name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL