chore: refresh gramsrv public release

This commit is contained in:
A 2026-06-30 14:37:43 +08:00
parent 75cebe8dbf
commit 70b6820474
1274 changed files with 378751 additions and 59919 deletions

16
internal/store/poll.go Normal file
View file

@ -0,0 +1,16 @@
package store
import (
"context"
"telesrv/internal/domain"
)
// PollStore 持久化 poll 权威态(定义 + closed + 机密)与投票人列表查询。
// 投票/关闭走 MessageStore.VoteMessagePoll / ChannelStore.VoteChannelMessagePoll 等
// 消息侧入口(需要消息可见性校验);本接口只承担发送时建 poll 与 getPollVotes 列表。
type PollStore interface {
CreatePoll(ctx context.Context, def domain.PollDefinition) error
GetPollDefinition(ctx context.Context, pollID int64) (domain.PollDefinition, bool, error)
ListPollVotes(ctx context.Context, req domain.PollVotesListRequest) (domain.PollVotesList, error)
}