Documentation
¶
Index ¶
- Variables
- func GetNoticeDB(ctx context.Context, defDB *gorm.DB) *gorm.DB
- type MsgRepo
- func (m *MsgRepo) Create(ctx context.Context, model *Notice) error
- func (m *MsgRepo) Delete(ctx context.Context, id uint64) error
- func (m *MsgRepo) Get(ctx context.Context, id uint64) (*Notice, error)
- func (m *MsgRepo) GetPage(ctx context.Context, pageNum, pageSize int) (*[]*Notice, int64, error)
- func (m *MsgRepo) Update(ctx context.Context, model *Notice) error
- type Notice
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Notice ¶
type Notice struct { ID uint64 `gorm:"primary_key;AUTO_INCREMENT;NOT NULL;"` CreatedAt types.Time `gorm:"column:created_at;type:dateTime;comment:'创建时间';"` StartTime types.Time `gorm:"column:start_time;type:dateTime;comment:'开始时间';"` EndTime types.Time `gorm:"column:end_time;type:dateTime;comment:'结束时间';"` Title string `gorm:"column:title;comment:'标题';"` Content string `gorm:"column:content;comment:'内容';"` Operator string `gorm:"column:operator;comment:'操作者';"` }
Click to show internal directories.
Click to hide internal directories.