api_topics

package
v2.3.9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNodeApiNoMorePage  = errors.New("没有分页数据")
	ErrNoMoreData         = errors.New("无更多数据")
	ErrLockingRequestData = errors.New("正在请求数据")
)

Functions

This section is empty.

Types

type V1TopicApi

type V1TopicApi struct {
	// contains filtered or unexported fields
}

func NewV1

func NewV1(client *resty.Client) *V1TopicApi

func (*V1TopicApi) GetTopicsByGroupNode

func (api *V1TopicApi) GetTopicsByGroupNode(
	ctx context.Context,
	node g.GroupNode,
	page int,
) (res []response.TopicResult, total int, err error)

type V2TopicApi

type V2TopicApi struct {
	// contains filtered or unexported fields
}

V2TopicApi v1 和 v2 完全隔离开, 防止后续影响

func NewV2

func NewV2(client *resty.Client) *V2TopicApi

func (*V2TopicApi) GetTopicsByGroupNode

func (api *V2TopicApi) GetTopicsByGroupNode(
	ctx context.Context,
	node g.GroupNode,
	page int,
) (res []response.TopicResult, cachePages, total int, err error)

Jump to

Keyboard shortcuts

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