Documentation ¶
Index ¶
- func AddUrlPostFixIfNeeded(url string) string
- func CrsAuth() context.Handler
- func GenUrl(server string, path string) string
- func GenUrlWithParams(pth string, params map[string]interface{}, baseUrl string) (url string)
- func Get(url string) (ret []byte, err error)
- func IsSuccessCode(code int) (success bool)
- func Post(url string, data interface{}) (ret []byte, err error)
- func PostOrPut(url string, method string, data interface{}) (ret []byte, err error)
- func Put(url string, data interface{}) (ret []byte, err error)
- func RespData(code consts.ResultCode, msg string, objects interface{}) (r *_domain.Response)
- func RespDataFromBizErr(err *domain.BizErr) (r *_domain.Response)
- func RespDataPagination(code consts.ResultCode, msg string, objects interface{}, pageNo, pageSize int, ...) (r *_domain.ResponsePage)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUrlPostFixIfNeeded ¶
func GenUrlWithParams ¶
func IsSuccessCode ¶
func RespData ¶
func RespData(code consts.ResultCode, msg string, objects interface{}) (r *_domain.Response)
func RespDataPagination ¶
func RespDataPagination(code consts.ResultCode, msg string, objects interface{}, pageNo, pageSize int, total int64) (r *_domain.ResponsePage)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.