22 lines
367 B
Go
22 lines
367 B
Go
// Package request ...
|
|
//
|
|
// Description : request ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 2025-05-08 14:21
|
|
package request
|
|
|
|
import (
|
|
"resty.dev/v3"
|
|
)
|
|
|
|
// WriteJson application/json写入
|
|
type WriteJson struct {
|
|
}
|
|
|
|
func (w *WriteJson) Write(request *resty.Request, bodyData map[string]any) error {
|
|
request.SetBody(bodyData)
|
|
return nil
|
|
}
|