Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchParser ¶
type SearchParser struct {
// contains filtered or unexported fields
}
func NewSearchParser ¶
func NewSearchParser(tagCommonService *tag_common.TagCommonService, userCommon *usercommon.UserCommon) *SearchParser
func (*SearchParser) ParseStructure ¶
func (sp *SearchParser) ParseStructure(dto *schema.SearchDTO) ( searchType string, userID string, votes int, notAccepted bool, isQuestion bool, views, answers int, accepted bool, questionID string, isAnswer bool, tags, words []string, )
ParseStructure parse search structure, maybe match one of type all/questions/answers, but if match two type, it will return false
Click to show internal directories.
Click to hide internal directories.