matcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCandidate

func AddCandidate(candidate Candidate) error

添加候选人

func DailyMatch

func DailyMatch()

func DoMatch

func DoMatch()

为每个男生和女生匹配交流对象 每个男生匹配一个没有交流过的女生 每个女生匹配一个没有交流过的男生 每天每个人只匹配一个对象

func SendEmail

func SendEmail(targetEmail, matchedEmail string) error

SendEmail 发送邮件

func Shuffle

func Shuffle(slice []models.Candidate)

func UpdatePushStatus

func UpdatePushStatus(pushStatus PushStatus) error

Types

type Candidate

type Candidate struct {
	Email  string        `form:"email" json:"email" binding:"required"`
	Gender models.Gender `form:"gender" json:"gender" binding:"required"`
	Age    int64         `form:"age" json:"age" binding:"required"`
}

type PushStatus

type PushStatus struct {
	Email  string `form:"email" json:"email" binding:"required"`
	Status int64  `form:"status" json:"status" binding:"required"`
}

Jump to

Keyboard shortcuts

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