Documentation ¶
Index ¶
- Variables
- func GetIP(r *http.Request) (string, error)
- func GetRequest[T any](ugn *utils.UserGroupNamespace, fullApi string, query map[string]string) restjson.Response[T]
- func InitHttpClient()
- func PostRequest[T any](ugn *utils.UserGroupNamespace, fullApi string, query map[string]string, ...) restjson.Response[T]
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *resty.Client
Functions ¶
func GetRequest ¶
func GetRequest[T any](ugn *utils.UserGroupNamespace, fullApi string, query map[string]string) restjson.Response[T]
GetRequest 发起rest get请求
func InitHttpClient ¶
func InitHttpClient()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.