forked from all_user/stat_center
Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package consumer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"stat/common/utils"
|
||||
)
|
||||
|
||||
type ContinueError struct {
|
||||
msg string
|
||||
}
|
||||
|
||||
func NewContinueError(text string) error {
|
||||
ret := &ContinueError{
|
||||
msg: text,
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
func (e *ContinueError) Error() string {
|
||||
return e.msg
|
||||
}
|
||||
|
||||
// HttpRequest HttpRequest
|
||||
func HttpRequest(ctx context.Context, url string, request interface{}, resp interface{}) error {
|
||||
return utils.HttpPostRequestJson(url, request, resp)
|
||||
}
|
||||
Reference in New Issue
Block a user