poll

package
v0.0.0-...-15e3088 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdminV1

func NewAdminV1() poll.IPollAdminV1

func NewV1

func NewV1() poll.IPollV1

Types

type ControllerAdminV1

type ControllerAdminV1 struct{}

func (*ControllerAdminV1) AddOneMark

func (c *ControllerAdminV1) AddOneMark(ctx context.Context, req *adminV1.AddOneMarkReq) (res *adminV1.AddOneMarkRes, err error)

func (*ControllerAdminV1) UpdateOneMark

func (c *ControllerAdminV1) UpdateOneMark(ctx context.Context, req *adminV1.UpdateOneMarkReq) (res *adminV1.UpdateOneMarkRes, err error)

type ControllerV1

type ControllerV1 struct{}

func (*ControllerV1) CancelPoll

func (c *ControllerV1) CancelPoll(ctx context.Context, req *v1.CancelPollReq) (res *v1.CancelPollRes, err error)

CancelPoll 目前只用于撤回普通的投票

func (*ControllerV1) GetPollDetail

func (c *ControllerV1) GetPollDetail(ctx context.Context, req *v1.GetPollDetailReq) (res *v1.GetPollDetailRes, err error)

func (*ControllerV1) GetPollMarks

func (c *ControllerV1) GetPollMarks(ctx context.Context, req *v1.GetPollMarksReq) (res *v1.GetPollMarksRes, err error)

func (*ControllerV1) GetPolls

func (c *ControllerV1) GetPolls(ctx context.Context, req *v1.GetPollsReq) (res *v1.GetPollsRes, err error)

func (*ControllerV1) NewPoll

func (c *ControllerV1) NewPoll(ctx context.Context, req *v1.NewPollReq) (res *v1.NewPollRes, err error)

func (*ControllerV1) Poll

func (c *ControllerV1) Poll(ctx context.Context, req *v1.PollReq) (res *v1.PollRes, err error)

Jump to

Keyboard shortcuts

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