postvotedao

package
v0.0.0-...-139547c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vote

type Vote post.Vote

func GetVoteByPostID

func GetVoteByPostID(postID uint) (Vote, error)

找投票

func (*Vote) Create

func (v *Vote) Create() error

投票

func (*Vote) Delete

func (v *Vote) Delete() error

func (*Vote) TableName

func (v *Vote) TableName() string

type VoteOption

type VoteOption post.VoteOption

func GetOptions

func GetOptions(vID uint) ([]VoteOption, error)

查某个vote的全部选项

func GetVoteOption

func GetVoteOption(voID uint, vID uint) (VoteOption, error)

查某个vote的某个选项

func (*VoteOption) Create

func (v *VoteOption) Create() error

投票选项

func (*VoteOption) TableName

func (v *VoteOption) TableName() string

func (*VoteOption) Update

func (vo *VoteOption) Update() error

选某个选项

Jump to

Keyboard shortcuts

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