{"modulePath":"github.com/answerdev/answer","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package schema\n\n## Constants\n\n```go\nconst (\n\tAnswerAcceptedFailed = 1\n\tAnswerAcceptedEnable = 2\n)\n```\n\n```go\nconst (\n\tCGDefault = 1\n\tCGDIY     = 2\n)\n```\n\n```go\nconst (\n\tDashboardCacheKey  = \"answer:dashboard\"\n\tDashboardCacheTime = 60 * time.Minute\n)\n```\n\n```go\nconst (\n\tForbiddenReasonTypeInactive      = \"inactive\"\n\tForbiddenReasonTypeURLExpired    = \"url_expired\"\n\tForbiddenReasonTypeUserSuspended = \"suspended\"\n)\n```\n\n```go\nconst (\n\tNotificationTypeInbox        = 1\n\tNotificationTypeAchievement  = 2\n\tNotificationNotRead          = 1\n\tNotificationRead             = 2\n\tNotificationStatusNormal     = 1\n\tNotificationStatusDelete     = 10\n\tNotificationInboxTypeAll     = 0\n\tNotificationInboxTypePosts   = 1\n\tNotificationInboxTypeVotes   = 2\n\tNotificationInboxTypeInvites = 3\n)\n```\n\n```go\nconst (\n\tQuestionOperationPin   = \"pin\"\n\tQuestionOperationUnPin = \"unpin\"\n\tQuestionOperationHide  = \"hide\"\n\tQuestionOperationShow  = \"show\"\n)\n```\n\n```go\nconst (\n\tQuestionOrderCondNewest     = \"newest\"\n\tQuestionOrderCondActive     = \"active\"\n\tQuestionOrderCondFrequent   = \"frequent\"\n\tQuestionOrderCondScore      = \"score\"\n\tQuestionOrderCondUnanswered = \"unanswered\"\n)\n```\n\n```go\nconst (\n\tQuestionPageRespOperationTypeAsked    = \"asked\"\n\tQuestionPageRespOperationTypeAnswered = \"answered\"\n\tQuestionPageRespOperationTypeModified = \"modified\"\n)\n```\n\n```go\nconst (\n\tNoticeStatusOn  = 1\n\tNoticeStatusOff = 2\n)\n```\n\n```go\nconst RevisionAuditApprove = \"approve\"\n```\n\n```go\nconst RevisionAuditReject = \"reject\"\n```\n\n## Variables\n\n```go\nvar AppStartTime time.Time\n```\n\n```go\nvar ErrTypeAlert = ErrTypeData{ErrType: \"alert\"}\n```\n\n```go\nvar ErrTypeModal = ErrTypeData{ErrType: \"modal\"}\n```\n\n```go\nvar ErrTypeToast = ErrTypeData{ErrType: \"toast\"}\n```\n\n```go\nvar GetThemeOptions = []*ThemeOption{\n\t{\n\t\tLabel: \"Default\",\n\t\tValue: \"default\",\n\t},\n}\n```\n\n```go\nvar NotificationInboxType = map[string]int{\n\t\"all\":     NotificationInboxTypeAll,\n\t\"posts\":   NotificationInboxTypePosts,\n\t\"invites\": NotificationInboxTypeInvites,\n\t\"votes\":   NotificationInboxTypeVotes,\n}\n```\n\n```go\nvar NotificationType = map[string]int{\n\t\"inbox\":       NotificationTypeInbox,\n\t\"achievement\": NotificationTypeAchievement,\n}\n```\n\n```go\nvar UserStatusShowMsg = map[int]string{\n\t1:  \"\",\n\t9:  \"\u003cstrong\u003eThis user was suspended forever.\u003c/strong\u003e This user doesn't meet a community guideline.\",\n\t10: \"This user was deleted.\",\n\t11: \"This user is inactive.\",\n}\n```\n\n## Types\n\n```go\ntype AcceptAnswerActivity struct {\n\tActivityType     int\n\tActivityUserID   string\n\tTriggerUserID    string\n\tOriginalObjectID string\n\tRank             int\n}\n```\nAcceptAnswerActivity accept answer activity\n\n```go\nfunc (v *AcceptAnswerActivity) HasRank() int\n```\n\n```go\ntype AcceptAnswerOperationInfo struct {\n\tTriggerUserID    string\n\tQuestionObjectID string\n\tQuestionUserID   string\n\tAnswerObjectID   string\n\tAnswerUserID     string\n\n\t// vote activity info\n\tActivities []*AcceptAnswerActivity\n}\n```\nAcceptAnswerOperationInfo accept answer operation info\n\n```go\nfunc (a *AcceptAnswerOperationInfo) GetUserIDs() (userIDs []string)\n```\n\n```go\ntype AcceptAnswerReq struct {\n\tQuestionID string `validate:\"required,gt=0,lte=30\" json:\"question_id\"`\n\tAnswerID   string `validate:\"omitempty\" json:\"answer_id\"`\n\tUserID     string `json:\"-\"`\n}\n```\n\n```go\nfunc (req *AcceptAnswerReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype AcceptedAnswerItem struct {\n\tType        string    `json:\"@type\"`\n\tText        string    `json:\"text\"`\n\tDateCreated time.Time `json:\"dateCreated\"`\n\tUpvoteCount int       `json:\"upvoteCount\"`\n\tURL         string    `json:\"url\"`\n\tAuthor      struct {\n\t\tType string `json:\"@type\"`\n\t\tName string `json:\"name\"`\n\t} `json:\"author\"`\n}\n```\n\n```go\ntype ActObjectInfo struct {\n\tTitle           string `json:\"title\"`\n\tObjectType      string `json:\"object_type\"`\n\tQuestionID      string `json:\"question_id\"`\n\tAnswerID        string `json:\"answer_id\"`\n\tUsername        string `json:\"username\"`\n\tDisplayName     string `json:\"display_name\"`\n\tMainTagSlugName string `json:\"main_tag_slug_name\"`\n}\n```\nActObjectInfo act object info\n\n```go\ntype ActObjectTimeline struct {\n\tActivityID   string         `json:\"activity_id\"`\n\tRevisionID   string         `json:\"revision_id\"`\n\tCreatedAt    int64          `json:\"created_at\"`\n\tActivityType string         `json:\"activity_type\"`\n\tComment      string         `json:\"comment\"`\n\tObjectID     string         `json:\"object_id\"`\n\tObjectType   string         `json:\"object_type\"`\n\tCancelled    bool           `json:\"cancelled\"`\n\tCancelledAt  int64          `json:\"cancelled_at\"`\n\tUserInfo     *UserBasicInfo `json:\"user_info,omitempty\"`\n}\n```\nActObjectTimeline act object timeline\n\n```go\ntype ActionRecordReq struct {\n\tAction string `validate:\"required,oneof=email password edit_userinfo question answer comment edit invitation_answer search report delete vote\" form:\"action\"`\n\tIP     string `json:\"-\"`\n\tUserID string `json:\"-\"`\n}\n```\n\n```go\ntype ActionRecordResp struct {\n\tCaptchaID  string `json:\"captcha_id\"`\n\tCaptchaImg string `json:\"captcha_img\"`\n\tVerify     bool   `json:\"verify\"`\n}\n```\n\n```go\ntype ActivityMsg struct {\n\tUserID           string\n\tTriggerUserID    int64\n\tObjectID         string\n\tOriginalObjectID string\n\tActivityTypeKey  constant.ActivityTypeKey\n\tRevisionID       string\n\tExtraInfo        map[string]string\n}\n```\nActivityMsg activity message\n\n```go\ntype AddCollectionGroupReq struct {\n\t//\n\tUserID int64 `validate:\"required\" comment:\"\" json:\"user_id\"`\n\t// the collection group name\n\tName string `validate:\"required,gt=0,lte=50\" comment:\"the collection group name\" json:\"name\"`\n\t// mark this group is default, default 1\n\tDefaultGroup int `validate:\"required\" comment:\"mark this group is default, default 1\" json:\"default_group\"`\n\t//\n\tCreateTime time.Time `validate:\"required\" comment:\"\" json:\"create_time\"`\n\t//\n\tUpdateTime time.Time `validate:\"required\" comment:\"\" json:\"update_time\"`\n}\n```\nAddCollectionGroupReq add collection group request\n\n```go\ntype AddCommentReq struct {\n\t// object id\n\tObjectID string `validate:\"required\" json:\"object_id\"`\n\t// reply comment id\n\tReplyCommentID string `validate:\"omitempty\" json:\"reply_comment_id\"`\n\t// original comment content\n\tOriginalText string `validate:\"required,notblank,gte=2,lte=600\" json:\"original_text\"`\n\t// parsed comment content\n\tParsedText string `json:\"-\"`\n\t// @ user id list\n\tMentionUsernameList []string `validate:\"omitempty\" json:\"mention_username_list\"`\n\t// user id\n\tUserID string `json:\"-\"`\n\t// whether user can add it\n\tCanAdd bool `json:\"-\"`\n\t// whether user can edit it\n\tCanEdit bool `json:\"-\"`\n\t// whether user can delete it\n\tCanDelete   bool   `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nAddCommentReq add comment request\n\n```go\nfunc (req *AddCommentReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype AddConfigReq struct {\n\t// the config key\n\tKey string `validate:\"omitempty,gt=0,lte=32\" comment:\"the config key\" json:\"key\"`\n\t// the config value, custom data structures and types\n\tValue string `validate:\"omitempty,gt=0,lte=128\" comment:\"the config value, custom data structures and types\" json:\"value\"`\n}\n```\nAddConfigReq add config request\n\n```go\ntype AddReportReq struct {\n\t// object id\n\tObjectID string `validate:\"required,gt=0,lte=20\" json:\"object_id\"`\n\t// report type\n\tReportType int `validate:\"required\" json:\"report_type\"`\n\t// report content\n\tContent string `validate:\"omitempty,gt=0,lte=500\" json:\"content\"`\n\t// user id\n\tUserID      string `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nAddReportReq add report request\n\n```go\ntype AddRevisionDTO struct {\n\t// user id\n\tUserID string\n\t// object id\n\tObjectID string\n\t// title\n\tTitle string\n\t// content\n\tContent string\n\t// log\n\tLog string\n\t// status\n\tStatus int\n}\n```\nAddRevisionDTO add revision request\n\n```go\ntype AddTagListReq struct {\n\t// tag_id\n\tTagID int64 `validate:\"required\" comment:\"tag_id\" json:\"tag_id\"`\n\t// object_id\n\tObjectID int64 `validate:\"required\" comment:\"object_id\" json:\"object_id\"`\n\t// tag_list_status(available: 1; deleted: 10)\n\tStatus int `validate:\"required\" comment:\"tag_list_status(available: 1; deleted: 10)\" json:\"status\"`\n}\n```\nAddTagListReq add tag list request\n\n```go\ntype AddTagReq struct {\n\t// slug_name\n\tSlugName string `validate:\"required,gt=0,lte=35\" json:\"slug_name\"`\n\t// display_name\n\tDisplayName string `validate:\"required,gt=0,lte=35\" json:\"display_name\"`\n\t// original text\n\tOriginalText string `validate:\"required,gt=0,lte=65536\" json:\"original_text\"`\n\t// parsed text\n\tParsedText string `json:\"-\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nAddTagReq add tag request\n\n```go\nfunc (req *AddTagReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype AddTagResp struct {\n\tSlugName string `json:\"slug_name\"`\n}\n```\nAddTagResp add tag response\n\n```go\ntype AddUserReq struct {\n\tDisplayName string `validate:\"required,gte=4,lte=30\" json:\"display_name\"`\n\tEmail       string `validate:\"required,email,gt=0,lte=500\" json:\"email\"`\n\tPassword    string `validate:\"required,gte=8,lte=32\" json:\"password\"`\n\tLoginUserID string `json:\"-\"`\n}\n```\nAddUserReq add user request\n\n```go\ntype AddUsersErrorData struct {\n\t// optional. error field name.\n\tField string `json:\"field\"`\n\t// must. error line number.\n\tLine int `json:\"line\"`\n\t// must. error content.\n\tContent string `json:\"content\"`\n\t// optional. error message.\n\tExtraMessage string `json:\"extra_message\"`\n}\n```\n\n```go\nfunc (e *AddUsersErrorData) GetErrField(ctx context.Context) (errFields []*validator.FormErrorField)\n```\n\n```go\ntype AddUsersReq struct {\n\t// users info line by line\n\tUsersStr string        `json:\"users\"`\n\tUsers    []*AddUserReq `json:\"-\"`\n}\n```\nAddUsersReq add users request\n\n```go\nfunc (req *AddUsersReq) ParseUsers(ctx context.Context) (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype AdminAnswerInfo struct {\n\tID           string         `json:\"id\"`\n\tQuestionID   string         `json:\"question_id\"`\n\tDescription  string         `json:\"description\"`\n\tCreateTime   int64          `json:\"create_time\"`\n\tUpdateTime   int64          `json:\"update_time\"`\n\tAccepted     int            `json:\"accepted\"`\n\tUserID       string         `json:\"-\"`\n\tUpdateUserID string         `json:\"-\"`\n\tUserInfo     *UserBasicInfo `json:\"user_info\"`\n\tVoteCount    int            `json:\"vote_count\"`\n\tQuestionInfo struct {\n\t\tTitle string `json:\"title\"`\n\t} `json:\"question_info\"`\n}\n```\n\n```go\ntype AdminAnswerPageReq struct {\n\tPage          int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize      int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n\tStatusCond    string `validate:\"omitempty,oneof=normal deleted\" form:\"status\"`\n\tQuery         string `validate:\"omitempty,gt=0,lte=100\" form:\"query\"`\n\tQuestionID    string `validate:\"omitempty,gt=0,lte=24\" form:\"question_id\"`\n\tQuestionTitle string `json:\"-\"`\n\tAnswerID      string `json:\"-\"`\n\tStatus        int    `json:\"-\"`\n\tLoginUserID   string `json:\"-\"`\n}\n```\nAdminAnswerPageReq admin answer page req\n\n```go\nfunc (req *AdminAnswerPageReq) Check() (errField []*validator.FormErrorField, err error)\n```\n\n```go\ntype AdminQuestionInfo struct {\n\tID               string         `json:\"id\"`\n\tTitle            string         `json:\"title\"`\n\tVoteCount        int            `json:\"vote_count\"`\n\tAnswerCount      int            `json:\"answer_count\"`\n\tAcceptedAnswerID string         `json:\"accepted_answer_id\"`\n\tCreateTime       int64          `json:\"create_time\"`\n\tUpdateTime       int64          `json:\"update_time\"`\n\tEditTime         int64          `json:\"edit_time\"`\n\tUserID           string         `json:\"-\" `\n\tUserInfo         *UserBasicInfo `json:\"user_info\"`\n}\n```\n\n```go\ntype AdminQuestionPageReq struct {\n\tPage        int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize    int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n\tStatusCond  string `validate:\"omitempty,oneof=normal closed deleted\" form:\"status\"`\n\tQuery       string `validate:\"omitempty,gt=0,lte=100\" json:\"query\" form:\"query\" `\n\tStatus      int    `json:\"-\"`\n\tLoginUserID string `json:\"-\"`\n}\n```\n\n```go\nfunc (req *AdminQuestionPageReq) Check() (errField []*validator.FormErrorField, err error)\n```\n\n```go\ntype AdminUpdateAnswerStatusReq struct {\n\tAnswerID string `validate:\"required\" json:\"answer_id\"`\n\tStatus   string `validate:\"required,oneof=available deleted\" json:\"status\"`\n\tUserID   string `json:\"-\"`\n}\n```\n\n```go\ntype AdminUpdateQuestionStatusReq struct {\n\tQuestionID string `validate:\"required\" json:\"question_id\"`\n\tStatus     string `validate:\"required,oneof=available closed deleted\" json:\"status\"`\n\tUserID     string `json:\"-\"`\n}\n```\n\n```go\ntype AgentInfo struct {\n\tName                      string           `json:\"name\"`\n\tDisplayName               string           `json:\"display_name\"`\n\tIcon                      string           `json:\"icon\"`\n\tUrl                       string           `json:\"url\"`\n\tLoginRedirectURL          string           `json:\"login_redirect_url\"`\n\tSignUpRedirectURL         string           `json:\"sign_up_redirect_url\"`\n\tControlCenterItems        []*ControlCenter `json:\"control_center\"`\n\tEnabledOriginalUserSystem bool             `json:\"enabled_original_user_system\"`\n}\n```\n\n```go\ntype AnswerAddReq struct {\n\tQuestionID  string `json:\"question_id\"`\n\tContent     string `validate:\"required,notblank,gte=6,lte=65535\" json:\"content\"`\n\tHTML        string `json:\"-\"`\n\tUserID      string `json:\"-\"`\n\tCanEdit     bool   `json:\"-\"`\n\tCanDelete   bool   `json:\"-\"`\n\tCanRecover  bool   `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"`\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\nfunc (req *AnswerAddReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype AnswerInfo struct {\n\tID             string         `json:\"id\" xorm:\"id\"`\n\tQuestionID     string         `json:\"question_id\" xorm:\"question_id\"`\n\tContent        string         `json:\"content\" xorm:\"content\"`\n\tHTML           string         `json:\"html\" xorm:\"html\"`\n\tCreateTime     int64          `json:\"create_time\" xorm:\"created\"`\n\tUpdateTime     int64          `json:\"update_time\" xorm:\"updated\"`\n\tAccepted       int            `json:\"accepted\"`\n\tUserID         string         `json:\"-\"`\n\tUpdateUserID   string         `json:\"-\"`\n\tUserInfo       *UserBasicInfo `json:\"user_info,omitempty\"`\n\tUpdateUserInfo *UserBasicInfo `json:\"update_user_info,omitempty\"`\n\tCollected      bool           `json:\"collected\"`\n\tVoteStatus     string         `json:\"vote_status\"`\n\tVoteCount      int            `json:\"vote_count\"`\n\tQuestionInfo   *QuestionInfo  `json:\"question_info,omitempty\"`\n\tStatus         int            `json:\"status\"`\n\n\t// MemberActions\n\tMemberActions []*PermissionMemberAction `json:\"member_actions\"`\n}\n```\n\n```go\ntype AnswerListReq struct {\n\tQuestionID string `json:\"question_id\" form:\"question_id\"`\n\tOrder      string `json:\"order\" form:\"order\"`\n\tPage       int    `json:\"page\" form:\"page\"`\n\tPageSize   int    `json:\"page_size\" form:\"page_size\"`\n\tUserID     string `json:\"-\"`\n\tIsAdmin    bool   `json:\"-\"`\n\tCanEdit    bool   `json:\"-\"`\n\tCanDelete  bool   `json:\"-\"`\n\tCanRecover bool   `json:\"-\"`\n}\n```\n\n```go\ntype AnswerUpdateReq struct {\n\tID           string `json:\"id\"`\n\tQuestionID   string `json:\"question_id\"`\n\tTitle        string `json:\"title\"`\n\tContent      string `validate:\"required,notblank,gte=6,lte=65535\" json:\"content\"`\n\tEditSummary  string `validate:\"omitempty\" json:\"edit_summary\"`\n\tHTML         string `json:\"-\"`\n\tUserID       string `json:\"-\"`\n\tNoNeedReview bool   `json:\"-\"`\n\tCanEdit      bool   `json:\"-\"`\n\tCaptchaID    string `json:\"captcha_id\"`\n\tCaptchaCode  string `json:\"captcha_code\"`\n}\n```\n\n```go\nfunc (req *AnswerUpdateReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype AnswerUpdateResp struct {\n\tWaitForReview bool `json:\"wait_for_review\"`\n}\n```\nAnswerUpdateResp answer update resp\n\n```go\ntype AvatarInfo struct {\n\tType     string `validate:\"omitempty,gt=0,lte=100\"  json:\"type\"`\n\tGravatar string `validate:\"omitempty,gt=0,lte=200\"  json:\"gravatar\"`\n\tCustom   string `validate:\"omitempty,gt=0,lte=200\"  json:\"custom\"`\n}\n```\n\n```go\nfunc CustomAvatar(url string) *AvatarInfo\n```\n\n```go\nfunc (a *AvatarInfo) GetURL() string\n```\n\n```go\nfunc (a *AvatarInfo) ToJsonString() string\n```\n\n```go\ntype ChangeEmailTemplateData struct {\n\tSiteName       string\n\tChangeEmailUrl string\n}\n```\n\n```go\ntype CheckCanQuestionUpdate struct {\n\t// question id\n\tID string `validate:\"required\" form:\"id\"`\n\t// user id\n\tUserID  string `json:\"-\"`\n\tIsAdmin bool   `json:\"-\"`\n}\n```\n\n```go\ntype CloseQuestionMeta struct {\n\tCloseType int    `json:\"close_type\"`\n\tCloseMsg  string `json:\"close_msg\"`\n}\n```\n\n```go\ntype CloseQuestionReq struct {\n\tID        string `validate:\"required\" json:\"id\"`\n\tCloseType int    `json:\"close_type\"` // close_type\n\tCloseMsg  string `json:\"close_msg\"`  // close_type\n\tUserID    string `json:\"-\"`          // user_id\n}\n```\n\n```go\ntype CollectionSwitchDTO struct {\n\tObjectID string\n\tGroupID  string\n\tUserID   string\n}\n```\nCollectionSwitchDTO  collection data transfer object\n\n```go\ntype CollectionSwitchReq struct {\n\t// object TagID\n\tObjectID string `validate:\"required\" json:\"object_id\"`\n\t// user collection group TagID\n\tGroupID string `validate:\"required\" json:\"group_id\"`\n}\n```\nCollectionSwitchReq switch collection request\n\n```go\ntype CollectionSwitchResp struct {\n\tObjectID              string `json:\"object_id\"`\n\tSwitch                bool   `json:\"switch\"`\n\tObjectCollectionCount string `json:\"object_collection_count\"`\n}\n```\nCollectionSwitchResp switch collection response\n\n```go\ntype ConfigField struct {\n\tName        string               `json:\"name\"`\n\tType        string               `json:\"type\"`\n\tTitle       string               `json:\"title\"`\n\tDescription string               `json:\"description\"`\n\tRequired    bool                 `json:\"required\"`\n\tValue       any                  `json:\"value\"`\n\tUIOptions   ConfigFieldUIOptions `json:\"ui_options\"`\n\tOptions     []ConfigFieldOption  `json:\"options,omitempty\"`\n}\n```\n\n```go\ntype ConfigFieldOption struct {\n\tLabel string `json:\"label\"`\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype ConfigFieldUIOptions struct {\n\tPlaceholder string          `json:\"placeholder,omitempty\"`\n\tRows        string          `json:\"rows,omitempty\"`\n\tInputType   string          `json:\"input_type,omitempty\"`\n\tLabel       string          `json:\"label,omitempty\"`\n\tAction      *UIOptionAction `json:\"action,omitempty\"`\n\tVariant     string          `json:\"variant,omitempty\"`\n\tText        string          `json:\"text,omitempty\"`\n}\n```\n\n```go\ntype ConnectorInfoResp struct {\n\tName string `json:\"name\"`\n\tIcon string `json:\"icon\"`\n\tLink string `json:\"link\"`\n}\n```\n\n```go\ntype ConnectorUserInfoResp struct {\n\tName       string `json:\"name\"`\n\tIcon       string `json:\"icon\"`\n\tLink       string `json:\"link\"`\n\tBinding    bool   `json:\"binding\"`\n\tExternalID string `json:\"external_id\"`\n}\n```\n\n```go\ntype ControlCenter struct {\n\tName  string `json:\"name\"`\n\tLabel string `json:\"label\"`\n\tUrl   string `json:\"url\"`\n}\n```\n\n```go\ntype DashboardInfo struct {\n\tQuestionCount         int64                `json:\"question_count\"`\n\tAnswerCount           int64                `json:\"answer_count\"`\n\tCommentCount          int64                `json:\"comment_count\"`\n\tVoteCount             int64                `json:\"vote_count\"`\n\tUserCount             int64                `json:\"user_count\"`\n\tReportCount           int64                `json:\"report_count\"`\n\tUploadingFiles        bool                 `json:\"uploading_files\"`\n\tSMTP                  bool                 `json:\"smtp\"`\n\tHTTPS                 bool                 `json:\"https\"`\n\tTimeZone              string               `json:\"time_zone\"`\n\tOccupyingStorageSpace string               `json:\"occupying_storage_space\"`\n\tAppStartTime          string               `json:\"app_start_time\"`\n\tVersionInfo           DashboardInfoVersion `json:\"version_info\"`\n}\n```\n\n```go\ntype DashboardInfoVersion struct {\n\tVersion       string `json:\"version\"`\n\tRevision      string `json:\"revision\"`\n\tRemoteVersion string `json:\"remote_version\"`\n}\n```\n\n```go\ntype EmailCodeContent struct {\n\tSourceType EmailSourceType `json:\"source_type\"`\n\tEmail      string          `json:\"e_mail\"`\n\tUserID     string          `json:\"user_id\"`\n\t// Used for unsubscribe notification\n\tNotificationSources []constant.NotificationSource `json:\"notification_source,omitempty\"`\n\t// Used for third-party login account binding\n\tBindingKey string `json:\"binding_key,omitempty\"`\n}\n```\n\n```go\nfunc (r *EmailCodeContent) FromJSONString(data string) error\n```\n\n```go\nfunc (r *EmailCodeContent) ToJSONString() string\n```\n\n```go\ntype EmailSourceType string\n```\n\n```go\nconst (\n\tAccountActivationSourceType EmailSourceType = \"account-activation\"\n\tPasswordResetSourceType     EmailSourceType = \"password-reset\"\n\tConfirmNewEmailSourceType   EmailSourceType = \"password-reset\"\n\tUnsubscribeSourceType       EmailSourceType = \"unsubscribe\"\n\tBindingSourceType           EmailSourceType = \"binding\"\n)\n```\n\n```go\ntype ErrTypeData struct {\n\tErrType string `json:\"err_type\"`\n}\n```\n\n```go\ntype ExternalLoginBindingUserReq struct {\n\tCode    string `validate:\"required,gt=0,lte=500\" json:\"code\"`\n\tContent string `json:\"-\"`\n}\n```\nExternalLoginBindingUserReq external login binding user request\n\n```go\ntype ExternalLoginBindingUserResp struct {\n\tAccessToken string `json:\"access_token\"`\n}\n```\nExternalLoginBindingUserResp external login binding user response\n\n```go\ntype ExternalLoginBindingUserSendEmailReq struct {\n\tBindingKey string `validate:\"required,gt=1,lte=100\" json:\"binding_key\"`\n\tEmail      string `validate:\"required,gt=1,lte=512,email\" json:\"email\"`\n\t// If must is true, whatever email if exists, try to bind user.\n\t// If must is false, when email exist, will only be prompted with a warning.\n\tMust bool `json:\"must\"`\n}\n```\nExternalLoginBindingUserSendEmailReq external login binding user request\n\n```go\ntype ExternalLoginBindingUserSendEmailResp struct {\n\tEmailExistAndMustBeConfirmed bool   `json:\"email_exist_and_must_be_confirmed\"`\n\tAccessToken                  string `json:\"access_token\"`\n}\n```\nExternalLoginBindingUserSendEmailResp external login binding user response\n\n```go\ntype ExternalLoginUnbindingReq struct {\n\tExternalID string `validate:\"required,gt=0,lte=128\" json:\"external_id\"`\n\tUserID     string `json:\"-\"`\n}\n```\nExternalLoginUnbindingReq external login unbinding user\n\n```go\ntype ExternalLoginUserInfoCache struct {\n\t// Third party identification\n\t// e.g. facebook, twitter, instagram\n\tProvider string\n\t// required. The unique user ID provided by the third-party login\n\tExternalID string\n\t// optional. This name is used preferentially during registration\n\tDisplayName string\n\t// optional. This username is used preferentially during registration\n\tUsername string\n\t// optional. If email exist will bind the existing user\n\tEmail string\n\t// optional. The avatar URL provided by the third-party login platform\n\tAvatar string\n\t// optional. The original user information provided by the third-party login platform\n\tMetaInfo string\n\t// optional. The bio provided by the third-party login platform\n\tBio string\n}\n```\nExternalLoginUserInfoCache external login user info\n\n```go\ntype ExternalNotificationMsg struct {\n\tReceiverUserID string `json:\"receiver_user_id\"`\n\tReceiverEmail  string `json:\"receiver_email\"`\n\tReceiverLang   string `json:\"receiver_lang\"`\n\n\tNewAnswerTemplateRawData       *NewAnswerTemplateRawData       `json:\"new_answer_template_raw_data,omitempty\"`\n\tNewInviteAnswerTemplateRawData *NewInviteAnswerTemplateRawData `json:\"new_invite_answer_template_raw_data,omitempty\"`\n\tNewCommentTemplateRawData      *NewCommentTemplateRawData      `json:\"new_comment_template_raw_data,omitempty\"`\n\tNewQuestionTemplateRawData     *NewQuestionTemplateRawData     `json:\"new_question_template_raw_data,omitempty\"`\n}\n```\n\n```go\nfunc CreateNewQuestionNotificationMsg(\n\tquestionID, questionTitle, questionAuthorUserID string, tags []*entity.Tag) *ExternalNotificationMsg\n```\n\n```go\ntype FollowDTO struct {\n\t// object TagID\n\tObjectID string\n\t// is cancel\n\tIsCancel bool\n\t// user TagID\n\tUserID string\n}\n```\n\n```go\ntype FollowReq struct {\n\t// object id\n\tObjectID string `validate:\"required\" form:\"object_id\" json:\"object_id\"`\n\t// is cancel\n\tIsCancel bool `validate:\"omitempty\" form:\"is_cancel\" json:\"is_cancel\"`\n}\n```\nFollowReq follow object request\n\n```go\ntype FollowResp struct {\n\t// the followers of object\n\tFollows int `json:\"follows\"`\n\t// if user is followed object will be true,otherwise false\n\tIsFollowed bool `json:\"is_followed\"`\n}\n```\nFollowResp response object's follows and current user follow status\n\n```go\ntype ForbiddenResp struct {\n\t// forbidden reason type\n\tType string `json:\"type\" enums:\"inactive,url_expired\"`\n}\n```\nForbiddenResp forbidden response\n\n```go\ntype GetAllPluginStatusResp struct {\n\tSlugName string `json:\"slug_name\"`\n\tEnabled  bool   `json:\"enabled\"`\n}\n```\n\n```go\ntype GetCloseTypeResp struct {\n\t// report name\n\tName string `json:\"name\"`\n\t// report description\n\tDescription string `json:\"description\"`\n\t// report source\n\tSource string `json:\"source\"`\n\t// report type\n\tType int `json:\"type\"`\n\t// is have content\n\tHaveContent bool `json:\"have_content\"`\n\t// content type\n\tContentType string `json:\"content_type\"`\n}\n```\n\n```go\ntype GetCollectionGroupResp struct {\n\t//\n\tID int64 `json:\"id\"`\n\t//\n\tUserID int64 `json:\"user_id\"`\n\t// the collection group name\n\tName string `json:\"name\"`\n\t// mark this group is default, default 1\n\tDefaultGroup int `json:\"default_group\"`\n\t//\n\tCreateTime time.Time `json:\"create_time\"`\n\t//\n\tUpdateTime time.Time `json:\"update_time\"`\n}\n```\nGetCollectionGroupResp get collection group response\n\n```go\ntype GetCommentListReq struct {\n\t// user id\n\tUserID int64 `validate:\"omitempty\" comment:\"user id\" form:\"user_id\"`\n\t// reply user id\n\tReplyUserID int64 `validate:\"omitempty\" comment:\"reply user id\" form:\"reply_user_id\"`\n\t// reply comment id\n\tReplyCommentID int64 `validate:\"omitempty\" comment:\"reply comment id\" form:\"reply_comment_id\"`\n\t// object id\n\tObjectID int64 `validate:\"omitempty\" comment:\"object id\" form:\"object_id\"`\n\t// user vote amount\n\tVoteCount int `validate:\"omitempty\" comment:\"user vote amount\" form:\"vote_count\"`\n\t// comment status(available: 0; deleted: 10)\n\tStatus int `validate:\"omitempty\" comment:\"comment status(available: 0; deleted: 10)\" form:\"status\"`\n\t// original comment content\n\tOriginalText string `validate:\"omitempty\" comment:\"original comment content\" form:\"original_text\"`\n\t// parsed comment content\n\tParsedText string `validate:\"omitempty\" comment:\"parsed comment content\" form:\"parsed_text\"`\n}\n```\nGetCommentListReq get comment list all request\n\n```go\ntype GetCommentPersonalWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// username\n\tUsername string `validate:\"omitempty,gt=0,lte=100\" form:\"username\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nGetCommentPersonalWithPageReq get comment list page request\n\n```go\ntype GetCommentPersonalWithPageResp struct {\n\t// comment id\n\tCommentID string `json:\"comment_id\"`\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// object id\n\tObjectID string `json:\"object_id\"`\n\t// question id\n\tQuestionID string `json:\"question_id\"`\n\t// answer id\n\tAnswerID string `json:\"answer_id\"`\n\t// object type\n\tObjectType string `json:\"object_type\" enums:\"question,answer,tag,comment\"`\n\t// title\n\tTitle string `json:\"title\"`\n\t// url title\n\tUrlTitle string `json:\"url_title\"`\n\t// content\n\tContent string `json:\"content\"`\n}\n```\nGetCommentPersonalWithPageResp comment response\n\n```go\ntype GetCommentReq struct {\n\t// object id\n\tID string `validate:\"required\" form:\"id\"`\n\t// user id\n\tUserID string `json:\"-\"`\n\t// whether user can edit it\n\tCanEdit bool `json:\"-\"`\n\t// whether user can delete it\n\tCanDelete bool `json:\"-\"`\n}\n```\nGetCommentReq get comment list page request\n\n```go\ntype GetCommentResp struct {\n\t// comment id\n\tCommentID string `json:\"comment_id\"`\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\n\t// object id\n\tObjectID string `json:\"object_id\"`\n\t// user vote amount\n\tVoteCount int `json:\"vote_count\"`\n\t// current user if already vote this comment\n\tIsVote bool `json:\"is_vote\"`\n\t// original comment content\n\tOriginalText string `json:\"original_text\"`\n\t// parsed comment content\n\tParsedText string `json:\"parsed_text\"`\n\n\t// user id\n\tUserID string `json:\"user_id\"`\n\t// username\n\tUsername string `json:\"username\"`\n\t// user display name\n\tUserDisplayName string `json:\"user_display_name\"`\n\t// user avatar\n\tUserAvatar string `json:\"user_avatar\"`\n\t// user status\n\tUserStatus string `json:\"user_status\"`\n\n\t// reply user id\n\tReplyUserID string `json:\"reply_user_id\"`\n\t// reply user username\n\tReplyUsername string `json:\"reply_username\"`\n\t// reply user display name\n\tReplyUserDisplayName string `json:\"reply_user_display_name\"`\n\t// reply comment id\n\tReplyCommentID string `json:\"reply_comment_id\"`\n\t// reply user status\n\tReplyUserStatus string `json:\"reply_user_status\"`\n\n\t// MemberActions\n\tMemberActions []*PermissionMemberAction `json:\"member_actions\"`\n}\n```\nGetCommentResp comment response\n\n```go\nfunc (r *GetCommentResp) SetFromComment(comment *entity.Comment)\n```\n\n```go\ntype GetCommentWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// object id\n\tObjectID string `validate:\"required\" form:\"object_id\"`\n\t// comment id\n\tCommentID string `validate:\"omitempty\" form:\"comment_id\"`\n\t// query condition\n\tQueryCond string `validate:\"omitempty,oneof=vote\" form:\"query_cond\"`\n\t// user id\n\tUserID string `json:\"-\"`\n\t// whether user can edit it\n\tCanEdit bool `json:\"-\"`\n\t// whether user can delete it\n\tCanDelete bool `json:\"-\"`\n}\n```\nGetCommentWithPageReq get comment list page request\n\n```go\ntype GetConfigListReq struct {\n\t// the config key\n\tKey string `validate:\"omitempty,gt=0,lte=32\" comment:\"the config key\" form:\"key\"`\n\t// the config value, custom data structures and types\n\tValue string `validate:\"omitempty,gt=0,lte=128\" comment:\"the config value, custom data structures and types\" form:\"value\"`\n}\n```\nGetConfigListReq get config list all request\n\n```go\ntype GetConfigResp struct {\n\t// config id\n\tID int `json:\"id\"`\n\t// the config key\n\tKey string `json:\"key\"`\n\t// the config value, custom data structures and types\n\tValue string `json:\"value\"`\n}\n```\nGetConfigResp get config response\n\n```go\ntype GetConfigWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// the config key\n\tKey string `validate:\"omitempty,gt=0,lte=32\" comment:\"the config key\" form:\"key\"`\n\t// the config value, custom data structures and types\n\tValue string `validate:\"omitempty,gt=0,lte=128\" comment:\"the config value, custom data structures and types\" form:\"value\"`\n}\n```\nGetConfigWithPageReq get config list page request\n\n```go\ntype GetCurrentLoginUserInfoResp struct {\n\t*UserLoginResp\n\tAvatar *AvatarInfo `json:\"avatar\"`\n}\n```\n\n```go\nfunc (r *GetCurrentLoginUserInfoResp) ConvertFromUserEntity(userInfo *entity.User)\n```\n\n```go\ntype GetFollowingTagsResp struct {\n\t// tag id\n\tTagID string `json:\"tag_id\"`\n\t// slug name\n\tSlugName string `json:\"slug_name\"`\n\t// display name\n\tDisplayName string `json:\"display_name\"`\n\t// if main tag slug name is not empty, this tag is synonymous with the main tag\n\tMainTagSlugName string `json:\"main_tag_slug_name\"`\n\tRecommend       bool   `json:\"recommend\"`\n\tReserved        bool   `json:\"reserved\"`\n}\n```\nGetFollowingTagsResp get following tags response\n\n```go\ntype GetManifestJsonResp struct {\n\tManifestVersion int               `json:\"manifest_version\"`\n\tVersion         string            `json:\"version\"`\n\tRevision        string            `json:\"revision\"`\n\tShortName       string            `json:\"short_name\"`\n\tName            string            `json:\"name\"`\n\tIcons           map[string]string `json:\"icons\"`\n\tStartUrl        string            `json:\"start_url\"`\n\tDisplay         string            `json:\"display\"`\n\tThemeColor      string            `json:\"theme_color\"`\n\tBackgroundColor string            `json:\"background_color\"`\n}\n```\nGetManifestJsonResp get manifest json response\n\n```go\ntype GetObjectTimelineDetailReq struct {\n\tNewRevisionID string `validate:\"required,gt=0,lte=100\" form:\"new_revision_id\"`\n\tOldRevisionID string `validate:\"required,gt=0,lte=100\" form:\"old_revision_id\"`\n\tUserID        string `json:\"-\"`\n}\n```\nGetObjectTimelineDetailReq get object timeline detail request\n\n```go\ntype GetObjectTimelineDetailResp struct {\n\tNewRevision *ObjectTimelineDetail `json:\"new_revision\"`\n\tOldRevision *ObjectTimelineDetail `json:\"old_revision\"`\n}\n```\nGetObjectTimelineDetailResp get object timeline detail response\n\n```go\ntype GetObjectTimelineReq struct {\n\tObjectID string `validate:\"omitempty,gt=0,lte=100\" form:\"object_id\"`\n\tShowVote bool   `validate:\"omitempty\" form:\"show_vote\"`\n\tUserID   string `json:\"-\"`\n\tIsAdmin  bool   `json:\"-\"`\n}\n```\nGetObjectTimelineReq get object timeline request\n\n```go\ntype GetObjectTimelineResp struct {\n\tObjectInfo *ActObjectInfo       `json:\"object_info\"`\n\tTimeline   []*ActObjectTimeline `json:\"timeline\"`\n}\n```\nGetObjectTimelineResp get object timeline response\n\n```go\ntype GetOtherUserInfoByUsernameReq struct {\n\tUsername string `validate:\"required,gt=0,lte=500\" form:\"username\"`\n\tUserID   string `json:\"-\"`\n}\n```\n\n```go\ntype GetOtherUserInfoByUsernameResp struct {\n\t// user id\n\tID string `json:\"id\"`\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// last login date\n\tLastLoginDate int64 `json:\"last_login_date\"`\n\t// username\n\tUsername string `json:\"username\"`\n\t// email\n\t// follow count\n\tFollowCount int `json:\"follow_count\"`\n\t// answer count\n\tAnswerCount int `json:\"answer_count\"`\n\t// question count\n\tQuestionCount int `json:\"question_count\"`\n\t// rank\n\tRank int `json:\"rank\"`\n\t// display name\n\tDisplayName string `json:\"display_name\"`\n\t// avatar\n\tAvatar string `json:\"avatar\"`\n\t// mobile\n\tMobile string `json:\"mobile\"`\n\t// bio markdown\n\tBio string `json:\"bio\"`\n\t// bio html\n\tBioHTML string `json:\"bio_html\"`\n\t// website\n\tWebsite string `json:\"website\"`\n\t// location\n\tLocation  string `json:\"location\"`\n\tStatus    string `json:\"status\"`\n\tStatusMsg string `json:\"status_msg,omitempty\"`\n}\n```\nGetOtherUserInfoByUsernameResp get user response\n\n```go\nfunc (r *GetOtherUserInfoByUsernameResp) ConvertFromUserEntity(userInfo *entity.User)\n```\n\n```go\ntype GetOtherUserInfoResp struct {\n\tInfo *GetOtherUserInfoByUsernameResp `json:\"info\"`\n}\n```\n\n```go\ntype GetPermissionReq struct {\n\tAction  string   `form:\"action\"`\n\tActions []string `validate:\"omitempty\" form:\"actions\"`\n}\n```\nGetPermissionReq get permission request\n\n```go\nfunc (r *GetPermissionReq) Check() (errField []*validator.FormErrorField, err error)\n```\n\n```go\ntype GetPermissionResp struct {\n\tHasPermission bool `json:\"has_permission\"`\n\t// only not allow, will return this tip\n\tNoPermissionTip string `json:\"no_permission_tip\"`\n}\n```\nGetPermissionResp get permission response\n\n```go\nfunc (r *GetPermissionResp) TrTip(lang i18n.Language, requireRank int)\n```\n\n```go\ntype GetPluginConfigReq struct {\n\tPluginSlugName string `validate:\"required,gt=1,lte=100\" form:\"plugin_slug_name\"`\n}\n```\n\n```go\ntype GetPluginConfigResp struct {\n\tName         string        `json:\"name\"`\n\tSlugName     string        `json:\"slug_name\"`\n\tDescription  string        `json:\"description\"`\n\tVersion      string        `json:\"version\"`\n\tConfigFields []ConfigField `json:\"config_fields\"`\n}\n```\n\n```go\nfunc (g *GetPluginConfigResp) SetConfigFields(ctx *gin.Context, fields []plugin.ConfigField)\n```\n\n```go\ntype GetPluginListReq struct {\n\tStatus     PluginStatus `form:\"status\"`\n\tHaveConfig bool         `form:\"have_config\"`\n}\n```\n\n```go\ntype GetPluginListResp struct {\n\tName        string `json:\"name\"`\n\tSlugName    string `json:\"slug_name\"`\n\tDescription string `json:\"description\"`\n\tVersion     string `json:\"version\"`\n\tEnabled     bool   `json:\"enabled\"`\n\tHaveConfig  bool   `json:\"have_config\"`\n\tLink        string `json:\"link\"`\n}\n```\n\n```go\ntype GetPrivilegesConfigResp struct {\n\tOptions       []*PrivilegeOption `json:\"options\"`\n\tSelectedLevel PrivilegeLevel     `json:\"selected_level\"`\n}\n```\nGetPrivilegesConfigResp get privileges config response\n\n```go\ntype GetRankPersonalPageResp struct {\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// object id\n\tObjectID string `json:\"object_id\"`\n\t// question id\n\tQuestionID string `json:\"question_id\"`\n\t// answer id\n\tAnswerID string `json:\"answer_id\"`\n\t// object type\n\tObjectType string `json:\"object_type\" enums:\"question,answer,tag,comment\"`\n\t// title\n\tTitle string `json:\"title\"`\n\t// url title\n\tUrlTitle string `json:\"url_title\"`\n\t// content\n\tContent string `json:\"content\"`\n\t// reputation\n\tReputation int `json:\"reputation\"`\n\t// rank type\n\tRankType string `json:\"rank_type\"`\n}\n```\nGetRankPersonalPageResp rank response\n\n```go\ntype GetRankPersonalWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// username\n\tUsername string `validate:\"omitempty,gt=0,lte=100\" form:\"username\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nGetRankPersonalWithPageReq get rank list page request\n\n```go\ntype GetRedDot struct {\n\tCanReviewQuestion bool   `json:\"-\"`\n\tCanReviewAnswer   bool   `json:\"-\"`\n\tCanReviewTag      bool   `json:\"-\"`\n\tUserID            string `json:\"-\"`\n}\n```\n\n```go\ntype GetReportListPageDTO struct {\n\tObjectType string\n\tStatus     string\n\tPage       int\n\tPageSize   int\n}\n```\nGetReportListPageDTO report list data transfer object\n\n```go\ntype GetReportListPageResp struct {\n\tID           string         `json:\"id\"`\n\tReportedUser *UserBasicInfo `json:\"reported_user\"`\n\tReportUser   *UserBasicInfo `json:\"report_user\"`\n\n\tContent        string `json:\"content\"`\n\tFlaggedContent string `json:\"flagged_content\"`\n\tOType          string `json:\"object_type\"`\n\n\tObjectID   string `json:\"-\"`\n\tQuestionID string `json:\"question_id\"`\n\tAnswerID   string `json:\"answer_id\"`\n\tCommentID  string `json:\"comment_id\"`\n\n\tTitle   string `json:\"title\"`\n\tExcerpt string `json:\"excerpt\"`\n\n\t// create time\n\tCreatedAt       time.Time `json:\"-\"`\n\tCreatedAtParsed int64     `json:\"created_at\"`\n\n\tUpdatedAt       time.Time `json:\"_\"`\n\tUpdatedAtParsed int64     `json:\"updated_at\"`\n\n\tReason        *ReasonItem `json:\"reason\"`\n\tFlaggedReason *ReasonItem `json:\"flagged_reason\"`\n\n\tUserID         string `json:\"-\"`\n\tReportedUserID string `json:\"-\"`\n\tStatus         int    `json:\"-\"`\n\tObjectType     int    `json:\"-\"`\n\tReportType     int    `json:\"-\"`\n\tFlaggedType    int    `json:\"-\"`\n}\n```\nGetReportListPageResp get report list\n\n```go\nfunc (r *GetReportListPageResp) Format()\n```\nFormat format result\n\n```go\ntype GetReportListReq struct {\n\t// report source\n\tSource string `validate:\"required,oneof=question answer comment\" form:\"source\"`\n}\n```\nGetReportListReq get report list all request\n\n```go\ntype GetReportTypeResp struct {\n\t// report name\n\tName string `json:\"name\"`\n\t// report description\n\tDescription string `json:\"description\"`\n\t// report source\n\tSource string `json:\"source\"`\n\t// report type\n\tType int `json:\"type\"`\n\t// is have content\n\tHaveContent bool `json:\"have_content\"`\n\t// content type\n\tContentType string `json:\"content_type\"`\n}\n```\nGetReportTypeResp get report response\n\n```go\ntype GetRevisionListReq struct {\n\t// object id\n\tObjectID string `validate:\"required\" comment:\"object_id\" form:\"object_id\"`\n}\n```\nGetRevisionListReq get revision list all request\n\n```go\ntype GetRevisionResp struct {\n\t// id\n\tID string `json:\"id\"`\n\t// user id\n\tUserID string `json:\"use_id\"`\n\t// object id\n\tObjectID string `json:\"object_id\"`\n\t// object type\n\tObjectType int `json:\"-\"`\n\t// title\n\tTitle string `json:\"title\"`\n\t// content\n\tContent string `json:\"-\"`\n\t// content parsed\n\tContentParsed interface{} `json:\"content\"`\n\t// revision status(normal: 1; delete 2)\n\tStatus int `json:\"status\"`\n\t// create time\n\tCreatedAt       time.Time     `json:\"-\"`\n\tCreatedAtParsed int64         `json:\"create_at\"`\n\tUserInfo        UserBasicInfo `json:\"user_info\"`\n\tLog             string        `json:\"reason\"`\n}\n```\nGetRevisionResp get revision response\n\n```go\ntype GetRoleResp struct {\n\tID          int    `json:\"id\"`\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description\"`\n}\n```\nGetRoleResp get role  response\n\n```go\ntype GetSMTPConfigResp struct {\n\tFromEmail          string `json:\"from_email\"`\n\tFromName           string `json:\"from_name\"`\n\tSMTPHost           string `json:\"smtp_host\"`\n\tSMTPPort           int    `json:\"smtp_port\"`\n\tEncryption         string `json:\"encryption\"` // \"\" SSL\n\tSMTPUsername       string `json:\"smtp_username\"`\n\tSMTPPassword       string `json:\"smtp_password\"`\n\tSMTPAuthentication bool   `json:\"smtp_authentication\"`\n}\n```\nGetSMTPConfigResp get smtp config response\n\n```go\ntype GetSiteLegalInfoReq struct {\n\tInfoType string `validate:\"required,oneof=tos privacy\" form:\"info_type\"`\n}\n```\nGetSiteLegalInfoReq site site legal request\n\n```go\nfunc (r *GetSiteLegalInfoReq) IsPrivacy() bool\n```\n\n```go\nfunc (r *GetSiteLegalInfoReq) IsTOS() bool\n```\n\n```go\ntype GetSiteLegalInfoResp struct {\n\tTermsOfServiceOriginalText string `json:\"terms_of_service_original_text,omitempty\"`\n\tTermsOfServiceParsedText   string `json:\"terms_of_service_parsed_text,omitempty\"`\n\tPrivacyPolicyOriginalText  string `json:\"privacy_policy_original_text,omitempty\"`\n\tPrivacyPolicyParsedText    string `json:\"privacy_policy_parsed_text,omitempty\"`\n}\n```\nGetSiteLegalInfoResp get site legal info response\n\n```go\ntype GetTagInfoReq struct {\n\t// tag id\n\tID string `validate:\"omitempty\" form:\"id\"`\n\t// tag slug name\n\tName       string `validate:\"omitempty,gt=0,lte=35\" form:\"name\"`\n\tUserID     string `json:\"-\"`\n\tCanEdit    bool   `json:\"-\"`\n\tCanDelete  bool   `json:\"-\"`\n\tCanRecover bool   `json:\"-\"`\n}\n```\nGetTagInfoReq get tag info request\n\n```go\nfunc (r *GetTagInfoReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype GetTagListListReq struct {\n\t// tag_id\n\tTagID int64 `validate:\"omitempty\" comment:\"tag_id\" form:\"tag_id\"`\n\t// object_id\n\tObjectID int64 `validate:\"omitempty\" comment:\"object_id\" form:\"object_id\"`\n\t// tag_list_status(available: 1; deleted: 10)\n\tStatus int `validate:\"omitempty\" comment:\"tag_list_status(available: 1; deleted: 10)\" form:\"status\"`\n}\n```\nGetTagListListReq get tag list list all request\n\n```go\ntype GetTagListResp struct {\n\t// tag_list_id\n\tID int64 `json:\"id\"`\n\t// tag_id\n\tTagID int64 `json:\"tag_id\"`\n\t// object_id\n\tObjectID int64 `json:\"object_id\"`\n\t// tag_list_status(available: 1; deleted: 10)\n\tStatus int `json:\"status\"`\n}\n```\nGetTagListResp get tag list response\n\n```go\ntype GetTagListWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// tag_id\n\tTagID int64 `validate:\"omitempty\" comment:\"tag_id\" form:\"tag_id\"`\n\t// object_id\n\tObjectID int64 `validate:\"omitempty\" comment:\"object_id\" form:\"object_id\"`\n\t// tag_list_status(available: 1; deleted: 10)\n\tStatus int `validate:\"omitempty\" comment:\"tag_list_status(available: 1; deleted: 10)\" form:\"status\"`\n}\n```\nGetTagListWithPageReq get tag list list page request\n\n```go\ntype GetTagPageResp struct {\n\t// tag_id\n\tTagID string `json:\"tag_id\"`\n\t// slug_name\n\tSlugName string `json:\"slug_name\"`\n\t// display_name\n\tDisplayName string `json:\"display_name\"`\n\t// excerpt\n\tExcerpt string `json:\"excerpt\"`\n\t//description\n\tDescription string `json:\"description\"`\n\t// original text\n\tOriginalText string `json:\"original_text\"`\n\t// parsed_text\n\tParsedText string `json:\"parsed_text\"`\n\t// follower amount\n\tFollowCount int `json:\"follow_count\"`\n\t// question amount\n\tQuestionCount int `json:\"question_count\"`\n\t// is follower\n\tIsFollower bool `json:\"is_follower\"`\n\t// created time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// updated time\n\tUpdatedAt int64 `json:\"updated_at\"`\n\tRecommend bool  `json:\"recommend\"`\n\tReserved  bool  `json:\"reserved\"`\n}\n```\nGetTagPageResp get tag response\n\n```go\nfunc (tr *GetTagPageResp) GetExcerpt()\n```\n\n```go\ntype GetTagResp struct {\n\tTagID         string                    `json:\"tag_id\"`\n\tCreatedAt     int64                     `json:\"created_at\"`\n\tUpdatedAt     int64                     `json:\"updated_at\"`\n\tSlugName      string                    `json:\"slug_name\"`\n\tDisplayName   string                    `json:\"display_name\"`\n\tExcerpt       string                    `json:\"excerpt\"`\n\tOriginalText  string                    `json:\"original_text\"`\n\tParsedText    string                    `json:\"parsed_text\"`\n\tDescription   string                    `json:\"description\"`\n\tFollowCount   int                       `json:\"follow_count\"`\n\tQuestionCount int                       `json:\"question_count\"`\n\tIsFollower    bool                      `json:\"is_follower\"`\n\tStatus        string                    `json:\"status\"`\n\tMemberActions []*PermissionMemberAction `json:\"member_actions\"`\n\t// if main tag slug name is not empty, this tag is synonymous with the main tag\n\tMainTagSlugName string `json:\"main_tag_slug_name\"`\n\tRecommend       bool   `json:\"recommend\"`\n\tReserved        bool   `json:\"reserved\"`\n}\n```\nGetTagResp get tag response\n\n```go\nfunc (tr *GetTagResp) GetExcerpt()\n```\n\n```go\ntype GetTagSynonymsReq struct {\n\t// tag_id\n\tTagID string `validate:\"required\" form:\"tag_id\"`\n\t// user id\n\tUserID string `json:\"-\"`\n\t// whether user can edit it\n\tCanEdit bool `json:\"-\"`\n}\n```\nGetTagSynonymsReq get tag synonyms request\n\n```go\ntype GetTagSynonymsResp struct {\n\t// synonyms\n\tSynonyms []*TagSynonym `json:\"synonyms\"`\n\t// MemberActions\n\tMemberActions []*PermissionMemberAction `json:\"member_actions\"`\n}\n```\nGetTagSynonymsResp get tag synonyms response\n\n```go\ntype GetTagWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// slug_name\n\tSlugName string `validate:\"omitempty,gt=0,lte=35\" form:\"slug_name\"`\n\t// display_name\n\tDisplayName string `validate:\"omitempty,gt=0,lte=35\" form:\"display_name\"`\n\t// query condition\n\tQueryCond string `validate:\"omitempty,oneof=popular name newest\" form:\"query_cond\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nGetTagWithPageReq get tag list page request\n\n```go\ntype GetTamplateTagInfoReq struct {\n\t// tag id\n\tID string `validate:\"omitempty\" form:\"id\"`\n\t// tag slug name\n\tName string `validate:\"omitempty\" form:\"name\"`\n\t// user id\n\tUserID   string `json:\"-\"`\n\tPage     int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n}\n```\n\n```go\ntype GetUnreviewedRevisionResp struct {\n\tType           string                      `json:\"type\"`\n\tInfo           *UnreviewedRevisionInfoInfo `json:\"info\"`\n\tUnreviewedInfo *GetRevisionResp            `json:\"unreviewed_info\"`\n}\n```\n\n```go\ntype GetUserActivationReq struct {\n\tUserID string `validate:\"required\" form:\"user_id\"`\n}\n```\nGetUserActivationReq get user activation\n\n```go\ntype GetUserActivationResp struct {\n\tActivationURL string `json:\"activation_url\"`\n}\n```\nGetUserActivationResp get user activation\n\n```go\ntype GetUserInfoReq struct {\n\tUserID string `validate:\"required\" json:\"user_id\"`\n}\n```\nGetUserInfoReq get user request\n\n```go\ntype GetUserInfoResp struct {\n}\n```\nGetUserInfoResp get user response\n\n```go\ntype GetUserNotificationConfigResp struct {\n\tNotificationConfig\n}\n```\nGetUserNotificationConfigResp get user notification config response\n\n```go\ntype GetUserPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// email\n\tQuery string `validate:\"omitempty,gt=0,lte=100\" form:\"query\"`\n\t// user status\n\tStatus string `validate:\"omitempty,oneof=normal suspended deleted inactive\" form:\"status\"`\n\t// staff, if staff is true means query admin or moderator\n\tStaff bool `validate:\"omitempty\" form:\"staff\"`\n}\n```\nGetUserPageReq get user list page request\n\n```go\nfunc (r *GetUserPageReq) IsDeleted() bool\n```\n\n```go\nfunc (r *GetUserPageReq) IsInactive() bool\n```\n\n```go\nfunc (r *GetUserPageReq) IsSuspended() bool\n```\n\n```go\ntype GetUserPageResp struct {\n\t// user id\n\tUserID string `json:\"user_id\"`\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// delete time\n\tDeletedAt int64 `json:\"deleted_at\"`\n\t// suspended time\n\tSuspendedAt int64 `json:\"suspended_at\"`\n\t// username\n\tUsername string `json:\"username\"`\n\t// email\n\tEMail string `json:\"e_mail\"`\n\t// rank\n\tRank int `json:\"rank\"`\n\t// user status(normal,suspended,deleted,inactive)\n\tStatus string `json:\"status\"`\n\t// display name\n\tDisplayName string `json:\"display_name\"`\n\t// avatar\n\tAvatar string `json:\"avatar\"`\n\t// role id\n\tRoleID int `json:\"role_id\"`\n\t// role name\n\tRoleName string `json:\"role_name\"`\n}\n```\nGetUserPageResp get user response\n\n```go\ntype GetVoteWithPageReq struct {\n\t// page\n\tPage int `validate:\"omitempty,min=1\" form:\"page\"`\n\t// page size\n\tPageSize int `validate:\"omitempty,min=1\" form:\"page_size\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\n\n```go\ntype GetVoteWithPageResp struct {\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// object id\n\tObjectID string `json:\"object_id\"`\n\t// question id\n\tQuestionID string `json:\"question_id\"`\n\t// answer id\n\tAnswerID string `json:\"answer_id\"`\n\t// object type\n\tObjectType string `json:\"object_type\" enums:\"question,answer,tag,comment\"`\n\t// title\n\tTitle string `json:\"title\"`\n\t// url title\n\tUrlTitle string `json:\"url_title\"`\n\t// content\n\tContent string `json:\"content\"`\n\t// vote type\n\tVoteType string `json:\"vote_type\"`\n}\n```\n\n```go\ntype LoadingAction struct {\n\tText  string `json:\"text\"`\n\tState string `json:\"state\"`\n}\n```\n\n```go\ntype NewAnswerTemplateData struct {\n\tSiteName       string\n\tDisplayName    string\n\tQuestionTitle  string\n\tAnswerUrl      string\n\tAnswerSummary  string\n\tUnsubscribeUrl string\n}\n```\n\n```go\ntype NewAnswerTemplateRawData struct {\n\tAnswerUserDisplayName string\n\tQuestionTitle         string\n\tQuestionID            string\n\tAnswerID              string\n\tAnswerSummary         string\n\tUnsubscribeCode       string\n}\n```\n\n```go\ntype NewCommentTemplateData struct {\n\tSiteName       string\n\tDisplayName    string\n\tQuestionTitle  string\n\tCommentUrl     string\n\tCommentSummary string\n\tUnsubscribeUrl string\n}\n```\n\n```go\ntype NewCommentTemplateRawData struct {\n\tCommentUserDisplayName string\n\tQuestionTitle          string\n\tQuestionID             string\n\tAnswerID               string\n\tCommentID              string\n\tCommentSummary         string\n\tUnsubscribeCode        string\n}\n```\n\n```go\ntype NewInviteAnswerTemplateData struct {\n\tSiteName       string\n\tDisplayName    string\n\tQuestionTitle  string\n\tInviteUrl      string\n\tUnsubscribeUrl string\n}\n```\n\n```go\ntype NewInviteAnswerTemplateRawData struct {\n\tInviterDisplayName string\n\tQuestionTitle      string\n\tQuestionID         string\n\tUnsubscribeCode    string\n}\n```\n\n```go\ntype NewQuestionTemplateData struct {\n\tSiteName       string\n\tQuestionTitle  string\n\tQuestionUrl    string\n\tTags           string\n\tUnsubscribeUrl string\n}\n```\n\n```go\ntype NewQuestionTemplateRawData struct {\n\tQuestionAuthorUserID string\n\tQuestionTitle        string\n\tQuestionID           string\n\tUnsubscribeCode      string\n\tTags                 []string\n\tTagIDs               []string\n}\n```\n\n```go\ntype NotificationChannelConfig struct {\n\tKey    constant.NotificationChannelKey `json:\"key\"`\n\tEnable bool                            `json:\"enable\"`\n}\n```\n\n```go\ntype NotificationChannels []*NotificationChannelConfig\n```\n\n```go\nfunc NewNotificationChannelsFormJson(jsonStr string) NotificationChannels\n```\n\n```go\nfunc (n *NotificationChannels) CheckEnable(ch constant.NotificationChannelKey) bool\n```\n\n```go\nfunc (n *NotificationChannels) Format(sequences []constant.NotificationChannelKey)\n```\n\n```go\nfunc (n *NotificationChannels) ToJsonString() string\n```\n\n```go\ntype NotificationClearIDRequest struct {\n\tUserID string `json:\"-\"`\n\tID     string `json:\"id\" form:\"id\"`\n}\n```\n\n```go\ntype NotificationClearRequest struct {\n\tUserID            string `json:\"-\"`\n\tTypeStr           string `json:\"type\" form:\"type\"` // inbox achievement\n\tCanReviewQuestion bool   `json:\"-\"`\n\tCanReviewAnswer   bool   `json:\"-\"`\n\tCanReviewTag      bool   `json:\"-\"`\n}\n```\n\n```go\ntype NotificationConfig struct {\n\tInbox                          NotificationChannels `json:\"inbox\"`\n\tAllNewQuestion                 NotificationChannels `json:\"all_new_question\"`\n\tAllNewQuestionForFollowingTags NotificationChannels `json:\"all_new_question_for_following_tags\"`\n}\n```\n\n```go\nfunc NewNotificationConfig(configs []*entity.UserNotificationConfig) NotificationConfig\n```\n\n```go\nfunc (n *NotificationConfig) CheckEnable(\n\tsource constant.NotificationSource, channel constant.NotificationChannelKey) bool\n```\n\n```go\nfunc (n *NotificationConfig) Format()\n```\n\n```go\nfunc (n *NotificationConfig) FromJsonString(data string)\n```\n\n```go\nfunc (n *NotificationConfig) ToJsonString() string\n```\n\n```go\ntype NotificationContent struct {\n\tID                 string         `json:\"id\"`\n\tTriggerUserID      string         `json:\"-\"` //show userid\n\tReceiverUserID     string         `json:\"-\"` // receiver userid\n\tUserInfo           *UserBasicInfo `json:\"user_info,omitempty\"`\n\tObjectInfo         ObjectInfo     `json:\"object_info\"`\n\tRank               int            `json:\"rank\"`\n\tNotificationAction string         `json:\"notification_action,omitempty\"`\n\tType               int            `json:\"-\"` //\t1 inbox 2 achievement\n\tIsRead             bool           `json:\"is_read\"`\n\tUpdateTime         int64          `json:\"update_time\"`\n}\n```\n\n```go\ntype NotificationMsg struct {\n\t// trigger notification user id\n\tTriggerUserID string\n\t// receive notification user id\n\tReceiverUserID string\n\t// type 1 inbox 2 achievement\n\tType int\n\t// notification title\n\tTitle string\n\t// notification object\n\tObjectID string\n\t// notification object type\n\tObjectType string\n\t// notification action\n\tNotificationAction string\n\t// if true no need to send notification to all followers\n\tNoNeedPushAllFollow bool\n\t// extra info\n\tExtraInfo map[string]string\n}\n```\nNotificationMsg notification message\n\n```go\ntype NotificationSearch struct {\n\tPage         int    `json:\"page\" form:\"page\"`           //Query number of pages\n\tPageSize     int    `json:\"page_size\" form:\"page_size\"` //Search page size\n\tType         int    `json:\"-\" form:\"-\"`\n\tTypeStr      string `json:\"type\" form:\"type\"`             // inbox achievement\n\tInboxTypeStr string `json:\"inbox_type\" form:\"inbox_type\"` // inbox achievement\n\tInboxType    int    `json:\"-\" form:\"-\"`                   // inbox achievement\n\tUserID       string `json:\"-\"`\n}\n```\n\n```go\ntype ObjectInfo struct {\n\tTitle      string            `json:\"title\"`\n\tObjectID   string            `json:\"object_id\"`\n\tObjectMap  map[string]string `json:\"object_map\"`\n\tObjectType string            `json:\"object_type\"`\n}\n```\n\n```go\ntype ObjectTimelineDetail struct {\n\tTitle           string               `json:\"title\"`\n\tTags            []*ObjectTimelineTag `json:\"tags\"`\n\tOriginalText    string               `json:\"original_text\"`\n\tSlugName        string               `json:\"slug_name\"`\n\tMainTagSlugName string               `json:\"main_tag_slug_name\"`\n}\n```\nObjectTimelineDetail object timeline detail\n\n```go\ntype ObjectTimelineTag struct {\n\tSlugName        string `json:\"slug_name\"`\n\tDisplayName     string `json:\"display_name\"`\n\tMainTagSlugName string `json:\"main_tag_slug_name\"`\n\tRecommend       bool   `json:\"recommend\"`\n\tReserved        bool   `json:\"reserved\"`\n}\n```\nObjectTimelineTag object timeline tags\n\n```go\ntype OnCompleteAction struct {\n\tToastReturnMessage bool `json:\"toast_return_message\"`\n\tRefreshFormConfig  bool `json:\"refresh_form_config\"`\n}\n```\n\n```go\ntype Operation struct {\n\tType        string         `json:\"type\"`\n\tDescription string         `json:\"description\"`\n\tMsg         string         `json:\"msg\"`\n\tTime        int64          `json:\"time\"`\n\tLevel       OperationLevel `json:\"level\"`\n}\n```\n\n```go\ntype OperationLevel string\n```\n\n```go\nconst (\n\tOperationLevelInfo    OperationLevel = \"info\"\n\tOperationLevelDanger  OperationLevel = \"danger\"\n\tOperationLevelWarning OperationLevel = \"warning\"\n)\n```\n\n```go\ntype OperationQuestionReq struct {\n\tID        string `validate:\"required\" json:\"id\"`\n\tOperation string `json:\"operation\"` // operation [pin unpin hide show]\n\tUserID    string `json:\"-\"`         // user_id\n\tCanPin    bool   `json:\"-\"`\n\tCanList   bool   `json:\"-\"`\n}\n```\n\n```go\ntype Paginator struct {\n\tPages      []int\n\tTotalpages int\n\tPrevpage   int\n\tNextpage   int\n\tCurrpage   int\n}\n```\n\n```go\ntype PassResetTemplateData struct {\n\tSiteName     string\n\tPassResetUrl string\n}\n```\n\n```go\ntype PermissionMemberAction struct {\n\tAction string `json:\"action\"`\n\tName   string `json:\"name\"`\n\tType   string `json:\"type\"`\n}\n```\nPermissionMemberAction permission member action\n\n```go\ntype PermissionTrTplData struct {\n\tRank int\n}\n```\nPermissionTrTplData template data as for translate permission message\n\n```go\ntype PersonalAnswerPageReq struct {\n\tPage        int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize    int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n\tOrderCond   string `validate:\"omitempty,oneof=newest active frequent score unanswered\" form:\"order\"`\n\tUsername    string `validate:\"omitempty,gt=0,lte=100\" form:\"username\"`\n\tLoginUserID string `json:\"-\"`\n}\n```\n\n```go\ntype PersonalBranding struct {\n\tIcon  string `json:\"icon\"`\n\tName  string `json:\"name\"`\n\tLabel string `json:\"label\"`\n\tUrl   string `json:\"url\"`\n}\n```\n\n```go\ntype PersonalCollectionPageReq struct {\n\tPage     int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n\tUserID   string `json:\"-\"`\n}\n```\n\n```go\ntype PersonalQuestionPageReq struct {\n\tPage        int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize    int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n\tOrderCond   string `validate:\"omitempty,oneof=newest active frequent score unanswered\" form:\"order\"`\n\tUsername    string `validate:\"omitempty,gt=0,lte=100\" form:\"username\"`\n\tLoginUserID string `json:\"-\"`\n}\n```\n\n```go\ntype PluginStatus string\n```\n\n```go\nconst (\n\tPluginStatusActive   PluginStatus = \"active\"\n\tPluginStatusInactive PluginStatus = \"inactive\"\n)\n```\n\n```go\ntype PostRenderReq struct {\n\tContent string `json:\"content\"`\n}\n```\nPostRenderReq post render request\n\n```go\ntype PrivilegeLevel int\n```\n\n```go\nconst (\n\t// PrivilegeLevel1 low\n\tPrivilegeLevel1 PrivilegeLevel = 1\n\t// PrivilegeLevel2 medium\n\tPrivilegeLevel2 PrivilegeLevel = 2\n\t// PrivilegeLevel3 high\n\tPrivilegeLevel3 PrivilegeLevel = 3\n)\n```\n\n```go\ntype PrivilegeOption struct {\n\tLevel      PrivilegeLevel        `json:\"level\"`\n\tLevelDesc  string                `json:\"level_desc\"`\n\tPrivileges []*constant.Privilege `json:\"privileges\"`\n}\n```\nPrivilegeOption privilege option\n\n```go\ntype PrivilegeOptions []*PrivilegeOption\n```\n\n```go\nvar (\n\tDefaultPrivilegeOptions PrivilegeOptions\n)\n```\n\n```go\nfunc (p PrivilegeOptions) Choose(level PrivilegeLevel) (option *PrivilegeOption)\n```\n\n```go\ntype QAPageJsonLD struct {\n\tContext    string `json:\"@context\"`\n\tType       string `json:\"@type\"`\n\tMainEntity struct {\n\t\tType        string    `json:\"@type\"`\n\t\tName        string    `json:\"name\"`\n\t\tText        string    `json:\"text\"`\n\t\tAnswerCount int       `json:\"answerCount\"`\n\t\tUpvoteCount int       `json:\"upvoteCount\"`\n\t\tDateCreated time.Time `json:\"dateCreated\"`\n\t\tAuthor      struct {\n\t\t\tType string `json:\"@type\"`\n\t\t\tName string `json:\"name\"`\n\t\t} `json:\"author\"`\n\t\tAcceptedAnswer  *AcceptedAnswerItem    `json:\"acceptedAnswer,omitempty\"`\n\t\tSuggestedAnswer []*SuggestedAnswerItem `json:\"suggestedAnswer\"`\n\t} `json:\"mainEntity\"`\n}\n```\n\n```go\ntype QuestionAdd struct {\n\t// question title\n\tTitle string `validate:\"required,notblank,gte=6,lte=150\" json:\"title\"`\n\t// content\n\tContent string `validate:\"required,notblank,gte=6,lte=65535\" json:\"content\"`\n\t// html\n\tHTML string `json:\"-\"`\n\t// tags\n\tTags []*TagItem `validate:\"required,dive\" json:\"tags\"`\n\t// user id\n\tUserID string `json:\"-\"`\n\tQuestionPermission\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\nfunc (req *QuestionAdd) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype QuestionAddByAnswer struct {\n\t// question title\n\tTitle string `validate:\"required,notblank,gte=6,lte=150\" json:\"title\"`\n\t// content\n\tContent string `validate:\"required,notblank,gte=6,lte=65535\" json:\"content\"`\n\t// html\n\tHTML          string `json:\"-\"`\n\tAnswerContent string `validate:\"required,notblank,gte=6,lte=65535\" json:\"answer_content\"`\n\tAnswerHTML    string `json:\"-\"`\n\t// tags\n\tTags []*TagItem `validate:\"required,dive\" json:\"tags\"`\n\t// user id\n\tUserID              string   `json:\"-\"`\n\tMentionUsernameList []string `validate:\"omitempty\" json:\"mention_username_list\"`\n\tQuestionPermission\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\nfunc (req *QuestionAddByAnswer) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype QuestionBaseInfo struct {\n\tID              string `json:\"id\" `\n\tTitle           string `json:\"title\" xorm:\"title\"`                       // title\n\tViewCount       int    `json:\"view_count\" xorm:\"view_count\"`             // view count\n\tAnswerCount     int    `json:\"answer_count\" xorm:\"answer_count\"`         // answer count\n\tCollectionCount int    `json:\"collection_count\" xorm:\"collection_count\"` // collection count\n\tFollowCount     int    `json:\"follow_count\" xorm:\"follow_count\"`         // follow count\n\tStatus          string `json:\"status\"`\n\tAcceptedAnswer  bool   `json:\"accepted_answer\"`\n}\n```\n\n```go\ntype QuestionInfo struct {\n\tID                   string         `json:\"id\" `\n\tTitle                string         `json:\"title\" xorm:\"title\"`                         // title\n\tUrlTitle             string         `json:\"url_title\" xorm:\"url_title\"`                 // title\n\tContent              string         `json:\"content\" xorm:\"content\"`                     // content\n\tHTML                 string         `json:\"html\" xorm:\"html\"`                           // html\n\tDescription          string         `json:\"description\"`                                //description\n\tTags                 []*TagResp     `json:\"tags\" `                                      // tags\n\tViewCount            int            `json:\"view_count\" xorm:\"view_count\"`               // view_count\n\tUniqueViewCount      int            `json:\"unique_view_count\" xorm:\"unique_view_count\"` // unique_view_count\n\tVoteCount            int            `json:\"vote_count\" xorm:\"vote_count\"`               // vote_count\n\tAnswerCount          int            `json:\"answer_count\" xorm:\"answer_count\"`           // answer count\n\tCollectionCount      int            `json:\"collection_count\" xorm:\"collection_count\"`   // collection count\n\tFollowCount          int            `json:\"follow_count\" xorm:\"follow_count\"`           // follow count\n\tAcceptedAnswerID     string         `json:\"accepted_answer_id\" `                        // accepted_answer_id\n\tLastAnswerID         string         `json:\"last_answer_id\" `                            // last_answer_id\n\tCreateTime           int64          `json:\"create_time\" `                               // create_time\n\tUpdateTime           int64          `json:\"-\"`                                          // update_time\n\tPostUpdateTime       int64          `json:\"update_time\"`\n\tQuestionUpdateTime   int64          `json:\"edit_time\"`\n\tPin                  int            `json:\"pin\"`  // 1: unpin, 2: pin\n\tShow                 int            `json:\"show\"` // 0: show, 1: hide\n\tStatus               int            `json:\"status\"`\n\tOperation            *Operation     `json:\"operation,omitempty\"`\n\tUserID               string         `json:\"-\" `\n\tLastEditUserID       string         `json:\"-\" `\n\tLastAnsweredUserID   string         `json:\"-\" `\n\tUserInfo             *UserBasicInfo `json:\"user_info\"`\n\tUpdateUserInfo       *UserBasicInfo `json:\"update_user_info,omitempty\"`\n\tLastAnsweredUserInfo *UserBasicInfo `json:\"last_answered_user_info,omitempty\"`\n\tAnswered             bool           `json:\"answered\"`\n\tCollected            bool           `json:\"collected\"`\n\tVoteStatus           string         `json:\"vote_status\"`\n\tIsFollowed           bool           `json:\"is_followed\"`\n\n\t// MemberActions\n\tMemberActions  []*PermissionMemberAction `json:\"member_actions\"`\n\tExtendsActions []*PermissionMemberAction `json:\"extends_actions\"`\n}\n```\n\n```go\ntype QuestionPageReq struct {\n\tPage      int    `validate:\"omitempty,min=1\" form:\"page\"`\n\tPageSize  int    `validate:\"omitempty,min=1\" form:\"page_size\"`\n\tOrderCond string `validate:\"omitempty,oneof=newest active frequent score unanswered\" form:\"order\"`\n\tTag       string `validate:\"omitempty,gt=0,lte=100\" form:\"tag\"`\n\tUsername  string `validate:\"omitempty,gt=0,lte=100\" form:\"username\"`\n\tInDays    int    `validate:\"omitempty,min=1\" form:\"in_days\"`\n\n\tLoginUserID      string `json:\"-\"`\n\tUserIDBeSearched string `json:\"-\"`\n\tTagID            string `json:\"-\"`\n}\n```\nQuestionPageReq query questions page\n\n```go\ntype QuestionPageResp struct {\n\tID          string     `json:\"id\" `\n\tCreatedAt   int64      `json:\"created_at\"`\n\tTitle       string     `json:\"title\"`\n\tUrlTitle    string     `json:\"url_title\"`\n\tDescription string     `json:\"description\"`\n\tPin         int        `json:\"pin\"`  // 1: unpin, 2: pin\n\tShow        int        `json:\"show\"` // 0: show, 1: hide\n\tStatus      int        `json:\"status\"`\n\tTags        []*TagResp `json:\"tags\"`\n\n\t// question statistical information\n\tViewCount       int `json:\"view_count\"`\n\tUniqueViewCount int `json:\"unique_view_count\"`\n\tVoteCount       int `json:\"vote_count\"`\n\tAnswerCount     int `json:\"answer_count\"`\n\tCollectionCount int `json:\"collection_count\"`\n\tFollowCount     int `json:\"follow_count\"`\n\n\t// answer information\n\tAcceptedAnswerID   string    `json:\"accepted_answer_id\"`\n\tLastAnswerID       string    `json:\"last_answer_id\"`\n\tLastAnsweredUserID string    `json:\"-\"`\n\tLastAnsweredAt     time.Time `json:\"-\"`\n\n\t// operator information\n\tOperatedAt    int64                     `json:\"operated_at\"`\n\tOperator      *QuestionPageRespOperator `json:\"operator\"`\n\tOperationType string                    `json:\"operation_type\"`\n}\n```\n\n```go\ntype QuestionPageRespOperator struct {\n\tID          string `json:\"id\"`\n\tUsername    string `json:\"username\"`\n\tRank        int    `json:\"rank\"`\n\tDisplayName string `json:\"display_name\"`\n\tStatus      string `json:\"status\"`\n}\n```\n\n```go\ntype QuestionPermission struct {\n\t// whether user can add it\n\tCanAdd bool `json:\"-\"`\n\t// whether user can edit it\n\tCanEdit bool `json:\"-\"`\n\t// whether user can delete it\n\tCanDelete bool `json:\"-\"`\n\t// whether user can close it\n\tCanClose bool `json:\"-\"`\n\t// whether user can reopen it\n\tCanReopen bool `json:\"-\"`\n\t// whether user can pin it\n\tCanPin   bool `json:\"-\"`\n\tCanUnPin bool `json:\"-\"`\n\t// whether user can hide it\n\tCanHide bool `json:\"-\"`\n\tCanShow bool `json:\"-\"`\n\t// whether user can use reserved it\n\tCanUseReservedTag bool `json:\"-\"`\n\t// whether user can invite other user to answer this question\n\tCanInviteOtherToAnswer bool `json:\"-\"`\n\tCanAddTag              bool `json:\"-\"`\n\tCanRecover             bool `json:\"-\"`\n}\n```\n\n```go\ntype QuestionRecoverReq struct {\n\tQuestionID string `validate:\"required\" json:\"question_id\"`\n\tUserID     string `json:\"-\"`\n}\n```\n\n```go\ntype QuestionUpdate struct {\n\t// question id\n\tID string `validate:\"required\" json:\"id\"`\n\t// question title\n\tTitle string `validate:\"required,notblank,gte=6,lte=150\" json:\"title\"`\n\t// content\n\tContent string `validate:\"required,notblank,gte=6,lte=65535\" json:\"content\"`\n\t// html\n\tHTML       string   `json:\"-\"`\n\tInviteUser []string `validate:\"omitempty\"  json:\"invite_user\"`\n\t// tags\n\tTags []*TagItem `validate:\"required,dive\" json:\"tags\"`\n\t// edit summary\n\tEditSummary string `validate:\"omitempty\" json:\"edit_summary\"`\n\t// user id\n\tUserID       string `json:\"-\"`\n\tNoNeedReview bool   `json:\"-\"`\n\tQuestionPermission\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\nfunc (req *QuestionUpdate) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype QuestionUpdateInviteUser struct {\n\tID         string   `validate:\"required\" json:\"id\"`\n\tInviteUser []string `validate:\"omitempty\"  json:\"invite_user\"`\n\tUserID     string   `json:\"-\"`\n\tQuestionPermission\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\ntype ReasonItem struct {\n\tReasonType  int    `json:\"reason_type\"`\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description\"`\n\tContentType string `json:\"content_type\"`\n\tPlaceholder string `json:\"placeholder\"`\n}\n```\n\n```go\nfunc (r *ReasonItem) Translate(keyPrefix string, lang i18n.Language)\n```\n\n```go\ntype ReasonReq struct {\n\t// ObjectType\n\tObjectType string `validate:\"required\" form:\"object_type\" json:\"object_type\"`\n\t// Action\n\tAction string `validate:\"required\" form:\"action\" json:\"action\"`\n}\n```\n\n```go\ntype RecoverAnswerReq struct {\n\tAnswerID string `validate:\"required\" json:\"answer_id\"`\n\tUserID   string `json:\"-\"`\n}\n```\nRecoverAnswerReq recover answer request\n\n```go\ntype RecoverTagReq struct {\n\tTagID  string `validate:\"required\" json:\"tag_id\"`\n\tUserID string `json:\"-\"`\n}\n```\nRecoverTagReq update tag request\n\n```go\ntype RedDot struct {\n\tInbox       int64 `json:\"inbox\"`\n\tAchievement int64 `json:\"achievement\"`\n\tRevision    int64 `json:\"revision\"`\n\tCanRevision bool  `json:\"can_revision\"`\n}\n```\n\n```go\ntype RegisterTemplateData struct {\n\tSiteName    string\n\tRegisterUrl string\n}\n```\n\n```go\ntype RemoteVersion struct {\n\tRelease struct {\n\t\tVersion string `json:\"version\"`\n\t\tURL     string `json:\"url\"`\n\t} `json:\"release\"`\n}\n```\n\n```go\ntype RemoveAnswerReq struct {\n\tID          string `validate:\"required\" json:\"id\"`\n\tUserID      string `json:\"-\"`\n\tCanDelete   bool   `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"`\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nRemoveAnswerReq delete answer request\n\n```go\ntype RemoveCommentReq struct {\n\t// comment id\n\tCommentID string `validate:\"required\" json:\"comment_id\"`\n\t// user id\n\tUserID      string `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nRemoveCommentReq remove comment\n\n```go\ntype RemoveConfigReq struct {\n\t// config id\n\tID int `validate:\"required\" comment:\"config id\" json:\"id\"`\n}\n```\nRemoveConfigReq delete config request\n\n```go\ntype RemoveQuestionReq struct {\n\t// question id\n\tID          string `validate:\"required\" json:\"id\"`\n\tUserID      string `json:\"-\" ` // user_id\n\tIsAdmin     bool   `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nRemoveQuestionReq delete question request\n\n```go\ntype RemoveTagListReq struct {\n\t// tag_list_id\n\tID int64 `validate:\"required\" comment:\"tag_list_id\" json:\"id\"`\n}\n```\nRemoveTagListReq delete tag list request\n\n```go\ntype RemoveTagReq struct {\n\t// tag_id\n\tTagID string `validate:\"required\" json:\"tag_id\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nRemoveTagReq delete tag request\n\n```go\ntype ReopenQuestionReq struct {\n\tQuestionID string `json:\"question_id\"`\n\tUserID     string `json:\"-\"`\n}\n```\nReopenQuestionReq reopen question request\n\n```go\ntype ReportHandleReq struct {\n\tID             string `validate:\"required\" comment:\"report id\" form:\"id\" json:\"id\"`\n\tFlaggedType    int    `validate:\"required\" comment:\"flagged type\" form:\"flagged_type\" json:\"flagged_type\"`\n\tFlaggedContent string `validate:\"omitempty\" comment:\"flagged content\" form:\"flagged_content\" json:\"flagged_content\"`\n}\n```\nReportHandleReq request handle request\n\n```go\ntype RevisionAuditReq struct {\n\t// object id\n\tID                string `validate:\"required\" comment:\"id\" form:\"id\"`\n\tOperation         string `validate:\"required\" comment:\"operation\" form:\"operation\"` //approve or reject\n\tUserID            string `json:\"-\"`\n\tCanReviewQuestion bool   `json:\"-\"`\n\tCanReviewAnswer   bool   `json:\"-\"`\n\tCanReviewTag      bool   `json:\"-\"`\n}\n```\n\n```go\ntype RevisionSearch struct {\n\tPage              int    `json:\"page\" form:\"page\"` // Query number of pages\n\tCanReviewQuestion bool   `json:\"-\"`\n\tCanReviewAnswer   bool   `json:\"-\"`\n\tCanReviewTag      bool   `json:\"-\"`\n\tUserID            string `json:\"-\"`\n}\n```\n\n```go\nfunc (r RevisionSearch) GetCanReviewObjectTypes() []int\n```\n\n```go\ntype SearchCondition struct {\n\t// search target type: all/question/answer\n\tTargetType string\n\t// search query user id\n\tUserID string\n\t// vote amount\n\tVoteAmount int\n\t// only show not accepted answer's question\n\tNotAccepted bool\n\t// view amount\n\tViews int\n\t// answer count\n\tAnswerAmount int\n\t// only show accepted answer\n\tAccepted bool\n\t// only show this question's answer\n\tQuestionID string\n\t// search query tags\n\tTags []string\n\t// search query keywords\n\tWords []string\n}\n```\n\n```go\nfunc (s *SearchCondition) Convert2PluginSearchCond(page, pageSize int, order string) *plugin.SearchBasicCond\n```\nConvert2PluginSearchCond convert to plugin search condition\n\n```go\nfunc (s *SearchCondition) SearchAll() bool\n```\nSearchAll check if search all\n\n```go\nfunc (s *SearchCondition) SearchAnswer() bool\n```\nSearchAnswer check if search only need answer\n\n```go\nfunc (s *SearchCondition) SearchQuestion() bool\n```\nSearchQuestion check if search only need question\n\n```go\ntype SearchDTO struct {\n\tUserID      string // UserID current login user ID\n\tQuery       string `validate:\"required,gte=1,lte=60\" json:\"q\" form:\"q\"`                   // Query the query string\n\tPage        int    `validate:\"omitempty,min=1\" form:\"page,default=1\" json:\"page\"`         //Query number of pages\n\tSize        int    `validate:\"omitempty,min=1,max=50\" form:\"size,default=30\" json:\"size\"` //Search page size\n\tOrder       string `validate:\"required,oneof=newest active score relevance\" form:\"order,default=relevance\" json:\"order\" enums:\"newest,active,score,relevance\"`\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\nfunc (s *SearchDTO) Check() (errField []*validator.FormErrorField, err error)\n```\n\n```go\ntype SearchDescResp struct {\n\tName string `json:\"name\"`\n\tIcon string `json:\"icon\"`\n\tLink string `json:\"link\"`\n}\n```\n\n```go\ntype SearchObject struct {\n\tID              string `json:\"id\"`\n\tQuestionID      string `json:\"question_id\"`\n\tTitle           string `json:\"title\"`\n\tExcerpt         string `json:\"excerpt\"`\n\tCreatedAtParsed int64  `json:\"created_at\"`\n\tVoteCount       int    `json:\"vote_count\"`\n\tAccepted        bool   `json:\"accepted\"`\n\tAnswerCount     int    `json:\"answer_count\"`\n\t// user info\n\tUserInfo *SearchObjectUser `json:\"user_info\"`\n\t// tags\n\tTags []*TagResp `json:\"tags\"`\n\t// Status\n\tStatusStr string `json:\"status\"`\n}\n```\n\n```go\ntype SearchObjectUser struct {\n\tID          string `json:\"id\"`\n\tUsername    string `json:\"username\"`\n\tDisplayName string `json:\"display_name\"`\n\tRank        int    `json:\"rank\"`\n\tStatus      string `json:\"status\"`\n}\n```\n\n```go\ntype SearchResp struct {\n\tTotal int64 `json:\"count\"`\n\t// search response\n\tSearchResults []*SearchResult `json:\"list\"`\n}\n```\n\n```go\ntype SearchResult struct {\n\t// object_type\n\tObjectType string `json:\"object_type\"`\n\t// this object\n\tObject *SearchObject `json:\"object\"`\n}\n```\n\n```go\ntype SearchTagLikeReq struct {\n\t// tag\n\tTag     string `validate:\"omitempty\" form:\"tag\"`\n\tIsAdmin bool   `json:\"-\"`\n}\n```\nSearchTagLikeReq get tag list all request\n\n```go\ntype SearchTagLikeResp struct {\n\tSlugName    string `json:\"slug_name\"`\n\tDisplayName string `json:\"display_name\"`\n\tRecommend   bool   `json:\"recommend\"`\n\tReserved    bool   `json:\"reserved\"`\n}\n```\n\n```go\ntype SearchTagsBySlugName struct {\n\tTags    string   `json:\"tags\" form:\"tags\"`\n\tTagList []string `json:\"-\"`\n\tIsAdmin bool     `json:\"-\"`\n}\n```\n\n```go\ntype SendUserActivationReq struct {\n\tUserID string `validate:\"required\" json:\"user_id\"`\n}\n```\nSendUserActivationReq send user activation\n\n```go\ntype SimpleObjectInfo struct {\n\tObjectID            string `json:\"object_id\"`\n\tObjectCreatorUserID string `json:\"object_creator_user_id\"`\n\tQuestionID          string `json:\"question_id\"`\n\tQuestionStatus      int    `json:\"status\"`\n\tAnswerID            string `json:\"answer_id\"`\n\tCommentID           string `json:\"comment_id\"`\n\tTagID               string `json:\"tag_id\"`\n\tObjectType          string `json:\"object_type\"`\n\tTitle               string `json:\"title\"`\n\tContent             string `json:\"content\"`\n}\n```\nSimpleObjectInfo simple object info\n\n```go\ntype SiteBrandingReq struct {\n\tLogo       string `validate:\"omitempty,gt=0,lte=512\" form:\"logo\" json:\"logo\"`\n\tMobileLogo string `validate:\"omitempty,gt=0,lte=512\" form:\"mobile_logo\" json:\"mobile_logo\"`\n\tSquareIcon string `validate:\"omitempty,gt=0,lte=512\" form:\"square_icon\" json:\"square_icon\"`\n\tFavicon    string `validate:\"omitempty,gt=0,lte=512\" form:\"favicon\" json:\"favicon\"`\n}\n```\nSiteBrandingReq site branding request\n\n```go\ntype SiteBrandingResp SiteBrandingReq\n```\nSiteBrandingResp site branding response\n\n```go\ntype SiteCustomCssHTMLReq struct {\n\tCustomHead    string `validate:\"omitempty,gt=0,lte=65536\" json:\"custom_head\"`\n\tCustomCss     string `validate:\"omitempty,gt=0,lte=65536\" json:\"custom_css\"`\n\tCustomHeader  string `validate:\"omitempty,gt=0,lte=65536\" json:\"custom_header\"`\n\tCustomFooter  string `validate:\"omitempty,gt=0,lte=65536\" json:\"custom_footer\"`\n\tCustomSideBar string `validate:\"omitempty,gt=0,lte=65536\" json:\"custom_sidebar\"`\n}\n```\nSiteCustomCssHTMLReq site custom css html\n\n```go\ntype SiteCustomCssHTMLResp SiteCustomCssHTMLReq\n```\nSiteCustomCssHTMLResp site custom css html response\n\n```go\ntype SiteGeneralReq struct {\n\tName             string `validate:\"required,sanitizer,gt=1,lte=128\" form:\"name\" json:\"name\"`\n\tShortDescription string `validate:\"omitempty,sanitizer,gt=3,lte=255\" form:\"short_description\" json:\"short_description\"`\n\tDescription      string `validate:\"omitempty,sanitizer,gt=3,lte=2000\" form:\"description\" json:\"description\"`\n\tSiteUrl          string `validate:\"required,sanitizer,gt=1,lte=512,url\" form:\"site_url\" json:\"site_url\"`\n\tContactEmail     string `validate:\"required,sanitizer,gt=1,lte=512,email\" form:\"contact_email\" json:\"contact_email\"`\n}\n```\nSiteGeneralReq site general request\n\n```go\nfunc (r *SiteGeneralReq) FormatSiteUrl()\n```\n\n```go\ntype SiteGeneralResp SiteGeneralReq\n```\nSiteGeneralResp site general response\n\n```go\ntype SiteInfoResp struct {\n\tGeneral       *SiteGeneralResp       `json:\"general\"`\n\tInterface     *SiteInterfaceResp     `json:\"interface\"`\n\tBranding      *SiteBrandingResp      `json:\"branding\"`\n\tLogin         *SiteLoginResp         `json:\"login\"`\n\tTheme         *SiteThemeResp         `json:\"theme\"`\n\tCustomCssHtml *SiteCustomCssHTMLResp `json:\"custom_css_html\"`\n\tSiteSeo       *SiteSeoResp           `json:\"site_seo\"`\n\tSiteUsers     *SiteUsersResp         `json:\"site_users\"`\n\tVersion       string                 `json:\"version\"`\n\tRevision      string                 `json:\"revision\"`\n}\n```\nSiteInfoResp get site info response\n\n```go\ntype SiteInterfaceReq struct {\n\tLanguage string `validate:\"required,gt=1,lte=128\" form:\"language\" json:\"language\"`\n\tTimeZone string `validate:\"required,gt=1,lte=128\" form:\"time_zone\" json:\"time_zone\"`\n}\n```\nSiteInterfaceReq site interface request\n\n```go\ntype SiteInterfaceResp SiteInterfaceReq\n```\nSiteInterfaceResp site interface response\n\n```go\ntype SiteLegalReq struct {\n\tTermsOfServiceOriginalText string `json:\"terms_of_service_original_text\"`\n\tTermsOfServiceParsedText   string `json:\"terms_of_service_parsed_text\"`\n\tPrivacyPolicyOriginalText  string `json:\"privacy_policy_original_text\"`\n\tPrivacyPolicyParsedText    string `json:\"privacy_policy_parsed_text\"`\n}\n```\nSiteLegalReq site branding request\n\n```go\ntype SiteLegalResp SiteLegalReq\n```\nSiteLegalResp site write response\n\n```go\ntype SiteLoginReq struct {\n\tAllowNewRegistrations   bool     `json:\"allow_new_registrations\"`\n\tAllowEmailRegistrations bool     `json:\"allow_email_registrations\"`\n\tLoginRequired           bool     `json:\"login_required\"`\n\tAllowEmailDomains       []string `json:\"allow_email_domains\"`\n}\n```\nSiteLoginReq site login request\n\n```go\ntype SiteLoginResp SiteLoginReq\n```\nSiteLoginResp site login response\n\n```go\ntype SiteMapList struct {\n\tQuestionIDs []*SiteMapQuestionInfo `json:\"question_ids\"`\n\tMaxPageNum  []int                  `json:\"max_page_num\"`\n}\n```\n\n```go\ntype SiteMapPageList struct {\n\tPageData []*SiteMapQuestionInfo `json:\"page_data\"`\n}\n```\n\n```go\ntype SiteMapQuestionInfo struct {\n\tID         string `json:\"id\"`\n\tTitle      string `json:\"title\"`\n\tUpdateTime string `json:\"time\"`\n}\n```\n\n```go\ntype SiteSeoReq struct {\n\tPermalink int    `validate:\"required,lte=4,gte=0\" form:\"permalink\" json:\"permalink\"`\n\tRobots    string `validate:\"required\" form:\"robots\" json:\"robots\"`\n}\n```\n\n```go\ntype SiteSeoResp SiteSeoReq\n```\nSiteSeoResp site write response\n\n```go\nfunc (s *SiteSeoResp) IsShortLink() bool\n```\n\n```go\ntype SiteThemeReq struct {\n\tTheme       string                 `validate:\"required,gt=0,lte=255\" json:\"theme\"`\n\tThemeConfig map[string]interface{} `validate:\"omitempty\" json:\"theme_config\"`\n}\n```\nSiteThemeReq site theme config\n\n```go\ntype SiteThemeResp struct {\n\tThemeOptions []*ThemeOption         `json:\"theme_options\"`\n\tTheme        string                 `json:\"theme\"`\n\tThemeConfig  map[string]interface{} `json:\"theme_config\"`\n}\n```\nSiteThemeResp site theme response\n\n```go\nfunc (s *SiteThemeResp) TrTheme(ctx context.Context)\n```\n\n```go\ntype SiteUsersReq struct {\n\tDefaultAvatar          string `validate:\"required,oneof=system gravatar\" json:\"default_avatar\"`\n\tGravatarBaseURL        string `json:\"gravatar_base_url\"`\n\tAllowUpdateDisplayName bool   `json:\"allow_update_display_name\"`\n\tAllowUpdateUsername    bool   `json:\"allow_update_username\"`\n\tAllowUpdateAvatar      bool   `json:\"allow_update_avatar\"`\n\tAllowUpdateBio         bool   `json:\"allow_update_bio\"`\n\tAllowUpdateWebsite     bool   `json:\"allow_update_website\"`\n\tAllowUpdateLocation    bool   `json:\"allow_update_location\"`\n}\n```\nSiteUsersReq site users config request\n\n```go\ntype SiteUsersResp SiteUsersReq\n```\nSiteUsersResp site users response\n\n```go\ntype SiteWriteReq struct {\n\tRequiredTag   bool     `validate:\"omitempty\" form:\"required_tag\" json:\"required_tag\"`\n\tRecommendTags []string `validate:\"omitempty\" form:\"recommend_tags\" json:\"recommend_tags\"`\n\tReservedTags  []string `validate:\"omitempty\" form:\"reserved_tags\" json:\"reserved_tags\"`\n\tUserID        string   `json:\"-\"`\n}\n```\nSiteWriteReq site write request\n\n```go\ntype SiteWriteResp SiteWriteReq\n```\nSiteWriteResp site write response\n\n```go\ntype SuggestedAnswerItem struct {\n\tType        string    `json:\"@type\"`\n\tText        string    `json:\"text\"`\n\tDateCreated time.Time `json:\"dateCreated\"`\n\tUpvoteCount int       `json:\"upvoteCount\"`\n\tURL         string    `json:\"url\"`\n\tAuthor      struct {\n\t\tType string `json:\"@type\"`\n\t\tName string `json:\"name\"`\n\t} `json:\"author\"`\n}\n```\n\n```go\ntype TagChange struct {\n\tObjectID string     `json:\"object_id\"` // object_id\n\tTags     []*TagItem `json:\"tags\"`      // tags name\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\n\n```go\ntype TagItem struct {\n\t// slug_name\n\tSlugName string `validate:\"omitempty,gt=0,lte=35\" json:\"slug_name\"`\n\t// display_name\n\tDisplayName string `validate:\"omitempty,gt=0,lte=35\" json:\"display_name\"`\n\t// original text\n\tOriginalText string `validate:\"omitempty\" json:\"original_text\"`\n\t// parsed text\n\tParsedText string `json:\"-\"`\n}\n```\n\n```go\ntype TagResp struct {\n\tID          string `json:\"-\"`\n\tSlugName    string `json:\"slug_name\"`\n\tDisplayName string `json:\"display_name\"`\n\t// if main tag slug name is not empty, this tag is synonymous with the main tag\n\tMainTagSlugName string `json:\"main_tag_slug_name\"`\n\tRecommend       bool   `json:\"recommend\"`\n\tReserved        bool   `json:\"reserved\"`\n}\n```\n\n```go\ntype TagSynonym struct {\n\t// tag id\n\tTagID string `json:\"tag_id\"`\n\t// slug name\n\tSlugName string `json:\"slug_name\"`\n\t// display name\n\tDisplayName string `json:\"display_name\"`\n\t// if main tag slug name is not empty, this tag is synonymous with the main tag\n\tMainTagSlugName string `json:\"main_tag_slug_name\"`\n}\n```\n\n```go\ntype TemplateSiteInfoResp struct {\n\tGeneral       *SiteGeneralResp       `json:\"general\"`\n\tInterface     *SiteInterfaceResp     `json:\"interface\"`\n\tBranding      *SiteBrandingResp      `json:\"branding\"`\n\tSiteSeo       *SiteSeoResp           `json:\"site_seo\"`\n\tCustomCssHtml *SiteCustomCssHTMLResp `json:\"custom_css_html\"`\n\tTitle         string\n\tYear          string\n\tCanonical     string\n\tJsonLD        string\n\tKeywords      string\n\tDescription   string\n}\n```\n\n```go\ntype TestTemplateData struct {\n\tSiteName string\n}\n```\n\n```go\ntype ThemeOption struct {\n\tLabel string `json:\"label\"`\n\tValue string `json:\"value\"`\n}\n```\nThemeOption get label option\n\n```go\ntype UIOptionAction struct {\n\tUrl              string            `json:\"url\"`\n\tMethod           string            `json:\"method,omitempty\"`\n\tLoading          *LoadingAction    `json:\"loading,omitempty\"`\n\tOnCompleteAction *OnCompleteAction `json:\"on_complete,omitempty\"`\n}\n```\n\n```go\ntype UnreviewedRevisionInfoInfo struct {\n\tObjectID string     `json:\"object_id\"`\n\tTitle    string     `json:\"title\"`\n\tContent  string     `json:\"content\"`\n\tHtml     string     `json:\"html\"`\n\tTags     []*TagResp `json:\"tags\"`\n}\n```\n\n```go\ntype UpdateCollectionGroupReq struct {\n\t//\n\tID int64 `validate:\"required\" comment:\"\" json:\"id\"`\n\t//\n\tUserID int64 `validate:\"omitempty\" comment:\"\" json:\"user_id\"`\n\t// the collection group name\n\tName string `validate:\"omitempty,gt=0,lte=50\" comment:\"the collection group name\" json:\"name\"`\n\t// mark this group is default, default 1\n\tDefaultGroup int `validate:\"omitempty\" comment:\"mark this group is default, default 1\" json:\"default_group\"`\n\t//\n\tCreateTime time.Time `validate:\"omitempty\" comment:\"\" json:\"create_time\"`\n\t//\n\tUpdateTime time.Time `validate:\"omitempty\" comment:\"\" json:\"update_time\"`\n}\n```\nUpdateCollectionGroupReq update collection group request\n\n```go\ntype UpdateCommentReq struct {\n\t// comment id\n\tCommentID string `validate:\"required\" json:\"comment_id\"`\n\t// original comment content\n\tOriginalText string `validate:\"required,notblank,gte=2,lte=600\" json:\"original_text\"`\n\t// parsed comment content\n\tParsedText string `json:\"-\"`\n\t// user id\n\tUserID  string `json:\"-\"`\n\tIsAdmin bool   `json:\"-\"`\n\n\t// whether user can edit it\n\tCanEdit bool `json:\"-\"`\n\n\t// whether user can delete it\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nUpdateCommentReq update comment request\n\n```go\nfunc (req *UpdateCommentReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype UpdateCommentResp struct {\n\t// comment id\n\tCommentID string `json:\"comment_id\"`\n\t// original comment content\n\tOriginalText string `json:\"original_text\"`\n\t// parsed comment content\n\tParsedText string `json:\"parsed_text\"`\n}\n```\n\n```go\ntype UpdateConfigReq struct {\n\t// config id\n\tID int `validate:\"required\" comment:\"config id\" json:\"id\"`\n\t// the config key\n\tKey string `validate:\"omitempty,gt=0,lte=32\" comment:\"the config key\" json:\"key\"`\n\t// the config value, custom data structures and types\n\tValue string `validate:\"omitempty,gt=0,lte=128\" comment:\"the config value, custom data structures and types\" json:\"value\"`\n}\n```\nUpdateConfigReq update config request\n\n```go\ntype UpdateFollowTagsReq struct {\n\t// tag slug name list\n\tSlugNameList []string `json:\"slug_name_list\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nUpdateFollowTagsReq update user follow tags\n\n```go\ntype UpdateInfoRequest struct {\n\tDisplayName string     `validate:\"omitempty,gt=0,lte=30\" json:\"display_name\"`\n\tUsername    string     `validate:\"omitempty,gt=3,lte=30\" json:\"username\"`\n\tAvatar      AvatarInfo `json:\"avatar\"`\n\tBio         string     `validate:\"omitempty,gt=0,lte=4096\" json:\"bio\"`\n\tBioHTML     string     `json:\"-\"`\n\tWebsite     string     `validate:\"omitempty,gt=0,lte=500\" json:\"website\"`\n\tLocation    string     `validate:\"omitempty,gt=0,lte=100\" json:\"location\"`\n\tUserID      string     `json:\"-\"`\n\tIsAdmin     bool       `json:\"-\"`\n}\n```\n\n```go\nfunc (req *UpdateInfoRequest) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype UpdatePluginConfigReq struct {\n\tPluginSlugName string         `validate:\"required,gt=1,lte=100\" json:\"plugin_slug_name\"`\n\tConfigFields   map[string]any `json:\"config_fields\"`\n}\n```\n\n```go\ntype UpdatePluginStatusReq struct {\n\tPluginSlugName string `validate:\"required,gt=1,lte=100\" json:\"plugin_slug_name\"`\n\tEnabled        bool   `json:\"enabled\"`\n}\n```\n\n```go\ntype UpdatePrivilegesConfigReq struct {\n\tLevel PrivilegeLevel `validate:\"required,min=1,max=3\" json:\"level\"`\n}\n```\nUpdatePrivilegesConfigReq update privileges config request\n\n```go\ntype UpdateQuestionResp struct {\n\tWaitForReview bool `json:\"wait_for_review\"`\n}\n```\nUpdateQuestionResp update question resp\n\n```go\ntype UpdateSMTPConfigReq struct {\n\tFromEmail          string `validate:\"omitempty,gt=0,lte=256\" json:\"from_email\"`\n\tFromName           string `validate:\"omitempty,gt=0,lte=256\" json:\"from_name\"`\n\tSMTPHost           string `validate:\"omitempty,gt=0,lte=256\" json:\"smtp_host\"`\n\tSMTPPort           int    `validate:\"omitempty,min=1,max=65535\" json:\"smtp_port\"`\n\tEncryption         string `validate:\"omitempty,oneof=SSL\" json:\"encryption\"` // \"\" SSL\n\tSMTPUsername       string `validate:\"omitempty,gt=0,lte=256\" json:\"smtp_username\"`\n\tSMTPPassword       string `validate:\"omitempty,gt=0,lte=256\" json:\"smtp_password\"`\n\tSMTPAuthentication bool   `validate:\"omitempty\" json:\"smtp_authentication\"`\n\tTestEmailRecipient string `validate:\"omitempty,email\" json:\"test_email_recipient\"`\n}\n```\nUpdateSMTPConfigReq get smtp config request\n\n```go\nfunc (r *UpdateSMTPConfigReq) Check() (errField []*validator.FormErrorField, err error)\n```\n\n```go\ntype UpdateTagListReq struct {\n\t// tag_list_id\n\tID int64 `validate:\"required\" comment:\"tag_list_id\" json:\"id\"`\n\t// tag_id\n\tTagID int64 `validate:\"omitempty\" comment:\"tag_id\" json:\"tag_id\"`\n\t// object_id\n\tObjectID int64 `validate:\"omitempty\" comment:\"object_id\" json:\"object_id\"`\n\t// tag_list_status(available: 1; deleted: 10)\n\tStatus int `validate:\"omitempty\" comment:\"tag_list_status(available: 1; deleted: 10)\" json:\"status\"`\n}\n```\nUpdateTagListReq update tag list request\n\n```go\ntype UpdateTagReq struct {\n\t// tag_id\n\tTagID string `validate:\"required\" json:\"tag_id\"`\n\t// slug_name\n\tSlugName string `validate:\"omitempty,gt=0,lte=35\" json:\"slug_name\"`\n\t// display_name\n\tDisplayName string `validate:\"omitempty,gt=0,lte=35\" json:\"display_name\"`\n\t// original text\n\tOriginalText string `validate:\"omitempty\" json:\"original_text\"`\n\t// parsed text\n\tParsedText string `json:\"-\"`\n\t// edit summary\n\tEditSummary string `validate:\"omitempty\" json:\"edit_summary\"`\n\t// user id\n\tUserID       string `json:\"-\"`\n\tNoNeedReview bool   `json:\"-\"`\n}\n```\nUpdateTagReq update tag request\n\n```go\nfunc (r *UpdateTagReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype UpdateTagResp struct {\n\tWaitForReview bool `json:\"wait_for_review\"`\n}\n```\nUpdateTagResp update tag response\n\n```go\ntype UpdateTagSynonymReq struct {\n\t// tag_id\n\tTagID string `validate:\"required\" json:\"tag_id\"`\n\t// synonym tag list\n\tSynonymTagList []*TagItem `validate:\"required,dive\" json:\"synonym_tag_list\"`\n\t// user id\n\tUserID string `json:\"-\"`\n}\n```\nUpdateTagSynonymReq update tag request\n\n```go\nfunc (req *UpdateTagSynonymReq) Format()\n```\n\n```go\ntype UpdateUserInterfaceRequest struct {\n\t// language\n\tLanguage string `validate:\"required,gt=1,lte=100\" json:\"language\"`\n\t// user id\n\tUserId string `json:\"-\"`\n}\n```\nUpdateUserInterfaceRequest update user interface request\n\n```go\ntype UpdateUserNotificationConfigReq struct {\n\tNotificationConfig\n\tUserID string `json:\"-\"`\n}\n```\nUpdateUserNotificationConfigReq update user notification config request\n\n```go\ntype UpdateUserPasswordReq struct {\n\tUserID      string `validate:\"required\" json:\"user_id\"`\n\tPassword    string `validate:\"required,gte=8,lte=32\" json:\"password\"`\n\tLoginUserID string `json:\"-\"`\n}\n```\nUpdateUserPasswordReq update user password request\n\n```go\ntype UpdateUserRoleReq struct {\n\t// user id\n\tUserID string `validate:\"required\" json:\"user_id\"`\n\t// role id\n\tRoleID int `validate:\"required\" json:\"role_id\"`\n\t// login user id\n\tLoginUserID string `json:\"-\"`\n}\n```\nUpdateUserRoleReq update user role request\n\n```go\ntype UpdateUserStatusReq struct {\n\tUserID           string `validate:\"required\" json:\"user_id\"`\n\tStatus           string `validate:\"required,oneof=normal suspended deleted inactive\" json:\"status\" enums:\"normal,suspended,deleted,inactive\"`\n\tRemoveAllContent bool   `validate:\"omitempty\" json:\"remove_all_content\"`\n\tLoginUserID      string `json:\"-\"`\n}\n```\nUpdateUserStatusReq update user request\n\n```go\nfunc (r *UpdateUserStatusReq) IsDeleted() bool\n```\n\n```go\nfunc (r *UpdateUserStatusReq) IsInactive() bool\n```\n\n```go\nfunc (r *UpdateUserStatusReq) IsNormal() bool\n```\n\n```go\nfunc (r *UpdateUserStatusReq) IsSuspended() bool\n```\n\n```go\ntype UserAnswerInfo struct {\n\tAnswerID     string `json:\"answer_id\"`\n\tQuestionID   string `json:\"question_id\"`\n\tAccepted     int    `json:\"accepted\"`\n\tVoteCount    int    `json:\"vote_count\"`\n\tCreateTime   int    `json:\"create_time\"`\n\tUpdateTime   int    `json:\"update_time\"`\n\tQuestionInfo struct {\n\t\tTitle    string        `json:\"title\"`\n\t\tUrlTitle string        `json:\"url_title\"`\n\t\tTags     []interface{} `json:\"tags\"`\n\t} `json:\"question_info\"`\n}\n```\n\n```go\ntype UserBasicInfo struct {\n\tID          string `json:\"id\"`\n\tUsername    string `json:\"username\"`\n\tRank        int    `json:\"rank\"`\n\tDisplayName string `json:\"display_name\"`\n\tAvatar      string `json:\"avatar\"`\n\tWebsite     string `json:\"website\"`\n\tLocation    string `json:\"location\"`\n\tStatus      string `json:\"status\"`\n}\n```\n\n```go\ntype UserCenterAdminFunctionAgentResp struct {\n\tAllowCreateUser         bool `json:\"allow_create_user\"`\n\tAllowUpdateUserStatus   bool `json:\"allow_update_user_status\"`\n\tAllowUpdateUserPassword bool `json:\"allow_update_user_password\"`\n\tAllowUpdateUserRole     bool `json:\"allow_update_user_role\"`\n}\n```\n\n```go\ntype UserCenterAgentResp struct {\n\tEnabled   bool       `json:\"enabled\"`\n\tAgentInfo *AgentInfo `json:\"agent_info\"`\n}\n```\n\n```go\ntype UserCenterPersonalBranding struct {\n\tEnabled          bool                `json:\"enabled\"`\n\tPersonalBranding []*PersonalBranding `json:\"personal_branding\"`\n}\n```\n\n```go\ntype UserCenterUserSettingsResp struct {\n\tProfileSettingAgent UserSettingAgent `json:\"profile_setting_agent\"`\n\tAccountSettingAgent UserSettingAgent `json:\"account_setting_agent\"`\n}\n```\nUserCenterUserSettingsResp user center user info response\n\n```go\ntype UserChangeEmailSendCodeReq struct {\n\tUserVerifyEmailSendReq\n\tEmail  string `validate:\"required,email,gt=0,lte=500\" json:\"e_mail\"`\n\tPass   string `validate:\"omitempty,gte=8,lte=32\" json:\"pass\"`\n\tUserID string `json:\"-\"`\n}\n```\n\n```go\ntype UserChangeEmailVerifyReq struct {\n\tCode    string `validate:\"required,gt=0,lte=500\" json:\"code\"`\n\tContent string `json:\"-\"`\n}\n```\n\n```go\ntype UserEmailLoginReq struct {\n\tEmail       string `validate:\"required,email,gt=0,lte=500\" json:\"e_mail\"`\n\tPass        string `validate:\"required,gte=8,lte=32\" json:\"pass\"`\n\tCaptchaID   string `json:\"captcha_id\"`\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\nUserEmailLoginReq user email login request\n\n```go\ntype UserExternalLoginResp struct {\n\tBindingKey  string `json:\"binding_key\"`\n\tAccessToken string `json:\"access_token\"`\n\t// ErrMsg error message, if not empty, means login failed and this message should be displayed.\n\tErrMsg   string `json:\"-\"`\n\tErrTitle string `json:\"-\"`\n}\n```\nUserExternalLoginResp user external login resp\n\n```go\ntype UserLoginResp struct {\n\t// user id\n\tID string `json:\"id\"`\n\t// create time\n\tCreatedAt int64 `json:\"created_at\"`\n\t// last login date\n\tLastLoginDate int64 `json:\"last_login_date\"`\n\t// username\n\tUsername string `json:\"username\"`\n\t// email\n\tEMail string `json:\"e_mail\"`\n\t// mail status(1 pass 2 to be verified)\n\tMailStatus int `json:\"mail_status\"`\n\t// notice status(1 on 2off)\n\tNoticeStatus int `json:\"notice_status\"`\n\t// follow count\n\tFollowCount int `json:\"follow_count\"`\n\t// answer count\n\tAnswerCount int `json:\"answer_count\"`\n\t// question count\n\tQuestionCount int `json:\"question_count\"`\n\t// rank\n\tRank int `json:\"rank\"`\n\t// authority group\n\tAuthorityGroup int `json:\"authority_group\"`\n\t// display name\n\tDisplayName string `json:\"display_name\"`\n\t// avatar\n\tAvatar string `json:\"avatar\"`\n\t// mobile\n\tMobile string `json:\"mobile\"`\n\t// bio markdown\n\tBio string `json:\"bio\"`\n\t// bio html\n\tBioHTML string `json:\"bio_html\"`\n\t// website\n\tWebsite string `json:\"website\"`\n\t// location\n\tLocation string `json:\"location\"`\n\t// language\n\tLanguage string `json:\"language\"`\n\t// access token\n\tAccessToken string `json:\"access_token\"`\n\t// role id\n\tRoleID int `json:\"role_id\"`\n\t// user status\n\tStatus string `json:\"status\"`\n\t// user have password\n\tHavePassword bool `json:\"have_password\"`\n\t// visit token\n\tVisitToken string `json:\"visit_token\"`\n}\n```\nUserLoginResp get user response\n\n```go\nfunc (r *UserLoginResp) ConvertFromUserEntity(userInfo *entity.User)\n```\n\n```go\ntype UserModifyPasswordReq struct {\n\tOldPass     string `validate:\"omitempty,gte=8,lte=32\" json:\"old_pass\"`\n\tPass        string `validate:\"required,gte=8,lte=32\" json:\"pass\"`\n\tCaptchaID   string `validate:\"omitempty,gt=0,lte=500\" json:\"captcha_id\"`\n\tCaptchaCode string `validate:\"omitempty,gt=0,lte=500\" json:\"captcha_code\"`\n\tUserID      string `json:\"-\"`\n\tAccessToken string `json:\"-\"`\n}\n```\n\n```go\nfunc (u *UserModifyPasswordReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype UserQuestionInfo struct {\n\tID               string        `json:\"question_id\"`\n\tTitle            string        `json:\"title\"`\n\tUrlTitle         string        `json:\"url_title\"`\n\tVoteCount        int           `json:\"vote_count\"`\n\tTags             []interface{} `json:\"tags\"`\n\tViewCount        int           `json:\"view_count\"`\n\tAnswerCount      int           `json:\"answer_count\"`\n\tCollectionCount  int           `json:\"collection_count\"`\n\tCreatedAt        int64         `json:\"created_at\"`\n\tAcceptedAnswerID string        `json:\"accepted_answer_id\"`\n\tStatus           string        `json:\"status\"`\n}\n```\n\n```go\ntype UserRankingResp struct {\n\tUsersWithTheMostReputation []*UserRankingSimpleInfo `json:\"users_with_the_most_reputation\"`\n\tUsersWithTheMostVote       []*UserRankingSimpleInfo `json:\"users_with_the_most_vote\"`\n\tStaffs                     []*UserRankingSimpleInfo `json:\"staffs\"`\n}\n```\nUserRankingResp user ranking response\n\n```go\ntype UserRankingSimpleInfo struct {\n\t// username\n\tUsername string `json:\"username\"`\n\t// rank\n\tRank int `json:\"rank\"`\n\t// vote\n\tVoteCount int `json:\"vote_count\"`\n\t// display name\n\tDisplayName string `json:\"display_name\"`\n\t// avatar\n\tAvatar string `json:\"avatar\"`\n}\n```\nUserRankingSimpleInfo user ranking simple info\n\n```go\ntype UserRePassWordRequest struct {\n\tCode    string `validate:\"required,gt=0,lte=100\" json:\"code\"`\n\tPass    string `validate:\"required,gt=0,lte=32\" json:\"pass\"`\n\tContent string `json:\"-\"`\n}\n```\n\n```go\nfunc (u *UserRePassWordRequest) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype UserRegisterReq struct {\n\tName        string `validate:\"required,gt=3,lte=30\" json:\"name\"`\n\tEmail       string `validate:\"required,email,gt=0,lte=500\" json:\"e_mail\" `\n\tPass        string `validate:\"required,gte=8,lte=32\" json:\"pass\"`\n\tCaptchaID   string `json:\"captcha_id\"`\n\tCaptchaCode string `json:\"captcha_code\"`\n\tIP          string `json:\"-\" `\n}\n```\nUserRegisterReq user register request\n\n```go\nfunc (u *UserRegisterReq) Check() (errFields []*validator.FormErrorField, err error)\n```\n\n```go\ntype UserRetrievePassWordRequest struct {\n\tEmail       string `validate:\"required,email,gt=0,lte=500\" json:\"e_mail\"`\n\tCaptchaID   string `json:\"captcha_id\"`\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\ntype UserSettingAgent struct {\n\tEnabled     bool   `json:\"enabled\"`\n\tRedirectURL string `json:\"redirect_url\"`\n}\n```\n\n```go\ntype UserUnsubscribeNotificationReq struct {\n\tCode    string `validate:\"required,gt=0,lte=500\" json:\"code\"`\n\tContent string `json:\"-\"`\n}\n```\nUserUnsubscribeNotificationReq user unsubscribe email notification request\n\n```go\ntype UserVerifyEmailReq struct {\n\t// code\n\tCode string `validate:\"required,gt=0,lte=500\" form:\"code\"`\n\t// content\n\tContent string `json:\"-\"`\n}\n```\nUserVerifyEmailReq user verify email request\n\n```go\ntype UserVerifyEmailSendReq struct {\n\tCaptchaID   string `validate:\"omitempty,gt=0,lte=500\" json:\"captcha_id\"`\n\tCaptchaCode string `validate:\"omitempty,gt=0,lte=500\" json:\"captcha_code\"`\n}\n```\n\n```go\ntype VoteActivity struct {\n\tActivityType   int\n\tActivityUserID string\n\tTriggerUserID  string\n\tRank           int\n}\n```\nVoteActivity vote activity\n\n```go\nfunc (v *VoteActivity) HasRank() int\n```\n\n```go\ntype VoteOperationInfo struct {\n\t// operation object id\n\tObjectID string\n\t// question answer comment\n\tObjectType string\n\t// object owner user id\n\tObjectCreatorUserID string\n\t// operation user id\n\tOperatingUserID string\n\t// vote up\n\tVoteUp bool\n\t// vote down\n\tVoteDown bool\n\t// vote activity info\n\tActivities []*VoteActivity\n}\n```\nVoteOperationInfo vote operation info\n\n```go\ntype VoteReq struct {\n\tObjectID    string `validate:\"required\" form:\"object_id\" json:\"object_id\"`  //\t id\n\tIsCancel    bool   `validate:\"omitempty\" form:\"is_cancel\" json:\"is_cancel\"` // is cancel\n\tUserID      string `json:\"-\"`\n\tCaptchaID   string `json:\"captcha_id\"` // captcha_id\n\tCaptchaCode string `json:\"captcha_code\"`\n}\n```\n\n```go\ntype VoteResp struct {\n\tUpVotes    int64  `json:\"up_votes\"`\n\tDownVotes  int64  `json:\"down_votes\"`\n\tVotes      int64  `json:\"votes\"`\n\tVoteStatus string `json:\"vote_status\"`\n}\n```\n\n","path":"github.com/answerdev/answer/internal/schema","name":"schema","synopsis":"","isRedistributable":true}
