package request

import (
	"topsdk/ability571/domain"
	"topsdk/util"
)

type AlibabaWdkMarketingBuygiftItemAddAsyncRequest struct {
	/*
	   sku信息     */
	Param0 *[]domain.AlibabaWdkMarketingBuygiftItemAddAsyncItemBuyGiftSku `json:"param0" required:"true" `
	/*
	   系统自动生成     */
	Param1 *domain.AlibabaWdkMarketingBuygiftItemAddAsyncCommonActivityParam `json:"param1,omitempty" required:"false" `
	/*
	   alibaba.wdk.marketing.version.generate接口生成     */
	Version *int64 `json:"version" required:"true" `
}

func (s *AlibabaWdkMarketingBuygiftItemAddAsyncRequest) SetParam0(v []domain.AlibabaWdkMarketingBuygiftItemAddAsyncItemBuyGiftSku) *AlibabaWdkMarketingBuygiftItemAddAsyncRequest {
	s.Param0 = &v
	return s
}
func (s *AlibabaWdkMarketingBuygiftItemAddAsyncRequest) SetParam1(v domain.AlibabaWdkMarketingBuygiftItemAddAsyncCommonActivityParam) *AlibabaWdkMarketingBuygiftItemAddAsyncRequest {
	s.Param1 = &v
	return s
}
func (s *AlibabaWdkMarketingBuygiftItemAddAsyncRequest) SetVersion(v int64) *AlibabaWdkMarketingBuygiftItemAddAsyncRequest {
	s.Version = &v
	return s
}

func (req *AlibabaWdkMarketingBuygiftItemAddAsyncRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Param0 != nil {
		paramMap["param0"] = util.ConvertStructList(*req.Param0)
	}
	if req.Param1 != nil {
		paramMap["param1"] = util.ConvertStruct(*req.Param1)
	}
	if req.Version != nil {
		paramMap["version"] = *req.Version
	}
	return paramMap
}

func (req *AlibabaWdkMarketingBuygiftItemAddAsyncRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
