You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/topsdk/ability304/request/TaobaoFilesGetRequest.go

50 lines
1.2 KiB

2 years ago
package request
import (
"topsdk/util"
)
type TaobaoFilesGetRequest struct {
/*
1:2: */
Status *int64 `json:"status,omitempty" required:"false" `
/*
*/
StartDate *util.LocalTime `json:"start_date" required:"true" `
/*
*/
EndDate *util.LocalTime `json:"end_date" required:"true" `
}
func (s *TaobaoFilesGetRequest) SetStatus(v int64) *TaobaoFilesGetRequest {
s.Status = &v
return s
}
func (s *TaobaoFilesGetRequest) SetStartDate(v util.LocalTime) *TaobaoFilesGetRequest {
s.StartDate = &v
return s
}
func (s *TaobaoFilesGetRequest) SetEndDate(v util.LocalTime) *TaobaoFilesGetRequest {
s.EndDate = &v
return s
}
func (req *TaobaoFilesGetRequest) ToMap() map[string]interface{} {
paramMap := make(map[string]interface{})
if req.Status != nil {
paramMap["status"] = *req.Status
}
if req.StartDate != nil {
paramMap["start_date"] = *req.StartDate
}
if req.EndDate != nil {
paramMap["end_date"] = *req.EndDate
}
return paramMap
}
func (req *TaobaoFilesGetRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}