Documentation ¶
Index ¶
- Constants
- type RestapiActionAPIRequest
- type RestapiActionAPIResponse
- type RestapiActionListAPIResponse
- type RestapiAdminAllReasonsResponse
- type RestapiAdminReasonListResponse
- type RestapiAdminReasonResponse
- type RestapiBanAccountActionRequest
- type RestapiBanAccountActionResponse
- type RestapiCategoryLimit
- type RestapiConfigResponse
- type RestapiCreateReasonGroupRequest
- type RestapiCreateReasonRequest
- type RestapiErrorResponse
- type RestapiExtensionCategoryAPIRequest
- type RestapiExtensionCategoryAPIResponse
- type RestapiExtensionCategoryListAPIResponse
- type RestapiModerationRuleActionsRequest
- type RestapiModerationRuleActionsResponse
- type RestapiModerationRuleActiveRequest
- type RestapiModerationRuleRequest
- type RestapiModerationRuleResponse
- type RestapiModerationRulesList
- type RestapiPagination
- type RestapiPublicReasonGroupResponse
- type RestapiPublicReasonListResponse
- type RestapiPublicReasonResponse
- type RestapiReasonGroupListResponse
- type RestapiReasonGroupResponse
- type RestapiReportListResponse
- type RestapiReportResponse
- type RestapiReportingLimit
- type RestapiSubmitReportRequest
- type RestapiSubmitReportResponse
- type RestapiTicketListResponse
- type RestapiTicketResponse
- type RestapiTicketStatisticResponse
- type RestapiUnusedReasonListResponse
- type RestapiUpdateReasonGroupRequest
- type RestapiUpdateTicketResolutionsRequest
Constants ¶
const ( // RestapiModerationRuleRequestCategoryCHAT captures enum value "CHAT" RestapiModerationRuleRequestCategoryCHAT string = "CHAT" // RestapiModerationRuleRequestCategoryEXTENSION captures enum value "EXTENSION" RestapiModerationRuleRequestCategoryEXTENSION string = "EXTENSION" // RestapiModerationRuleRequestCategoryUGC captures enum value "UGC" RestapiModerationRuleRequestCategoryUGC string = "UGC" // RestapiModerationRuleRequestCategoryUSER captures enum value "USER" RestapiModerationRuleRequestCategoryUSER string = "USER" )
const ( // RestapiReportResponseCategoryCHAT captures enum value "CHAT" RestapiReportResponseCategoryCHAT string = "CHAT" // RestapiReportResponseCategoryEXTENSION captures enum value "EXTENSION" RestapiReportResponseCategoryEXTENSION string = "EXTENSION" // RestapiReportResponseCategoryUGC captures enum value "UGC" RestapiReportResponseCategoryUGC string = "UGC" // RestapiReportResponseCategoryUSER captures enum value "USER" RestapiReportResponseCategoryUSER string = "USER" )
const ( // RestapiSubmitReportRequestCategoryCHAT captures enum value "CHAT" RestapiSubmitReportRequestCategoryCHAT string = "CHAT" // RestapiSubmitReportRequestCategoryEXTENSION captures enum value "EXTENSION" RestapiSubmitReportRequestCategoryEXTENSION string = "EXTENSION" // RestapiSubmitReportRequestCategoryUGC captures enum value "UGC" RestapiSubmitReportRequestCategoryUGC string = "UGC" // RestapiSubmitReportRequestCategoryUSER captures enum value "USER" RestapiSubmitReportRequestCategoryUSER string = "USER" )
const ( // RestapiSubmitReportResponseCategoryCHAT captures enum value "CHAT" RestapiSubmitReportResponseCategoryCHAT string = "CHAT" // RestapiSubmitReportResponseCategoryEXTENSION captures enum value "EXTENSION" RestapiSubmitReportResponseCategoryEXTENSION string = "EXTENSION" // RestapiSubmitReportResponseCategoryUGC captures enum value "UGC" RestapiSubmitReportResponseCategoryUGC string = "UGC" // RestapiSubmitReportResponseCategoryUSER captures enum value "USER" RestapiSubmitReportResponseCategoryUSER string = "USER" )
const ( // RestapiSubmitReportResponseStatusAUTOMODERATED captures enum value "AUTO_MODERATED" RestapiSubmitReportResponseStatusAUTOMODERATED string = "AUTO_MODERATED" // RestapiSubmitReportResponseStatusCLOSED captures enum value "CLOSED" RestapiSubmitReportResponseStatusCLOSED string = "CLOSED" // RestapiSubmitReportResponseStatusOPEN captures enum value "OPEN" RestapiSubmitReportResponseStatusOPEN string = "OPEN" // RestapiSubmitReportResponseStatusUNKNOWN captures enum value "UNKNOWN" RestapiSubmitReportResponseStatusUNKNOWN string = "UNKNOWN" )
const ( // RestapiTicketResponseCategoryCHAT captures enum value "CHAT" RestapiTicketResponseCategoryCHAT string = "CHAT" // RestapiTicketResponseCategoryEXTENSION captures enum value "EXTENSION" RestapiTicketResponseCategoryEXTENSION string = "EXTENSION" // RestapiTicketResponseCategoryUGC captures enum value "UGC" RestapiTicketResponseCategoryUGC string = "UGC" // RestapiTicketResponseCategoryUSER captures enum value "USER" RestapiTicketResponseCategoryUSER string = "USER" )
const ( // RestapiTicketResponseStatusAUTOMODERATED captures enum value "AUTO_MODERATED" RestapiTicketResponseStatusAUTOMODERATED string = "AUTO_MODERATED" // RestapiTicketResponseStatusCLOSED captures enum value "CLOSED" RestapiTicketResponseStatusCLOSED string = "CLOSED" // RestapiTicketResponseStatusOPEN captures enum value "OPEN" RestapiTicketResponseStatusOPEN string = "OPEN" // RestapiTicketResponseStatusUNKNOWN captures enum value "UNKNOWN" RestapiTicketResponseStatusUNKNOWN string = "UNKNOWN" )
const ( // RestapiUpdateTicketResolutionsRequestStatusAUTOMODERATED captures enum value "AUTO_MODERATED" RestapiUpdateTicketResolutionsRequestStatusAUTOMODERATED string = "AUTO_MODERATED" // RestapiUpdateTicketResolutionsRequestStatusCLOSED captures enum value "CLOSED" RestapiUpdateTicketResolutionsRequestStatusCLOSED string = "CLOSED" // RestapiUpdateTicketResolutionsRequestStatusOPEN captures enum value "OPEN" RestapiUpdateTicketResolutionsRequestStatusOPEN string = "OPEN" // RestapiUpdateTicketResolutionsRequestStatusUNKNOWN captures enum value "UNKNOWN" RestapiUpdateTicketResolutionsRequestStatusUNKNOWN string = "UNKNOWN" )
const ( // RestapiModerationRuleRequestActionHideContent captures enum value "HideContent" RestapiModerationRuleRequestActionHideContent string = "HideContent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestapiActionAPIRequest ¶
type RestapiActionAPIRequest struct { // Auto mod action ID // Required: true ActionID *string `json:"actionId"` // Auto mod action display name // Required: true ActionName *string `json:"actionName"` // Kafka publish event name // Required: true EventName *string `json:"eventName"` }
RestapiActionAPIRequest restapi action Api request
swagger:model restapi.actionApiRequest
func (*RestapiActionAPIRequest) MarshalBinary ¶
func (m *RestapiActionAPIRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiActionAPIRequest) UnmarshalBinary ¶
func (m *RestapiActionAPIRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiActionAPIResponse ¶
type RestapiActionAPIResponse struct { // action Id // Required: true ActionID *string `json:"actionId"` // action name // Required: true ActionName *string `json:"actionName"` // event name // Required: true EventName *string `json:"eventName"` }
RestapiActionAPIResponse restapi action Api response
swagger:model restapi.actionApiResponse
func (*RestapiActionAPIResponse) MarshalBinary ¶
func (m *RestapiActionAPIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiActionAPIResponse) UnmarshalBinary ¶
func (m *RestapiActionAPIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiActionListAPIResponse ¶
type RestapiActionListAPIResponse struct { // data // Required: true Data []*RestapiActionAPIResponse `json:"data"` }
RestapiActionListAPIResponse restapi action list Api response
swagger:model restapi.actionListApiResponse
func (*RestapiActionListAPIResponse) MarshalBinary ¶
func (m *RestapiActionListAPIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiActionListAPIResponse) UnmarshalBinary ¶
func (m *RestapiActionListAPIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiAdminAllReasonsResponse ¶
type RestapiAdminAllReasonsResponse struct { // data // Required: true Data []*RestapiPublicReasonResponse `json:"data"` }
RestapiAdminAllReasonsResponse restapi admin all reasons response
swagger:model restapi.AdminAllReasonsResponse
func (*RestapiAdminAllReasonsResponse) MarshalBinary ¶
func (m *RestapiAdminAllReasonsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiAdminAllReasonsResponse) UnmarshalBinary ¶
func (m *RestapiAdminAllReasonsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiAdminReasonListResponse ¶
type RestapiAdminReasonListResponse struct { // data // Required: true Data []*RestapiAdminReasonResponse `json:"data"` // paging // Required: true Paging *RestapiPagination `json:"paging"` }
RestapiAdminReasonListResponse restapi admin reason list response
swagger:model restapi.adminReasonListResponse
func (*RestapiAdminReasonListResponse) MarshalBinary ¶
func (m *RestapiAdminReasonListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiAdminReasonListResponse) UnmarshalBinary ¶
func (m *RestapiAdminReasonListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiAdminReasonResponse ¶
type RestapiAdminReasonResponse struct { // created at // Required: true CreatedAt *string `json:"createdAt"` // description // Required: true Description *string `json:"description"` // groups Groups []*RestapiPublicReasonGroupResponse `json:"groups"` // id // Required: true ID *string `json:"id"` // namespace // Required: true Namespace *string `json:"namespace"` // title // Required: true Title *string `json:"title"` // updated at // Required: true UpdatedAt *string `json:"updatedAt"` }
RestapiAdminReasonResponse restapi admin reason response
swagger:model restapi.adminReasonResponse
func (*RestapiAdminReasonResponse) MarshalBinary ¶
func (m *RestapiAdminReasonResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiAdminReasonResponse) UnmarshalBinary ¶
func (m *RestapiAdminReasonResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiBanAccountActionRequest ¶
type RestapiBanAccountActionRequest struct { // Ban comment Comment string `json:"comment,omitempty"` // Ban duration in minutes, -1 means unlimited duration // Required: true Duration *int32 `json:"duration"` // Ban reason // Required: true Reason *string `json:"reason"` // Skip notification for banned user (e.g. email notification) // Required: true SkipNotif bool `json:"skipNotif"` // Ban type // Required: true Type *string `json:"type"` }
RestapiBanAccountActionRequest restapi ban account action request
swagger:model restapi.BanAccountActionRequest
func (*RestapiBanAccountActionRequest) MarshalBinary ¶
func (m *RestapiBanAccountActionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiBanAccountActionRequest) UnmarshalBinary ¶
func (m *RestapiBanAccountActionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiBanAccountActionResponse ¶
type RestapiBanAccountActionResponse struct { // Ban comment Comment string `json:"comment,omitempty"` // Ban duration in minutes, -1 means unlimited duration // Required: true Duration *int32 `json:"duration"` // Ban reason // Required: true Reason *string `json:"reason"` // Skip notification for banned user (e.g. email notification) // Required: true SkipNotif bool `json:"skipNotif"` // Ban type // Required: true Type *string `json:"type"` }
RestapiBanAccountActionResponse restapi ban account action response
swagger:model restapi.BanAccountActionResponse
func (*RestapiBanAccountActionResponse) MarshalBinary ¶
func (m *RestapiBanAccountActionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiBanAccountActionResponse) UnmarshalBinary ¶
func (m *RestapiBanAccountActionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiCategoryLimit ¶
type RestapiCategoryLimit struct { // extension category ExtensionCategory string `json:"extensionCategory,omitempty"` // must between 1 to 2147483647 // Required: true MaxReportPerTicket *int32 `json:"maxReportPerTicket"` // name // Required: true Name *string `json:"name"` }
RestapiCategoryLimit restapi category limit
swagger:model restapi.categoryLimit
func (*RestapiCategoryLimit) MarshalBinary ¶
func (m *RestapiCategoryLimit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiCategoryLimit) UnmarshalBinary ¶
func (m *RestapiCategoryLimit) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiConfigResponse ¶
type RestapiConfigResponse struct { // namespace // Required: true Namespace *string `json:"namespace"` // reporting limit // Required: true ReportingLimit *RestapiReportingLimit `json:"reportingLimit"` // updated at // Required: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updatedAt"` }
RestapiConfigResponse restapi config response
swagger:model restapi.configResponse
func (*RestapiConfigResponse) MarshalBinary ¶
func (m *RestapiConfigResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiConfigResponse) UnmarshalBinary ¶
func (m *RestapiConfigResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiCreateReasonGroupRequest ¶
type RestapiCreateReasonGroupRequest struct { // reason ids ReasonIds []string `json:"reasonIds"` // max 256 chars // Required: true Title *string `json:"title"` }
RestapiCreateReasonGroupRequest restapi create reason group request
swagger:model restapi.createReasonGroupRequest
func (*RestapiCreateReasonGroupRequest) MarshalBinary ¶
func (m *RestapiCreateReasonGroupRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiCreateReasonGroupRequest) UnmarshalBinary ¶
func (m *RestapiCreateReasonGroupRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiCreateReasonRequest ¶
type RestapiCreateReasonRequest struct { // max 280 chars // Required: true Description *string `json:"description"` // group ids // Required: true GroupIds []string `json:"groupIds"` // max 256 chars // Required: true Title *string `json:"title"` }
RestapiCreateReasonRequest restapi create reason request
swagger:model restapi.createReasonRequest
func (*RestapiCreateReasonRequest) MarshalBinary ¶
func (m *RestapiCreateReasonRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiCreateReasonRequest) UnmarshalBinary ¶
func (m *RestapiCreateReasonRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiErrorResponse ¶
type RestapiErrorResponse struct { // error code // Required: true ErrorCode *int32 `json:"errorCode"` // error message // Required: true ErrorMessage *string `json:"errorMessage"` }
RestapiErrorResponse restapi error response
swagger:model restapi.errorResponse
func (*RestapiErrorResponse) MarshalBinary ¶
func (m *RestapiErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiErrorResponse) UnmarshalBinary ¶
func (m *RestapiErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiExtensionCategoryAPIRequest ¶
type RestapiExtensionCategoryAPIRequest struct { // Report extension category, consist of custom services sub-category (eg. salesItem,challenge,etc) // Required: true ExtensionCategory *string `json:"extensionCategory"` // Report extension category display name) // Required: true ExtensionCategoryName *string `json:"extensionCategoryName"` // Extension category service source (eg. service source 'marketplace' for extension category 'salesItem') // Required: true ServiceSource *string `json:"serviceSource"` }
RestapiExtensionCategoryAPIRequest restapi extension category Api request
swagger:model restapi.extensionCategoryApiRequest
func (*RestapiExtensionCategoryAPIRequest) MarshalBinary ¶
func (m *RestapiExtensionCategoryAPIRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiExtensionCategoryAPIRequest) UnmarshalBinary ¶
func (m *RestapiExtensionCategoryAPIRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiExtensionCategoryAPIResponse ¶
type RestapiExtensionCategoryAPIResponse struct { // extension category // Required: true ExtensionCategory *string `json:"extensionCategory"` // extension category name // Required: true ExtensionCategoryName *string `json:"extensionCategoryName"` // service source // Required: true ServiceSource *string `json:"serviceSource"` }
RestapiExtensionCategoryAPIResponse restapi extension category Api response
swagger:model restapi.extensionCategoryApiResponse
func (*RestapiExtensionCategoryAPIResponse) MarshalBinary ¶
func (m *RestapiExtensionCategoryAPIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiExtensionCategoryAPIResponse) UnmarshalBinary ¶
func (m *RestapiExtensionCategoryAPIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiExtensionCategoryListAPIResponse ¶
type RestapiExtensionCategoryListAPIResponse struct { // data // Required: true Data []*RestapiExtensionCategoryAPIResponse `json:"data"` }
RestapiExtensionCategoryListAPIResponse restapi extension category list Api response
swagger:model restapi.extensionCategoryListApiResponse
func (*RestapiExtensionCategoryListAPIResponse) MarshalBinary ¶
func (m *RestapiExtensionCategoryListAPIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiExtensionCategoryListAPIResponse) UnmarshalBinary ¶
func (m *RestapiExtensionCategoryListAPIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiModerationRuleActionsRequest ¶
type RestapiModerationRuleActionsRequest struct { // Ban account action configuration BanAccount *RestapiBanAccountActionRequest `json:"banAccount,omitempty"` // Enable delete chat action DeleteChat bool `json:"deleteChat"` // Custom services moderation actions ExtensionActionIds []string `json:"extensionActionIds"` // Enable hide content action HideContent bool `json:"hideContent"` }
RestapiModerationRuleActionsRequest restapi moderation rule actions request
swagger:model restapi.ModerationRuleActionsRequest
func (*RestapiModerationRuleActionsRequest) MarshalBinary ¶
func (m *RestapiModerationRuleActionsRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiModerationRuleActionsRequest) UnmarshalBinary ¶
func (m *RestapiModerationRuleActionsRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiModerationRuleActionsResponse ¶
type RestapiModerationRuleActionsResponse struct { // Ban account action configuration BanAccount *RestapiBanAccountActionResponse `json:"banAccount,omitempty"` // Enable delete chat action DeleteChat bool `json:"deleteChat"` // custom service mod actions ExtensionActionIds []string `json:"extensionActionIds"` // Enable hide content action HideContent bool `json:"hideContent"` }
RestapiModerationRuleActionsResponse restapi moderation rule actions response
swagger:model restapi.ModerationRuleActionsResponse
func (*RestapiModerationRuleActionsResponse) MarshalBinary ¶
func (m *RestapiModerationRuleActionsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiModerationRuleActionsResponse) UnmarshalBinary ¶
func (m *RestapiModerationRuleActionsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiModerationRuleActiveRequest ¶
type RestapiModerationRuleActiveRequest struct { // active // Required: true Active *bool `json:"active"` }
RestapiModerationRuleActiveRequest restapi moderation rule active request
swagger:model restapi.ModerationRuleActiveRequest
func (*RestapiModerationRuleActiveRequest) MarshalBinary ¶
func (m *RestapiModerationRuleActiveRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiModerationRuleActiveRequest) UnmarshalBinary ¶
func (m *RestapiModerationRuleActiveRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiModerationRuleRequest ¶
type RestapiModerationRuleRequest struct { // GOING TO DEPRECATE, PLEASE DO NOT USE, for replacement use the "actions" field // Enum: [HideContent] Action string `json:"action,omitempty"` // Action configurations for moderation rule Actions *RestapiModerationRuleActionsRequest `json:"actions,omitempty"` // status of this rule // Required: true Active *bool `json:"active"` // Report category, must select from pre defined list // Required: true // Enum: [CHAT EXTENSION UGC USER] Category *string `json:"category"` // Report extension category, consist of custom services sub-category (eg. salesItem,challenge,etc) ExtensionCategory string `json:"extensionCategory,omitempty"` // Reason of report, can select from pre defined list, max 128 chars // Required: true Reason *string `json:"reason"` // the threshold to trigger auto moderation // Required: true Threshold *int32 `json:"threshold"` }
RestapiModerationRuleRequest restapi moderation rule request
swagger:model restapi.ModerationRuleRequest
func (*RestapiModerationRuleRequest) MarshalBinary ¶
func (m *RestapiModerationRuleRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiModerationRuleRequest) UnmarshalBinary ¶
func (m *RestapiModerationRuleRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiModerationRuleResponse ¶
type RestapiModerationRuleResponse struct { // GOING TO DEPRECATE, PLEASE DO NOT USE, for replacement use the "actions" field Action string `json:"action,omitempty"` // Action configurations for moderation rule // Required: true Actions *RestapiModerationRuleActionsResponse `json:"actions"` // active // Required: true Active *bool `json:"active"` // category // Required: true Category *string `json:"category"` // created at // Required: true // Format: date-time CreatedAt strfmt.DateTime `json:"createdAt"` // extension category ExtensionCategory string `json:"extensionCategory,omitempty"` // id // Required: true ID *string `json:"id"` // namespace // Required: true Namespace *string `json:"namespace"` // reason // Required: true Reason *string `json:"reason"` // threshold // Required: true Threshold *int32 `json:"threshold"` // updated at // Format: date-time UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"` }
RestapiModerationRuleResponse restapi moderation rule response
swagger:model restapi.ModerationRuleResponse
func (*RestapiModerationRuleResponse) MarshalBinary ¶
func (m *RestapiModerationRuleResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiModerationRuleResponse) UnmarshalBinary ¶
func (m *RestapiModerationRuleResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiModerationRulesList ¶
type RestapiModerationRulesList struct { // data // Required: true Data []*RestapiModerationRuleResponse `json:"data"` // paging // Required: true Paging *RestapiPagination `json:"paging"` }
RestapiModerationRulesList restapi moderation rules list
swagger:model restapi.ModerationRulesList
func (*RestapiModerationRulesList) MarshalBinary ¶
func (m *RestapiModerationRulesList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiModerationRulesList) UnmarshalBinary ¶
func (m *RestapiModerationRulesList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiPagination ¶
type RestapiPagination struct { // first // Required: true First *string `json:"first"` // last // Required: true Last *string `json:"last"` // next // Required: true Next *string `json:"next"` // previous // Required: true Previous *string `json:"previous"` }
RestapiPagination restapi pagination
swagger:model restapi.pagination
func (*RestapiPagination) MarshalBinary ¶
func (m *RestapiPagination) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiPagination) UnmarshalBinary ¶
func (m *RestapiPagination) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiPublicReasonGroupResponse ¶
type RestapiPublicReasonGroupResponse struct { // id // Required: true ID *string `json:"id"` // title // Required: true Title *string `json:"title"` }
RestapiPublicReasonGroupResponse restapi public reason group response
swagger:model restapi.publicReasonGroupResponse
func (*RestapiPublicReasonGroupResponse) MarshalBinary ¶
func (m *RestapiPublicReasonGroupResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiPublicReasonGroupResponse) UnmarshalBinary ¶
func (m *RestapiPublicReasonGroupResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiPublicReasonListResponse ¶
type RestapiPublicReasonListResponse struct { // data // Required: true Data []*RestapiPublicReasonResponse `json:"data"` // paging // Required: true Paging *RestapiPagination `json:"paging"` }
RestapiPublicReasonListResponse restapi public reason list response
swagger:model restapi.publicReasonListResponse
func (*RestapiPublicReasonListResponse) MarshalBinary ¶
func (m *RestapiPublicReasonListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiPublicReasonListResponse) UnmarshalBinary ¶
func (m *RestapiPublicReasonListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiPublicReasonResponse ¶
type RestapiPublicReasonResponse struct { // description // Required: true Description *string `json:"description"` // title // Required: true Title *string `json:"title"` }
RestapiPublicReasonResponse restapi public reason response
swagger:model restapi.publicReasonResponse
func (*RestapiPublicReasonResponse) MarshalBinary ¶
func (m *RestapiPublicReasonResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiPublicReasonResponse) UnmarshalBinary ¶
func (m *RestapiPublicReasonResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiReasonGroupListResponse ¶
type RestapiReasonGroupListResponse struct { // data // Required: true Data []*RestapiPublicReasonGroupResponse `json:"data"` // paging // Required: true Paging *RestapiPagination `json:"paging"` }
RestapiReasonGroupListResponse restapi reason group list response
swagger:model restapi.reasonGroupListResponse
func (*RestapiReasonGroupListResponse) MarshalBinary ¶
func (m *RestapiReasonGroupListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiReasonGroupListResponse) UnmarshalBinary ¶
func (m *RestapiReasonGroupListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiReasonGroupResponse ¶
type RestapiReasonGroupResponse struct { // id // Required: true ID *string `json:"id"` // reasons Reasons []*RestapiAdminReasonResponse `json:"reasons"` // title // Required: true Title *string `json:"title"` }
RestapiReasonGroupResponse restapi reason group response
swagger:model restapi.reasonGroupResponse
func (*RestapiReasonGroupResponse) MarshalBinary ¶
func (m *RestapiReasonGroupResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiReasonGroupResponse) UnmarshalBinary ¶
func (m *RestapiReasonGroupResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiReportListResponse ¶
type RestapiReportListResponse struct { // data // Required: true Data []*RestapiReportResponse `json:"data"` // paging // Required: true Paging *RestapiPagination `json:"paging"` }
RestapiReportListResponse restapi report list response
swagger:model restapi.reportListResponse
func (*RestapiReportListResponse) MarshalBinary ¶
func (m *RestapiReportListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiReportListResponse) UnmarshalBinary ¶
func (m *RestapiReportListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiReportResponse ¶
type RestapiReportResponse struct { // additional info // Required: true AdditionalInfo interface{} `json:"additionalInfo"` // category // Required: true // Enum: [CHAT EXTENSION UGC USER] Category *string `json:"category"` // comment // Required: true Comment *string `json:"comment"` // created at // Required: true CreatedAt *string `json:"createdAt"` // extension category ExtensionCategory string `json:"extensionCategory,omitempty"` // id // Required: true ID *string `json:"id"` // namespace // Required: true Namespace *string `json:"namespace"` // object Id // Required: true ObjectID *string `json:"objectId"` // object type // Required: true ObjectType *string `json:"objectType"` // reason // Required: true Reason *string `json:"reason"` // reporter Id // Required: true ReporterID *string `json:"reporterId"` // ticket Id // Required: true TicketID *string `json:"ticketId"` // updated at // Required: true UpdatedAt *string `json:"updatedAt"` // user Id // Required: true UserID *string `json:"userId"` }
RestapiReportResponse restapi report response
swagger:model restapi.reportResponse
func (*RestapiReportResponse) MarshalBinary ¶
func (m *RestapiReportResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiReportResponse) UnmarshalBinary ¶
func (m *RestapiReportResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiReportingLimit ¶
type RestapiReportingLimit struct { // category limits // Required: true CategoryLimits []*RestapiCategoryLimit `json:"categoryLimits"` // the unit is nanoseconds, must between 1 to 6000000 seconds // Required: true TimeInterval *int64 `json:"timeInterval"` // must between 1 to 2147483647 // Required: true UserMaxReportPerTimeInterval *int32 `json:"userMaxReportPerTimeInterval"` }
RestapiReportingLimit restapi reporting limit
swagger:model restapi.reportingLimit
func (*RestapiReportingLimit) MarshalBinary ¶
func (m *RestapiReportingLimit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiReportingLimit) UnmarshalBinary ¶
func (m *RestapiReportingLimit) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiSubmitReportRequest ¶
type RestapiSubmitReportRequest struct { // Additional info regarding reported user / content, JSON formatted AdditionalInfo interface{} `json:"additionalInfo,omitempty"` // Report category, must select from pre defined list // Required: true // Enum: [CHAT EXTENSION UGC USER] Category *string `json:"category"` // Additional comment if any, max 280 chars Comment string `json:"comment,omitempty"` // Report extension category, must select from pre defined list ExtensionCategory string `json:"extensionCategory,omitempty"` // ID of content being reported, uuid4WithoutHyphens. Required for UGC category ObjectID string `json:"objectId,omitempty"` // Type of content being reported, max 64 chars. Required for UGC category ObjectType string `json:"objectType,omitempty"` // Reason of report, can select from pre defined list, max 128 chars // Required: true Reason *string `json:"reason"` // User ID being reported, in UUID4 format // Required: true UserID *string `json:"userId"` }
RestapiSubmitReportRequest restapi submit report request
swagger:model restapi.submitReportRequest
func (*RestapiSubmitReportRequest) MarshalBinary ¶
func (m *RestapiSubmitReportRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiSubmitReportRequest) UnmarshalBinary ¶
func (m *RestapiSubmitReportRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiSubmitReportResponse ¶
type RestapiSubmitReportResponse struct { // category // Required: true // Enum: [CHAT EXTENSION UGC USER] Category *string `json:"category"` // created at // Required: true CreatedAt *string `json:"createdAt"` // extension category ExtensionCategory string `json:"extensionCategory,omitempty"` // namespace // Required: true Namespace *string `json:"namespace"` // object Id // Required: true ObjectID *string `json:"objectId"` // object type // Required: true ObjectType *string `json:"objectType"` // status // Required: true // Enum: [AUTO_MODERATED CLOSED OPEN UNKNOWN] Status *string `json:"status"` // ticket Id // Required: true TicketID *string `json:"ticketId"` // updated at // Required: true UpdatedAt *string `json:"updatedAt"` // user Id // Required: true UserID *string `json:"userId"` }
RestapiSubmitReportResponse restapi submit report response
swagger:model restapi.submitReportResponse
func (*RestapiSubmitReportResponse) MarshalBinary ¶
func (m *RestapiSubmitReportResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiSubmitReportResponse) UnmarshalBinary ¶
func (m *RestapiSubmitReportResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiTicketListResponse ¶
type RestapiTicketListResponse struct { // data // Required: true Data []*RestapiTicketResponse `json:"data"` // paging // Required: true Paging *RestapiPagination `json:"paging"` }
RestapiTicketListResponse restapi ticket list response
swagger:model restapi.ticketListResponse
func (*RestapiTicketListResponse) MarshalBinary ¶
func (m *RestapiTicketListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiTicketListResponse) UnmarshalBinary ¶
func (m *RestapiTicketListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiTicketResponse ¶
type RestapiTicketResponse struct { // category // Required: true // Enum: [CHAT EXTENSION UGC USER] Category *string `json:"category"` // created at // Required: true CreatedAt *string `json:"createdAt"` // extension category ExtensionCategory string `json:"extensionCategory,omitempty"` // id // Required: true ID *string `json:"id"` // namespace // Required: true Namespace *string `json:"namespace"` // notes // Required: true Notes *string `json:"notes"` // object Id // Required: true ObjectID *string `json:"objectId"` // object type // Required: true ObjectType *string `json:"objectType"` // reports count // Required: true ReportsCount *int32 `json:"reportsCount"` // status // Required: true // Enum: [AUTO_MODERATED CLOSED OPEN UNKNOWN] Status *string `json:"status"` // updated at // Required: true UpdatedAt *string `json:"updatedAt"` // user Id // Required: true UserID *string `json:"userId"` }
RestapiTicketResponse restapi ticket response
swagger:model restapi.ticketResponse
func (*RestapiTicketResponse) MarshalBinary ¶
func (m *RestapiTicketResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiTicketResponse) UnmarshalBinary ¶
func (m *RestapiTicketResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiTicketStatisticResponse ¶
type RestapiTicketStatisticResponse struct { // moderated count // Required: true ModeratedCount *int64 `json:"moderatedCount"` // open count // Required: true OpenCount *int64 `json:"openCount"` // total count // Required: true TotalCount *int64 `json:"totalCount"` }
RestapiTicketStatisticResponse restapi ticket statistic response
swagger:model restapi.ticketStatisticResponse
func (*RestapiTicketStatisticResponse) MarshalBinary ¶
func (m *RestapiTicketStatisticResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiTicketStatisticResponse) UnmarshalBinary ¶
func (m *RestapiTicketStatisticResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiUnusedReasonListResponse ¶
type RestapiUnusedReasonListResponse struct { // reasons // Required: true Reasons []*RestapiPublicReasonResponse `json:"reasons"` }
RestapiUnusedReasonListResponse restapi unused reason list response
swagger:model restapi.UnusedReasonListResponse
func (*RestapiUnusedReasonListResponse) MarshalBinary ¶
func (m *RestapiUnusedReasonListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiUnusedReasonListResponse) UnmarshalBinary ¶
func (m *RestapiUnusedReasonListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiUpdateReasonGroupRequest ¶
type RestapiUpdateReasonGroupRequest struct { // reason ids ReasonIds []string `json:"reasonIds"` // max 256 chars // Required: true Title *string `json:"title"` }
RestapiUpdateReasonGroupRequest restapi update reason group request
swagger:model restapi.updateReasonGroupRequest
func (*RestapiUpdateReasonGroupRequest) MarshalBinary ¶
func (m *RestapiUpdateReasonGroupRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiUpdateReasonGroupRequest) UnmarshalBinary ¶
func (m *RestapiUpdateReasonGroupRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestapiUpdateTicketResolutionsRequest ¶
type RestapiUpdateTicketResolutionsRequest struct { // Info regarding the resolution status, max 280 chars // Required: true Notes *string `json:"notes"` // Ticket status is open, closed, auto moderated // Required: true // Enum: [AUTO_MODERATED CLOSED OPEN UNKNOWN] Status *string `json:"status"` }
RestapiUpdateTicketResolutionsRequest restapi update ticket resolutions request
swagger:model restapi.updateTicketResolutionsRequest
func (*RestapiUpdateTicketResolutionsRequest) MarshalBinary ¶
func (m *RestapiUpdateTicketResolutionsRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestapiUpdateTicketResolutionsRequest) UnmarshalBinary ¶
func (m *RestapiUpdateTicketResolutionsRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- restapi_action_api_request.go
- restapi_action_api_response.go
- restapi_action_list_api_response.go
- restapi_admin_all_reasons_response.go
- restapi_admin_reason_list_response.go
- restapi_admin_reason_response.go
- restapi_ban_account_action_request.go
- restapi_ban_account_action_response.go
- restapi_category_limit.go
- restapi_config_response.go
- restapi_create_reason_group_request.go
- restapi_create_reason_request.go
- restapi_error_response.go
- restapi_extension_category_api_request.go
- restapi_extension_category_api_response.go
- restapi_extension_category_list_api_response.go
- restapi_moderation_rule_actions_request.go
- restapi_moderation_rule_actions_response.go
- restapi_moderation_rule_active_request.go
- restapi_moderation_rule_request.go
- restapi_moderation_rule_response.go
- restapi_moderation_rules_list.go
- restapi_pagination.go
- restapi_public_reason_group_response.go
- restapi_public_reason_list_response.go
- restapi_public_reason_response.go
- restapi_reason_group_list_response.go
- restapi_reason_group_response.go
- restapi_report_list_response.go
- restapi_report_response.go
- restapi_reporting_limit.go
- restapi_submit_report_request.go
- restapi_submit_report_response.go
- restapi_ticket_list_response.go
- restapi_ticket_response.go
- restapi_ticket_statistic_response.go
- restapi_unused_reason_list_response.go
- restapi_update_reason_group_request.go
- restapi_update_ticket_resolutions_request.go