(db *gorm.DB)
| 17 | } |
| 18 | |
| 19 | func newNoticesStore(db *gorm.DB) *NoticesStore { |
| 20 | return &NoticesStore{db: db} |
| 21 | } |
| 22 | |
| 23 | // Create creates a system notice with the given type and description. |
| 24 | func (s *NoticesStore) Create(ctx context.Context, typ NoticeType, desc string) error { |