2023-02-21 20:46:05 +08:00
|
|
|
package mail
|
|
|
|
|
|
|
|
import (
|
2023-02-21 20:58:53 +08:00
|
|
|
"golib.gaore.com/GaoreGo/haiwai-common-sdk-go/sdk/requests"
|
|
|
|
"golib.gaore.com/GaoreGo/haiwai-common-sdk-go/sdk/responses"
|
2023-02-21 20:46:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type PostEmailRequest struct {
|
|
|
|
*requests.RpcRequest
|
|
|
|
Addresses string `position:"Body" field:"addresses" default:"" `
|
|
|
|
Subject string `position:"Body" field:"subject" default:"" `
|
|
|
|
Body string `position:"Body" field:"body" default:""`
|
|
|
|
FromName string `position:"Body" field:"fromName" default:""`
|
|
|
|
Time int `position:"Body" field:"time" default:""`
|
|
|
|
Sign string `position:"Body" field:"sign" default:""`
|
|
|
|
}
|
|
|
|
|
|
|
|
type PostEmailResponse struct {
|
|
|
|
*responses.BaseResponse
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreatePostEmailRequest() (req *PostEmailRequest) {
|
|
|
|
req = &PostEmailRequest{
|
|
|
|
RpcRequest: &requests.RpcRequest{},
|
|
|
|
}
|
|
|
|
req.InitWithApiInfo(HOST, VERSION, "/email/post_email.php")
|
|
|
|
req.Method = requests.POST
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreatePostEmailResponse() (response *PostEmailResponse) {
|
|
|
|
response = &PostEmailResponse{
|
|
|
|
BaseResponse: &responses.BaseResponse{},
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|