Documentation
¶
Index ¶
Constants ¶
const TableNameCmsHelp = "cms_help"
const TableNameCmsHelpCategory = "cms_help_category"
const TableNameCmsMemberReport = "cms_member_report"
const TableNameCmsPreferredArea = "cms_preferred_area"
const TableNameCmsPreferredAreaProductRelation = "cms_preferred_area_product_relation"
const TableNameCmsSubject = "cms_subject"
const TableNameCmsSubjectCategory = "cms_subject_category"
const TableNameCmsSubjectComment = "cms_subject_comment"
const TableNameCmsSubjectProductRelation = "cms_subject_product_relation"
const TableNameCmsTopic = "cms_topic"
const TableNameCmsTopicCategory = "cms_topic_category"
const TableNameCmsTopicComment = "cms_topic_comment"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmsHelp ¶
type CmsHelp struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID CategoryID int64 `gorm:"column:category_id;not null;comment:分类ID" json:"category_id"` // 分类ID Icon string `gorm:"column:icon;not null;comment:图标" json:"icon"` // 图标 Title string `gorm:"column:title;not null;comment:标题" json:"title"` // 标题 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 ReadCount int32 `gorm:"column:read_count;not null;comment:阅读量" json:"read_count"` // 阅读量 Content string `gorm:"column:content;not null;comment:内容" json:"content"` // 内容 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsHelp 帮助表
type CmsHelpCategory ¶
type CmsHelpCategory struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID Name string `gorm:"column:name;not null;comment:分类名称" json:"name"` // 分类名称 Icon string `gorm:"column:icon;not null;comment:分类图标" json:"icon"` // 分类图标 HelpCount int32 `gorm:"column:help_count;not null;comment:专题数量" json:"help_count"` // 专题数量 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsHelpCategory 帮助分类表
func (*CmsHelpCategory) TableName ¶
func (*CmsHelpCategory) TableName() string
TableName CmsHelpCategory's table name
type CmsMemberReport ¶
type CmsMemberReport struct { ID int64 `gorm:"column:id;primaryKey;comment:编号" json:"id"` // 编号 ReportType int32 `` // 举报类型:0->商品评价;1->话题内容;2->用户评论 /* 128-byte string literal not displayed */ ReportMemberName string `gorm:"column:report_member_name;not null;comment:举报人" json:"report_member_name"` // 举报人 ReportObject string `gorm:"column:report_object;not null;comment:被举报对象" json:"report_object"` // 被举报对象 ReportStatus int32 `gorm:"column:report_status;not null;comment:举报状态:0->未处理;1->已处理" json:"report_status"` // 举报状态:0->未处理;1->已处理 HandleStatus int32 `gorm:"column:handle_status;not null;comment:处理结果:0->无效;1->有效;2->恶意" json:"handle_status"` // 处理结果:0->无效;1->有效;2->恶意 Note string `gorm:"column:note;not null;comment:备注" json:"note"` // 备注 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 }
CmsMemberReport 用户举报表
func (*CmsMemberReport) TableName ¶
func (*CmsMemberReport) TableName() string
TableName CmsMemberReport's table name
type CmsPreferredArea ¶ added in v0.0.2
type CmsPreferredArea struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID Name string `gorm:"column:name;not null;comment:专区名称" json:"name"` // 专区名称 SubTitle string `gorm:"column:sub_title;not null;comment:子标题" json:"sub_title"` // 子标题 Pic string `gorm:"column:pic;not null;comment:展示图片" json:"pic"` // 展示图片 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsPreferredArea 优选专区
func (*CmsPreferredArea) TableName ¶ added in v0.0.2
func (*CmsPreferredArea) TableName() string
TableName CmsPreferredArea's table name
type CmsPreferredAreaProductRelation ¶ added in v0.0.2
type CmsPreferredAreaProductRelation struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID PreferredAreaID int64 `gorm:"column:preferred_area_id;not null;comment:优选专区ID" json:"preferred_area_id"` // 优选专区ID ProductID int64 `gorm:"column:product_id;not null;comment:产品ID" json:"product_id"` // 产品ID }
CmsPreferredAreaProductRelation 优选专区和产品关系表
func (*CmsPreferredAreaProductRelation) TableName ¶ added in v0.0.2
func (*CmsPreferredAreaProductRelation) TableName() string
TableName CmsPreferredAreaProductRelation's table name
type CmsSubject ¶
type CmsSubject struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:专题id" json:"id"` // 专题id CategoryID int64 `gorm:"column:category_id;not null;comment:专题分类id" json:"category_id"` // 专题分类id Title string `gorm:"column:title;not null;comment:专题标题" json:"title"` // 专题标题 Pic string `gorm:"column:pic;not null;comment:专题主图" json:"pic"` // 专题主图 ProductCount int32 `gorm:"column:product_count;not null;comment:关联产品数量" json:"product_count"` // 关联产品数量 RecommendStatus int32 `gorm:"column:recommend_status;not null;comment:推荐状态:0->不推荐;1->推荐" json:"recommend_status"` // 推荐状态:0->不推荐;1->推荐 CollectCount int32 `gorm:"column:collect_count;not null;comment:收藏数" json:"collect_count"` // 收藏数 ReadCount int32 `gorm:"column:read_count;not null;comment:阅读数" json:"read_count"` // 阅读数 CommentCount int32 `gorm:"column:comment_count;not null;comment:评论数" json:"comment_count"` // 评论数 AlbumPics string `gorm:"column:album_pics;not null;comment:画册图片用逗号分割" json:"album_pics"` // 画册图片用逗号分割 Description string `gorm:"column:description;not null;comment:专题内容" json:"description"` // 专题内容 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 Content string `gorm:"column:content;not null;comment:专题内容" json:"content"` // 专题内容 ForwardCount int32 `gorm:"column:forward_count;not null;comment:转发数" json:"forward_count"` // 转发数 CategoryName string `gorm:"column:category_name;not null;comment:专题分类名称" json:"category_name"` // 专题分类名称 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsSubject 专题表
func (*CmsSubject) TableName ¶
func (*CmsSubject) TableName() string
TableName CmsSubject's table name
type CmsSubjectCategory ¶
type CmsSubjectCategory struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID Name string `gorm:"column:name;not null;comment:专题分类名称" json:"name"` // 专题分类名称 Icon string `gorm:"column:icon;not null;comment:分类图标" json:"icon"` // 分类图标 SubjectCount int32 `gorm:"column:subject_count;not null;comment:专题数量" json:"subject_count"` // 专题数量 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsSubjectCategory 专题分类表
func (*CmsSubjectCategory) TableName ¶
func (*CmsSubjectCategory) TableName() string
TableName CmsSubjectCategory's table name
type CmsSubjectComment ¶
type CmsSubjectComment struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:编号" json:"id"` // 编号 SubjectID int64 `gorm:"column:subject_id;not null;comment:关联专题id" json:"subject_id"` // 关联专题id MemberNickName string `gorm:"column:member_nick_name;not null;comment:关联会员昵称" json:"member_nick_name"` // 关联会员昵称 MemberIcon string `gorm:"column:member_icon;not null;comment:会员头像" json:"member_icon"` // 会员头像 Content string `gorm:"column:content;not null;comment:评论内容" json:"content"` // 评论内容 CreateTime time.Time `gorm:"column:create_time;not null;comment:创建时间" json:"create_time"` // 创建时间 ShowStatus int32 `gorm:"column:show_status;not null;comment:是否显示,0->不显示;1->显示" json:"show_status"` // 是否显示,0->不显示;1->显示 }
CmsSubjectComment 专题评论表
func (*CmsSubjectComment) TableName ¶
func (*CmsSubjectComment) TableName() string
TableName CmsSubjectComment's table name
type CmsSubjectProductRelation ¶
type CmsSubjectProductRelation struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID SubjectID int64 `gorm:"column:subject_id;not null;comment:专题ID" json:"subject_id"` // 专题ID ProductID int64 `gorm:"column:product_id;not null;comment:商品ID" json:"product_id"` // 商品ID }
CmsSubjectProductRelation 专题商品关系表
func (*CmsSubjectProductRelation) TableName ¶
func (*CmsSubjectProductRelation) TableName() string
TableName CmsSubjectProductRelation's table name
type CmsTopic ¶
type CmsTopic struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID CategoryID int64 `gorm:"column:category_id;not null;comment:关联分类id" json:"category_id"` // 关联分类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"` // 话题结束时间 AttendCount int32 `gorm:"column:attend_count;not null;comment:参与人数" json:"attend_count"` // 参与人数 AttentionCount int32 `gorm:"column:attention_count;not null;comment:关注人数" json:"attention_count"` // 关注人数 ReadCount int32 `gorm:"column:read_count;not null;comment:阅读数" json:"read_count"` // 阅读数 AwardName string `gorm:"column:award_name;not null;comment:奖品名称" json:"award_name"` // 奖品名称 AttendType string `gorm:"column:attend_type;not null;comment:参与方式" json:"attend_type"` // 参与方式 Content string `gorm:"column:content;not null;comment:话题内容" json:"content"` // 话题内容 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsTopic 话题表
type CmsTopicCategory ¶
type CmsTopicCategory struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID Name string `gorm:"column:name;not null;comment:分类名称" json:"name"` // 分类名称 Icon string `gorm:"column:icon;not null;comment:分类图标" json:"icon"` // 分类图标 SubjectCount int32 `gorm:"column:subject_count;not null;comment:专题数量" json:"subject_count"` // 专题数量 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
CmsTopicCategory 话题分类表
func (*CmsTopicCategory) TableName ¶
func (*CmsTopicCategory) TableName() string
TableName CmsTopicCategory's table name
type CmsTopicComment ¶
type CmsTopicComment struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID MemberNickName string `gorm:"column:member_nick_name;not null;comment:评论人员昵称" json:"member_nick_name"` // 评论人员昵称 TopicID int64 `gorm:"column:topic_id;not null;comment:专题ID" json:"topic_id"` // 专题ID MemberIcon string `gorm:"column:member_icon;not null;comment:评论人员头像" json:"member_icon"` // 评论人员头像 Content string `gorm:"column:content;not null;comment:评论内容" json:"content"` // 评论内容 CreateTime time.Time `gorm:"column:create_time;not null;comment:评论时间" json:"create_time"` // 评论时间 ShowStatus int32 `gorm:"column:show_status;not null;comment:是否显示,0->不显示;1->显示" json:"show_status"` // 是否显示,0->不显示;1->显示 }
CmsTopicComment 专题评论表
func (*CmsTopicComment) TableName ¶
func (*CmsTopicComment) TableName() string
TableName CmsTopicComment's table name
Source Files
¶
- cms_help.gen.go
- cms_help_category.gen.go
- cms_member_report.gen.go
- cms_preferred_area.gen.go
- cms_preferred_area_product_relation.gen.go
- cms_subject.gen.go
- cms_subject_category.gen.go
- cms_subject_comment.gen.go
- cms_subject_product_relation.gen.go
- cms_topic.gen.go
- cms_topic_category.gen.go
- cms_topic_comment.gen.go