新增出错短信提醒

This commit is contained in:
george
2018-08-09 18:47:42 +08:00
parent 72ceb95845
commit 3febcce23d
8 changed files with 151 additions and 28 deletions

View File

@@ -285,14 +285,14 @@ func serverListByGroupId(groupId int) []string {
return servers
}
type adminInfo struct {
type AdminInfo struct {
Id int
Email string
Phone string
RealName string
}
func AllAdminInfo(adminIds string) []*adminInfo {
func AllAdminInfo(adminIds string) []*AdminInfo {
Filters := make([]interface{}, 0)
Filters = append(Filters, "status", 1)
//Filters = append(Filters, "id__gt", 1)
@@ -307,9 +307,9 @@ func AllAdminInfo(adminIds string) []*adminInfo {
}
Result, _ := models.AdminGetList(1, 1000, Filters...)
adminInfos := make([]*adminInfo, 0)
adminInfos := make([]*AdminInfo, 0)
for _, v := range Result {
ai := adminInfo{
ai := AdminInfo{
Id: v.Id,
Email: v.Email,
Phone: v.Phone,