| | |
| | | return vo.StatusOtherError |
| | | } |
| | | |
| | | logger.Debug("Post notification success.") |
| | | logger.Debug("Post subscribe success.") |
| | | |
| | | return vo.StatusSuccess |
| | | } |
| | |
| | | return vo.StatusOtherError |
| | | } |
| | | |
| | | logger.Debug("Post notification success.") |
| | | logger.Debug("put subscribe success.") |
| | | |
| | | return vo.StatusSuccess |
| | | } |
| | |
| | | func GetSubscribes(url string) ([]byte, error) { |
| | | rsp, err := util.HttpGet(url, headers) |
| | | if err != nil { |
| | | logger.Warn("Put subscribe failed, %s", err.Error()) |
| | | |
| | | logger.Warn("Get subscribe failed, %s", err.Error()) |
| | | } |
| | | |
| | | return rsp, err |