channel

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SegmentGapMinutes 对话段落切分间隔(5分钟无新消息切分)
	SegmentGapMinutes = 5
	// DefaultPageSize 默认分页大小
	DefaultPageSize = 20
	// MaxPageSize 最大分页大小
	MaxPageSize = 100
)

Variables

This section is empty.

Functions

func NewService

func NewService(ctx *config.Context) chservice.IService

Types

type CallingParticipantResp

type CallingParticipantResp struct {
	UID  string `json:"uid"`
	Name string `json:"name"`
}

type Channel

type Channel struct {
	log.Log
	// contains filtered or unexported fields
}

func New

func New(ctx *config.Context) *Channel

func (*Channel) Route

func (ch *Channel) Route(r *wkhttp.WKHttp)

Route 路由配置

type StorylineResp

type StorylineResp struct {
	Segments []*StorylineSegment `json:"segments"`
	Cursor   string              `json:"cursor,omitempty"` // 下一页游标
}

StorylineResp 故事线响应

type StorylineSegment

type StorylineSegment struct {
	ID             string   `json:"id"`               // 段落唯一ID
	StartTime      string   `json:"start_time"`       // 开始时间 (ISO8601)
	EndTime        string   `json:"end_time"`         // 结束时间 (ISO8601)
	MessageCount   int      `json:"message_count"`    // 消息条数
	Participants   []string `json:"participants"`     // 参与者列表
	FirstMessageID string   `json:"first_message_id"` // 首条消息ID(用于跳转定位)
}

StorylineSegment 对话段落

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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