topsdk/defaultability/request/TaobaoTmcUserPermitRequest.go

30 lines
855 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package request
import (
"git.sunqdl.cn/fgqj/topsdk/util"
)
type TaobaoTmcUserPermitRequest struct {
/*
消息主题列表用半角逗号分隔。当用户订阅的topic是应用订阅的子集时才需要设置不设置表示继承应用所订阅的所有topic一般情况建议不要设置。 */
Topics *[]string `json:"topics,omitempty" required:"false" `
}
func (s *TaobaoTmcUserPermitRequest) SetTopics(v []string) *TaobaoTmcUserPermitRequest {
s.Topics = &v
return s
}
func (req *TaobaoTmcUserPermitRequest) ToMap() map[string]interface{} {
paramMap := make(map[string]interface{})
if req.Topics != nil {
paramMap["topics"] = util.ConvertBasicList(*req.Topics)
}
return paramMap
}
func (req *TaobaoTmcUserPermitRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}