| | |
| | | TOPIC_QUERYPROC string = "Topic_QueryProc" |
| | | ) |
| | | |
| | | const ( |
| | | REPLY_SUCCESS int = 200 |
| | | REPLY_FAILED int = 202 |
| | | ) |
| | | type CommonReply struct { |
| | | Status int `json:"status"` // 请求状态,目前只有两个,成功返回200,失败202 |
| | | Desc string `json:"desc"` // 请求状态的描述,成功"success",失败返回失败原因,如心跳服务未启动 |
| | | Body []byte `json:"body"` // 返回值的具体内容,用户约定 |
| | | } |
| | | //const ( |
| | | // REPLY_SUCCESS int = 200 |
| | | // REPLY_FAILED int = 202 |
| | | //) |
| | | //type CommonReply struct { |
| | | // Status int `json:"status"` // 请求状态,目前只有两个,成功返回200,失败202 |
| | | // Desc string `json:"desc"` // 请求状态的描述,成功"success",失败返回失败原因,如心跳服务未启动 |
| | | // Body []byte `json:"body"` // 返回值的具体内容,用户约定 |
| | | //} |
| | | |
| | | const ( |
| | | NODE_ALIVE int = 0 |