Versions in this module Expand all Collapse all v1 v1.0.0 Aug 31, 2021 Changes in this version + func AddCandidate(candidate Candidate) error + func AddMatchRecord(record *MatchRecord) error + func CheckAuth(username, password string) (bool, error) + func CloseDB() + func Setup() + func UpdateCandidate(candidate Candidate) error + func UpdateMatchRecord(id int64, gender Gender) error + func WriteDB() *gorm.DB + type Attitude int + const AttitudeAgree + const AttitudeUnAgree + const AttitudeUnknown + type Auth struct + ID int + Password string + Username string + type Candidate struct + Age int64 + CreateTime int64 + Email string + Gender Gender + ID int64 + Status CandidateStatus + UpdateTime int64 + func GetCandidateByEmail(email string) (candidate Candidate, err error) + func GetCandidateList(gender Gender) ([]Candidate, error) + type CandidateStatus int + const CandidateStatusOk + const CandidateStatusStop + type ConfirmStatus int + const ConfirmStatusOk + const ConfirmStatusUnknown + type Gender int + const GenderFemale + const GenderMale + type MatchRecord struct + ConfirmStatus ConfirmStatus + CreateTime int64 + FemaleAttitude Attitude + FemaleEmail string + FemaleID int64 + FemaleNote string + FemaleSendStatus SendStatus + ID int64 + MaleAttitude Attitude + MaleEmail string + MaleID int64 + MaleNote string + MaleSendStatus SendStatus + MatchResult Attitude + func GetMatchRecordList() ([]MatchRecord, error) + type Model struct + CreatedOn int + DeletedOn int + ID int + ModifiedOn int + type SendStatus int + const SendStatusNo + const SendStatusOK