Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type Notice struct + func New(options ...Option) *Notice + func (n *Notice) Convert(notice *dao.Notice) *apistructs.Notice + func (n *Notice) Create(orgID uint64, createReq *apistructs.NoticeCreateRequest) (uint64, error) + func (n *Notice) Delete(noticeID uint64) error + func (n *Notice) Get(noticeID uint64) (*apistructs.Notice, error) + func (n *Notice) List(listReq *apistructs.NoticeListRequest) (*apistructs.NoticeListResponseData, error) + func (n *Notice) Publish(noticeID uint64) error + func (n *Notice) Unpublish(noticeID uint64) error + func (n *Notice) Update(updateReq *apistructs.NoticeUpdateRequest) error + type Option func(*Notice) + func WithDBClient(db *dao.DBClient) Option