bknotice

package
v0.0.0-...-6ef7557 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bknotice provides bknotice client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSystem

func RegisterSystem(ctx context.Context) error

RegisterSystem 注册系统到通知中心

Types

type Announcement

type Announcement struct {
	ID           int                   `json:"id"`
	Title        string                `json:"title"`
	Content      string                `json:"content"`
	ContentList  []AnnouncementContent `json:"content_list"`
	AnnounceType string                `json:"announce_type"`
	StartTime    string                `json:"start_time"`
	EndTime      string                `json:"end_time"`
}

Announcement 通知中心公告

func GetCurrentAnnouncements

func GetCurrentAnnouncements(ctx context.Context, lang string) ([]Announcement, error)

GetCurrentAnnouncements 获取系统当前通知

type AnnouncementContent

type AnnouncementContent struct {
	Content  string `json:"content"`
	Language string `json:"language"`
}

AnnouncementContent 通知中心公告内容,包括语言和内容

Jump to

Keyboard shortcuts

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