notice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 New

func New(options ...Option) *Notice

New 新建 notice service

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) Delete

func (n *Notice) Delete(noticeID uint64) error

Delete 删除公告

func (*Notice) Get

func (n *Notice) Get(noticeID uint64) (*apistructs.Notice, error)

Get 获取公告

func (*Notice) List

List 公告列表

func (*Notice) Publish

func (n *Notice) Publish(noticeID uint64) error

Publish 发布公告

func (*Notice) Unpublish

func (n *Notice) Unpublish(noticeID uint64) error

Unpublish 停用公告

func (*Notice) Update

func (n *Notice) Update(updateReq *apistructs.NoticeUpdateRequest) error

Update 编辑公告

type Option

type Option func(*Notice)

Option .

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 设置 dbclient

Jump to

Keyboard shortcuts

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