MCPcopy Index your code
hub / github.com/apache/answer / AddTagReq

Struct AddTagReq

internal/schema/tag_schema.go:168–179  ·  view source on GitHub ↗

AddTagReq add tag request

Source from the content-addressed store, hash-verified

166
167// AddTagReq add tag request
168type AddTagReq struct {
169 // slug_name
170 SlugName string `validate:"required,gt=0,lte=35" json:"slug_name"`
171 // display_name
172 DisplayName string `validate:"required,gt=0,lte=35" json:"display_name"`
173 // original text
174 OriginalText string `validate:"required,gt=0,lte=65536" json:"original_text"`
175 // parsed text
176 ParsedText string `json:"-"`
177 // user id
178 UserID string `json:"-"`
179}
180
181func (req *AddTagReq) Check() (errFields []*validator.FormErrorField, err error) {
182 req.ParsedText = converter.Markdown2HTML(req.OriginalText)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected