Documentation ¶
Overview ¶
*
- @Time : 2020/12/18 2:29 下午
- @Author : MassAdobe
- @Description: http
*
*
- @Time : 2020/12/18 3:00 下午
- @Author : MassAdobe
- @Description: http
*
Index ¶
- func Delete(ipPort, url string, params interface{}, c ...*gin.Context) ([]byte, error)
- func Get(ipPort, url string, params interface{}, c ...*gin.Context) ([]byte, error)
- func Post(ipPort, url, params interface{}, c ...*gin.Context) ([]byte, error)
- func Put(ipPort, url string, params interface{}, c ...*gin.Context) ([]byte, error)
- type FeignRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeignRequest ¶
type FeignRequest struct { Body interface{} // 请求参数,可以为空 ServerName string // 服务名,不能为空 GroupName string // 组别名,不能为空 Url string // 调用URL(二级路径) C *gin.Context // 当前请求的上下文 }
*
- @Author: MassAdobe
- @TIME: 2020/12/18 2:30 下午
- @Description: 服务内部调用get请求结构体
*
func (*FeignRequest) FeignDelete ¶
func (this *FeignRequest) FeignDelete() (feign []byte, err error)
*
- @Author: MassAdobe
- @TIME: 2020/12/18 5:21 下午
- @Description: 服务内部调用Delete请求
*
func (*FeignRequest) FeignGet ¶
func (this *FeignRequest) FeignGet() (feign []byte, err error)
*
- @Author: MassAdobe
- @TIME: 2020/12/18 2:30 下午
- @Description: 服务内部调用get请求
*
func (*FeignRequest) FeignPost ¶
func (this *FeignRequest) FeignPost() (feign []byte, err error)
*
- @Author: MassAdobe
- @TIME: 2020/12/18 2:30 下午
- @Description: 服务内部调用post请求
*
func (*FeignRequest) FeignPut ¶
func (this *FeignRequest) FeignPut() (feign []byte, err error)
*
- @Author: MassAdobe
- @TIME: 2020/12/18 5:21 下午
- @Description: 服务内部调用put请求
*
Click to show internal directories.
Click to hide internal directories.