Commit 35834e06 by 朱继来

调整字段

parent e01c08a7
...@@ -4,11 +4,11 @@ import ( ...@@ -4,11 +4,11 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "fmt"
"github.com/ichunt2019/logger"
"go-queue-server/dal/db" "go-queue-server/dal/db"
"go-queue-server/util" "go-queue-server/util"
"go-queue-server/util/ding"
"time" "time"
"github.com/ichunt2019/logger"
) )
type UserLoginMail struct { type UserLoginMail struct {
...@@ -106,11 +106,12 @@ func send_mail(data string) bool { ...@@ -106,11 +106,12 @@ func send_mail(data string) bool {
var isAtAll bool = false var isAtAll bool = false
if res == nil { if res == nil {
ding.Send(util.Configs.Ding_msg.Webhook,"监控告警", "后台用户登录邮件接口请求失败,原因:" + string(res), mobile, isAtAll) // ding.Send(util.Configs.Ding_msg.Webhook,"监控告警", "后台用户登录邮件接口请求失败,原因:" + string(res), mobile, isAtAll)
logger.Info("后台用户登录邮件接口请求失败,原因:" + string(res))
return false return false
} }
ding.Send(util.Configs.Ding_msg.Webhook, "监控告警", "推送后台用户登录邮件:" + data, mobile, isAtAll) // ding.Send(util.Configs.Ding_msg.Webhook, "监控告警", "推送后台用户登录邮件:" + data, mobile, isAtAll)
return true return true
} }
...@@ -33,12 +33,16 @@ type UserInfo struct { ...@@ -33,12 +33,16 @@ type UserInfo struct {
Superior string `db:"superior"` Superior string `db:"superior"`
UnemployDate string `db:"unemployDate"` UnemployDate string `db:"unemployDate"`
EntryDate string `db:"entryDate"` EntryDate string `db:"entryDate"`
ProbationDeadline string `db:"probation_deadline"`
PersonSite string `db:"personSite"` PersonSite string `db:"personSite"`
Resume string `db:"resume"` Resume string `db:"resume"`
Introduction string `db:"introduction"` Introduction string `db:"introduction"`
EmergencyPeople string `db:"emergencyPeople"` EmergencyPeople string `db:"emergencyPeople"`
EmergencyPhone string `db:"emergencyPhone"` EmergencyPhone string `db:"emergencyPhone"`
OrgId int `db:"org_id"`
Status int `db:"status"` Status int `db:"status"`
UnemployTime int `db:"unemploy_time"`
Ctime string `db:"ctime"` Ctime string `db:"ctime"`
Mtime string `db:"mtime"` Mtime string `db:"mtime"`
WechatUnionid string `db:"wechat_unionid"`
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment