Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
35834e06
authored
Mar 15, 2024
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整字段
parent
e01c08a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
44 deletions
cms/user_login_mail/main.go
dal/cms/UserInfo/UserInfo.go
cms/user_login_mail/main.go
View file @
35834e06
...
@@ -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
}
}
dal/cms/UserInfo/UserInfo.go
View file @
35834e06
package
UserInfo
package
UserInfo
type
UserInfo
struct
{
type
UserInfo
struct
{
UserId
int
`db:"userId"`
UserId
int
`db:"userId"`
Name
string
`db:"name"`
Name
string
`db:"name"`
EngName
string
`db:"engName"`
EngName
string
`db:"engName"`
Email
string
`db:"email"`
Email
string
`db:"email"`
Code_sn
string
`db:"code_sn"`
Code_sn
string
`db:"code_sn"`
WorkNumber
string
`db:"workNumber"`
WorkNumber
string
`db:"workNumber"`
Mobile
string
`db:"mobile"`
Mobile
string
`db:"mobile"`
Gender
int
`db:"gender"`
Gender
int
`db:"gender"`
IdCard
string
`db:"idCard"`
IdCard
string
`db:"idCard"`
Tel
string
`db:"tel"`
Tel
string
`db:"tel"`
WorkAddr
string
`db:"workAddr"`
WorkAddr
string
`db:"workAddr"`
Fax
string
`db:"fax"`
Fax
string
`db:"fax"`
Degree
string
`db:"degree"`
Degree
string
`db:"degree"`
Schoole
string
`db:"schoole"`
Schoole
string
`db:"schoole"`
QQ
string
`db:"qq"`
QQ
string
`db:"qq"`
Wechat
string
`db:"wechat"`
Wechat
string
`db:"wechat"`
Dingtalk
string
`db:"dingtalk"`
Dingtalk
string
`db:"dingtalk"`
Header
string
`db:"header"`
Header
string
`db:"header"`
Country
string
`db:"country"`
Country
string
`db:"country"`
Province
string
`db:"province"`
Province
string
`db:"province"`
City
string
`db:"city"`
City
string
`db:"city"`
Address
string
`db:"address"`
Address
string
`db:"address"`
Abo
string
`db:"abo"`
Abo
string
`db:"abo"`
JobLevel
string
`db:"jobLevel"`
JobLevel
string
`db:"jobLevel"`
Department_id
int
`db:"department_id"`
Department_id
int
`db:"department_id"`
Department_name
string
`db:"department_name"`
Department_name
string
`db:"department_name"`
Position_id
int
`db:"position_id"`
Position_id
int
`db:"position_id"`
Position_name
string
`db:"position_name"`
Position_name
string
`db:"position_name"`
Birthday
string
`db:"birthday"`
Birthday
string
`db:"birthday"`
Superior
string
`db:"superior"`
Superior
string
`db:"superior"`
UnemployDate
string
`db:"unemployDate"`
UnemployDate
string
`db:"unemployDate"`
EntryDate
string
`db:"entryDate"`
EntryDate
string
`db:"entryDate"`
PersonSite
string
`db:"personSite"`
ProbationDeadline
string
`db:"probation_deadline"`
Resume
string
`db:"resume"`
PersonSite
string
`db:"personSite"`
Introduction
string
`db:"introduction"`
Resume
string
`db:"resume"`
EmergencyPeople
string
`db:"emergencyPeople"`
Introduction
string
`db:"introduction"`
EmergencyPhone
string
`db:"emergencyPhone"`
EmergencyPeople
string
`db:"emergencyPeople"`
Status
int
`db:"status"`
EmergencyPhone
string
`db:"emergencyPhone"`
Ctime
string
`db:"ctime"`
OrgId
int
`db:"org_id"`
Mtime
string
`db:"mtime"`
Status
int
`db:"status"`
UnemployTime
int
`db:"unemploy_time"`
Ctime
string
`db:"ctime"`
Mtime
string
`db:"mtime"`
WechatUnionid
string
`db:"wechat_unionid"`
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment