MCPcopy
hub / github.com/apache/answer / UpdateTagReq

Struct UpdateTagReq

internal/schema/tag_schema.go:193–209  ·  view source on GitHub ↗

UpdateTagReq update tag request

Source from the content-addressed store, hash-verified

191
192// UpdateTagReq update tag request
193type UpdateTagReq struct {
194 // tag_id
195 TagID string `validate:"required" json:"tag_id"`
196 // slug_name
197 SlugName string `validate:"omitempty,gt=0,lte=35" json:"slug_name"`
198 // display_name
199 DisplayName string `validate:"omitempty,gt=0,lte=35" json:"display_name"`
200 // original text
201 OriginalText string `validate:"omitempty" json:"original_text"`
202 // parsed text
203 ParsedText string `json:"-"`
204 // edit summary
205 EditSummary string `validate:"omitempty" json:"edit_summary"`
206 // user id
207 UserID string `json:"-"`
208 NoNeedReview bool `json:"-"`
209}
210
211func (r *UpdateTagReq) Check() (errFields []*validator.FormErrorField, err error) {
212 r.ParsedText = converter.Markdown2HTML(r.OriginalText)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected