Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidArgument = errors.New("invalid argument") ErrNoticeList = errors.New("获取消息列表失败") ErrNoticeListCount = errors.New("获取消息列表总数失败") ErrNoticeMemberListCount = errors.New("获取用户阅读消息列表总数失败") ErrNoticeNoAppName = errors.New("项目名称不能为空") ErrNoticeNoNamespace = errors.New("命名空间不能为空") )
Functions ¶
Types ¶
type Service ¶
type Service interface { Create(ctx context.Context, req *event.WebhooksRequest) (err error) List(ctx context.Context, param map[string]string, page int, limit int) (res map[string]interface{}, err error) Tips(ctx context.Context) (res interface{}, err error) CountRead(ctx context.Context, param map[string]string) (res map[string]interface{}, err error) ClearAll(ctx context.Context, noticeType int) (err error) Detail(ctx context.Context, noticeId int) (res interface{}, err error) }
func NewService ¶
func NewService(logger log.Logger, cf *config.Config, amqpClient amqpClient.AmqpClient, store repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.