third-platform-sdk/sdk/fliggysdk/defaultability/domain/TaobaoKfcKeywordSearchKfcSearchResult.go

33 lines
1.1 KiB
Go
Raw Permalink Normal View History

2024-08-05 17:19:30 +08:00
package domain
type TaobaoKfcKeywordSearchKfcSearchResult struct {
/*
是否匹配到关键词,匹配到则为true. */
Matched *bool `json:"matched,omitempty" `
/*
匹配到的关键词的等级值为null或为ABCD
当匹配不到关键词时值为null否则值为ABCD中的一个
ABCD等级按严重程度从高至低排列 */
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
}