cms_topic

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder() *cmsTopicQueryBuilder

Types

type CmsTopic

type CmsTopic struct {
	Id             int64     //
	CategoryId     int64     //
	Name           string    //
	CreateTime     time.Time `gorm:"autoCreateTime"`                          //
	StartTime      time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` //
	EndTime        time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` //
	AttendCount    int32     // 参与人数
	AttentionCount int32     // 关注人数
	ReadCount      int32     //
	AwardName      string    // 奖品名称
	AttendType     string    // 参与方式
	Content        string    // 话题内容
}

CmsTopic 话题表

func NewModel

func NewModel() *CmsTopic

func (*CmsTopic) Create

func (t *CmsTopic) Create(db *gorm.DB) (id int64, err error)

Jump to

Keyboard shortcuts

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