model_verify

package
v0.0.0-...-9e8b3cb Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVerify

func CheckVerify(value, code string) bool

func GeneralVerifyData

func GeneralVerifyData(value string) (string, error)

Types

type VerificationCode

type VerificationCode struct {
	Id         int64  `json:"id,omitempty" bson:"_id,omitempty"`
	Value      string `json:"value,omitempty" bson:"value,omitempty"` //请求code的value
	Code       string `json:"code,omitempty" bson:"code,omitempty"`   //返回Code
	Vld        int64  `json:"vld,omitempty" bson:"vld,omitempty"`     //有效期
	CreateTime int64  `json:"create_time,omitempty" bson:"create_time,omitempty"`
	Scenes     string `json:"scenes,omitempty" bson:"scenes,omitempty"` //场景
	Status     bool   `json:"status"`
}

func (VerificationCode) FindPageFilter

func (v VerificationCode) FindPageFilter(page, limit int, query, selector interface{}, fields ...string) ([]VerificationCode, error)

func (VerificationCode) Insert

func (v VerificationCode) Insert() error

func (VerificationCode) ToJson

func (v VerificationCode) ToJson() string

func (VerificationCode) TotalCount

func (v VerificationCode) TotalCount(query, selector interface{}) (int, error)

Jump to

Keyboard shortcuts

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