1 Star 0 Fork 0

此间少年' / topsdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TaobaoKfcKeywordSearchKfcSearchResult.go 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
此间少年' 提交于 2023-10-20 10:35 . add taobao sdk
package domain
type TaobaoKfcKeywordSearchKfcSearchResult struct {
/*
是否匹配到关键词,匹配到则为true. */
Matched *bool `json:"matched,omitempty" `
/*
匹配到的关键词的等级,值为null,或为A、B、C、D。
当匹配不到关键词时,值为null,否则值为A、B、C、D中的一个。
A、B、C、D等级按严重程度从高至低排列。 */
Level *string `json:"level,omitempty" `
/*
过滤后的文本:
当匹配到B等级的词时,文本中的关键词被替换为*号,content即为关键词替换后的文本;
其他情况,content始终为null */
Content *string `json:"content,omitempty" `
}
func (s *TaobaoKfcKeywordSearchKfcSearchResult) SetMatched(v bool) *TaobaoKfcKeywordSearchKfcSearchResult {
s.Matched = &v
return s
}
func (s *TaobaoKfcKeywordSearchKfcSearchResult) SetLevel(v string) *TaobaoKfcKeywordSearchKfcSearchResult {
s.Level = &v
return s
}
func (s *TaobaoKfcKeywordSearchKfcSearchResult) SetContent(v string) *TaobaoKfcKeywordSearchKfcSearchResult {
s.Content = &v
return s
}
Go
1
https://gitee.com/cjsn/topsdk.git
git@gitee.com:cjsn/topsdk.git
cjsn
topsdk
topsdk
v0.1.6

搜索帮助