Documentation ¶
Index ¶
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notice ¶
type Notice struct {
// contains filtered or unexported fields
}
Notice 公告
func (*Notice) Convert ¶
func (n *Notice) Convert(notice *dao.Notice) *apistructs.Notice
Convert 结构转换
func (*Notice) Create ¶
func (n *Notice) Create(orgID uint64, createReq *apistructs.NoticeCreateRequest) (uint64, error)
Create 创建公告
func (*Notice) List ¶
func (n *Notice) List(listReq *apistructs.NoticeListRequest) (*apistructs.NoticeListResponseData, error)
List 公告列表
func (*Notice) Update ¶
func (n *Notice) Update(updateReq *apistructs.NoticeUpdateRequest) error
Update 编辑公告
Click to show internal directories.
Click to hide internal directories.