Documentation ¶
Index ¶
- func NewAdminV1() poll.IPollAdminV1
- func NewV1() poll.IPollV1
- type ControllerAdminV1
- type ControllerV1
- func (c *ControllerV1) CancelPoll(ctx context.Context, req *v1.CancelPollReq) (res *v1.CancelPollRes, err error)
- func (c *ControllerV1) GetPollDetail(ctx context.Context, req *v1.GetPollDetailReq) (res *v1.GetPollDetailRes, err error)
- func (c *ControllerV1) GetPollMarks(ctx context.Context, req *v1.GetPollMarksReq) (res *v1.GetPollMarksRes, err error)
- func (c *ControllerV1) GetPolls(ctx context.Context, req *v1.GetPollsReq) (res *v1.GetPollsRes, err error)
- func (c *ControllerV1) NewPoll(ctx context.Context, req *v1.NewPollReq) (res *v1.NewPollRes, err error)
- func (c *ControllerV1) Poll(ctx context.Context, req *v1.PollReq) (res *v1.PollRes, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdminV1 ¶
func NewAdminV1() poll.IPollAdminV1
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)
Click to show internal directories.
Click to hide internal directories.