renzheng 3 years ago
parent
commit
46eeaa1a4a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gonsq/entity.go

+ 2 - 2
gonsq/entity.go

@@ -2,8 +2,8 @@ package gonsq
 
 //从nsq接收的消息体
 type Msg struct {
-	Id         string                 `json:"id"` //用于标识这个告警分组,及告警方式、告警人
+	Id         string                 `json:"id"`    //用于标识这个告警分组,及告警方式、告警人
+	Title      string                 `json:"title"` //非必填项
 	Text       string                 `json:"text"`
-	Title      string                 `json:"title"`      //非必填项
 	AppendInfo map[string]interface{} `json:"appendinfo"` //附加信息,非必填项
 }