Documentation
¶
Overview ¶
Package sdk provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewGetPreferencesRequest(server string) (*http.Request, error)
- func NewGetUnreadCountRequest(server string) (*http.Request, error)
- func NewListNotificationsRequest(server string, params *ListNotificationsParams) (*http.Request, error)
- func NewMarkAllReadRequest(server string) (*http.Request, error)
- func NewMarkReadRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewSetPreferencesRequest(server string, body SetPreferencesJSONRequestBody) (*http.Request, error)
- func NewSetPreferencesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) GetPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUnreadCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNotifications(ctx context.Context, params *ListNotificationsParams, ...) (*http.Response, error)
- func (c *Client) MarkAllRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarkRead(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetPreferences(ctx context.Context, body SetPreferencesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPreferencesResponse, error)
- func (c *ClientWithResponses) GetUnreadCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadCountResponse, error)
- func (c *ClientWithResponses) ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, ...) (*ListNotificationsResponse, error)
- func (c *ClientWithResponses) MarkAllReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkAllReadResponse, error)
- func (c *ClientWithResponses) MarkReadWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*MarkReadResponse, error)
- func (c *ClientWithResponses) SetPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetPreferencesResponse, error)
- func (c *ClientWithResponses) SetPreferencesWithResponse(ctx context.Context, body SetPreferencesJSONRequestBody, ...) (*SetPreferencesResponse, error)
- type ClientWithResponsesInterface
- type ContentApprovedTitlePayload
- type ContentApprovedTitlePayloadTargetKind
- type ContentApprovedTitlePayloadTitleKey
- type ContentApprovedTitlePayloadType
- type ContentRejectedTitlePayload
- type ContentRejectedTitlePayloadTargetKind
- type ContentRejectedTitlePayloadTitleKey
- type ContentRejectedTitlePayloadType
- type ContentRemovedTitlePayload
- type ContentRemovedTitlePayloadTargetKind
- type ContentRemovedTitlePayloadTitleKey
- type ContentRemovedTitlePayloadType
- type Error
- type GetPreferencesResponse
- func (r GetPreferencesResponse) ContentType() string
- func (r GetPreferencesResponse) GetBody() []byte
- func (r GetPreferencesResponse) GetJSON200() *Preferences
- func (r GetPreferencesResponse) GetJSON400() *Error
- func (r GetPreferencesResponse) GetJSON401() *Error
- func (r GetPreferencesResponse) GetJSON404() *Error
- func (r GetPreferencesResponse) GetJSON503() *Error
- func (r GetPreferencesResponse) Status() string
- func (r GetPreferencesResponse) StatusCode() int
- type GetUnreadCountResponse
- func (r GetUnreadCountResponse) ContentType() string
- func (r GetUnreadCountResponse) GetBody() []byte
- func (r GetUnreadCountResponse) GetJSON200() *Unread
- func (r GetUnreadCountResponse) GetJSON400() *Error
- func (r GetUnreadCountResponse) GetJSON401() *Error
- func (r GetUnreadCountResponse) GetJSON404() *Error
- func (r GetUnreadCountResponse) GetJSON503() *Error
- func (r GetUnreadCountResponse) Status() string
- func (r GetUnreadCountResponse) StatusCode() int
- type HttpRequestDoer
- type IdentityVerificationApprovedTitlePayload
- type IdentityVerificationApprovedTitlePayloadTargetKind
- type IdentityVerificationApprovedTitlePayloadTitleKey
- type IdentityVerificationApprovedTitlePayloadType
- type IdentityVerificationRejectedTitlePayload
- type IdentityVerificationRejectedTitlePayloadTargetKind
- type IdentityVerificationRejectedTitlePayloadTitleKey
- type IdentityVerificationRejectedTitlePayloadType
- type InteractionLikeTitlePayload
- type InteractionLikeTitlePayloadTargetKind
- type InteractionLikeTitlePayloadTitleKey
- type InteractionLikeTitlePayloadType
- type InteractionReplyTitlePayload
- type InteractionReplyTitlePayloadTargetKind
- type InteractionReplyTitlePayloadTitleKey
- type InteractionReplyTitlePayloadType
- type ListNotificationsParams
- type ListNotificationsResponse
- func (r ListNotificationsResponse) ContentType() string
- func (r ListNotificationsResponse) GetBody() []byte
- func (r ListNotificationsResponse) GetJSON200() *Page
- func (r ListNotificationsResponse) GetJSON400() *Error
- func (r ListNotificationsResponse) GetJSON401() *Error
- func (r ListNotificationsResponse) GetJSON404() *Error
- func (r ListNotificationsResponse) GetJSON503() *Error
- func (r ListNotificationsResponse) Status() string
- func (r ListNotificationsResponse) StatusCode() int
- type MarkAllReadResponse
- func (r MarkAllReadResponse) ContentType() string
- func (r MarkAllReadResponse) GetBody() []byte
- func (r MarkAllReadResponse) GetJSON400() *Error
- func (r MarkAllReadResponse) GetJSON401() *Error
- func (r MarkAllReadResponse) GetJSON404() *Error
- func (r MarkAllReadResponse) GetJSON503() *Error
- func (r MarkAllReadResponse) Status() string
- func (r MarkAllReadResponse) StatusCode() int
- type MarkReadResponse
- func (r MarkReadResponse) ContentType() string
- func (r MarkReadResponse) GetBody() []byte
- func (r MarkReadResponse) GetJSON400() *Error
- func (r MarkReadResponse) GetJSON401() *Error
- func (r MarkReadResponse) GetJSON404() *Error
- func (r MarkReadResponse) GetJSON503() *Error
- func (r MarkReadResponse) Status() string
- func (r MarkReadResponse) StatusCode() int
- type Notification
- func (t Notification) AsContentApprovedTitlePayload() (ContentApprovedTitlePayload, error)
- func (t Notification) AsContentRejectedTitlePayload() (ContentRejectedTitlePayload, error)
- func (t Notification) AsContentRemovedTitlePayload() (ContentRemovedTitlePayload, error)
- func (t Notification) AsIdentityVerificationApprovedTitlePayload() (IdentityVerificationApprovedTitlePayload, error)
- func (t Notification) AsIdentityVerificationRejectedTitlePayload() (IdentityVerificationRejectedTitlePayload, error)
- func (t Notification) AsInteractionLikeTitlePayload() (InteractionLikeTitlePayload, error)
- func (t Notification) AsInteractionReplyTitlePayload() (InteractionReplyTitlePayload, error)
- func (t Notification) AsReportApprovedTitlePayload() (ReportApprovedTitlePayload, error)
- func (t Notification) AsReportRejectedTitlePayload() (ReportRejectedTitlePayload, error)
- func (t Notification) AsResourceRemovalApprovedTitlePayload() (ResourceRemovalApprovedTitlePayload, error)
- func (t Notification) AsResourceRemovalRejectedTitlePayload() (ResourceRemovalRejectedTitlePayload, error)
- func (t Notification) AsStudentVerificationApprovedTitlePayload() (StudentVerificationApprovedTitlePayload, error)
- func (t Notification) AsStudentVerificationRejectedTitlePayload() (StudentVerificationRejectedTitlePayload, error)
- func (t Notification) AsStudentVerificationRevokedTitlePayload() (StudentVerificationRevokedTitlePayload, error)
- func (t Notification) AsSystemAccountTitlePayload() (SystemAccountTitlePayload, error)
- func (t Notification) AsSystemNoticeTitlePayload() (SystemNoticeTitlePayload, error)
- func (t Notification) AsSystemSecurityTitlePayload() (SystemSecurityTitlePayload, error)
- func (t Notification) AsTeacherVerificationApprovedTitlePayload() (TeacherVerificationApprovedTitlePayload, error)
- func (t Notification) AsTeacherVerificationRejectedTitlePayload() (TeacherVerificationRejectedTitlePayload, error)
- func (t Notification) AsVerificationDeletionApprovedTitlePayload() (VerificationDeletionApprovedTitlePayload, error)
- func (t Notification) AsVerificationDeletionRejectedTitlePayload() (VerificationDeletionRejectedTitlePayload, error)
- func (t Notification) AsVerificationRevocationApprovedTitlePayload() (VerificationRevocationApprovedTitlePayload, error)
- func (t Notification) AsVerificationRevocationRejectedTitlePayload() (VerificationRevocationRejectedTitlePayload, error)
- func (t *Notification) FromContentApprovedTitlePayload(v ContentApprovedTitlePayload) error
- func (t *Notification) FromContentRejectedTitlePayload(v ContentRejectedTitlePayload) error
- func (t *Notification) FromContentRemovedTitlePayload(v ContentRemovedTitlePayload) error
- func (t *Notification) FromIdentityVerificationApprovedTitlePayload(v IdentityVerificationApprovedTitlePayload) error
- func (t *Notification) FromIdentityVerificationRejectedTitlePayload(v IdentityVerificationRejectedTitlePayload) error
- func (t *Notification) FromInteractionLikeTitlePayload(v InteractionLikeTitlePayload) error
- func (t *Notification) FromInteractionReplyTitlePayload(v InteractionReplyTitlePayload) error
- func (t *Notification) FromReportApprovedTitlePayload(v ReportApprovedTitlePayload) error
- func (t *Notification) FromReportRejectedTitlePayload(v ReportRejectedTitlePayload) error
- func (t *Notification) FromResourceRemovalApprovedTitlePayload(v ResourceRemovalApprovedTitlePayload) error
- func (t *Notification) FromResourceRemovalRejectedTitlePayload(v ResourceRemovalRejectedTitlePayload) error
- func (t *Notification) FromStudentVerificationApprovedTitlePayload(v StudentVerificationApprovedTitlePayload) error
- func (t *Notification) FromStudentVerificationRejectedTitlePayload(v StudentVerificationRejectedTitlePayload) error
- func (t *Notification) FromStudentVerificationRevokedTitlePayload(v StudentVerificationRevokedTitlePayload) error
- func (t *Notification) FromSystemAccountTitlePayload(v SystemAccountTitlePayload) error
- func (t *Notification) FromSystemNoticeTitlePayload(v SystemNoticeTitlePayload) error
- func (t *Notification) FromSystemSecurityTitlePayload(v SystemSecurityTitlePayload) error
- func (t *Notification) FromTeacherVerificationApprovedTitlePayload(v TeacherVerificationApprovedTitlePayload) error
- func (t *Notification) FromTeacherVerificationRejectedTitlePayload(v TeacherVerificationRejectedTitlePayload) error
- func (t *Notification) FromVerificationDeletionApprovedTitlePayload(v VerificationDeletionApprovedTitlePayload) error
- func (t *Notification) FromVerificationDeletionRejectedTitlePayload(v VerificationDeletionRejectedTitlePayload) error
- func (t *Notification) FromVerificationRevocationApprovedTitlePayload(v VerificationRevocationApprovedTitlePayload) error
- func (t *Notification) FromVerificationRevocationRejectedTitlePayload(v VerificationRevocationRejectedTitlePayload) error
- func (t Notification) MarshalJSON() ([]byte, error)
- func (t *Notification) MergeContentApprovedTitlePayload(v ContentApprovedTitlePayload) error
- func (t *Notification) MergeContentRejectedTitlePayload(v ContentRejectedTitlePayload) error
- func (t *Notification) MergeContentRemovedTitlePayload(v ContentRemovedTitlePayload) error
- func (t *Notification) MergeIdentityVerificationApprovedTitlePayload(v IdentityVerificationApprovedTitlePayload) error
- func (t *Notification) MergeIdentityVerificationRejectedTitlePayload(v IdentityVerificationRejectedTitlePayload) error
- func (t *Notification) MergeInteractionLikeTitlePayload(v InteractionLikeTitlePayload) error
- func (t *Notification) MergeInteractionReplyTitlePayload(v InteractionReplyTitlePayload) error
- func (t *Notification) MergeReportApprovedTitlePayload(v ReportApprovedTitlePayload) error
- func (t *Notification) MergeReportRejectedTitlePayload(v ReportRejectedTitlePayload) error
- func (t *Notification) MergeResourceRemovalApprovedTitlePayload(v ResourceRemovalApprovedTitlePayload) error
- func (t *Notification) MergeResourceRemovalRejectedTitlePayload(v ResourceRemovalRejectedTitlePayload) error
- func (t *Notification) MergeStudentVerificationApprovedTitlePayload(v StudentVerificationApprovedTitlePayload) error
- func (t *Notification) MergeStudentVerificationRejectedTitlePayload(v StudentVerificationRejectedTitlePayload) error
- func (t *Notification) MergeStudentVerificationRevokedTitlePayload(v StudentVerificationRevokedTitlePayload) error
- func (t *Notification) MergeSystemAccountTitlePayload(v SystemAccountTitlePayload) error
- func (t *Notification) MergeSystemNoticeTitlePayload(v SystemNoticeTitlePayload) error
- func (t *Notification) MergeSystemSecurityTitlePayload(v SystemSecurityTitlePayload) error
- func (t *Notification) MergeTeacherVerificationApprovedTitlePayload(v TeacherVerificationApprovedTitlePayload) error
- func (t *Notification) MergeTeacherVerificationRejectedTitlePayload(v TeacherVerificationRejectedTitlePayload) error
- func (t *Notification) MergeVerificationDeletionApprovedTitlePayload(v VerificationDeletionApprovedTitlePayload) error
- func (t *Notification) MergeVerificationDeletionRejectedTitlePayload(v VerificationDeletionRejectedTitlePayload) error
- func (t *Notification) MergeVerificationRevocationApprovedTitlePayload(v VerificationRevocationApprovedTitlePayload) error
- func (t *Notification) MergeVerificationRevocationRejectedTitlePayload(v VerificationRevocationRejectedTitlePayload) error
- func (t *Notification) UnmarshalJSON(b []byte) error
- type NotificationTargetStatus
- type NotificationType
- type Page
- type Preferences
- type ReportApprovedTitlePayload
- type ReportApprovedTitlePayloadTargetKind
- type ReportApprovedTitlePayloadTitleKey
- type ReportApprovedTitlePayloadType
- type ReportRejectedTitlePayload
- type ReportRejectedTitlePayloadTargetKind
- type ReportRejectedTitlePayloadTitleKey
- type ReportRejectedTitlePayloadType
- type RequestEditorFn
- type ResourceRemovalApprovedTitlePayload
- type ResourceRemovalApprovedTitlePayloadTargetKind
- type ResourceRemovalApprovedTitlePayloadTitleKey
- type ResourceRemovalApprovedTitlePayloadType
- type ResourceRemovalRejectedTitlePayload
- type ResourceRemovalRejectedTitlePayloadTargetKind
- type ResourceRemovalRejectedTitlePayloadTitleKey
- type ResourceRemovalRejectedTitlePayloadType
- type SetPreferencesJSONRequestBody
- type SetPreferencesResponse
- func (r SetPreferencesResponse) ContentType() string
- func (r SetPreferencesResponse) GetBody() []byte
- func (r SetPreferencesResponse) GetJSON200() *Preferences
- func (r SetPreferencesResponse) GetJSON400() *Error
- func (r SetPreferencesResponse) GetJSON401() *Error
- func (r SetPreferencesResponse) GetJSON404() *Error
- func (r SetPreferencesResponse) GetJSON503() *Error
- func (r SetPreferencesResponse) Status() string
- func (r SetPreferencesResponse) StatusCode() int
- type StudentVerificationApprovedTitlePayload
- type StudentVerificationApprovedTitlePayloadTargetKind
- type StudentVerificationApprovedTitlePayloadTitleKey
- type StudentVerificationApprovedTitlePayloadType
- type StudentVerificationRejectedTitlePayload
- type StudentVerificationRejectedTitlePayloadTargetKind
- type StudentVerificationRejectedTitlePayloadTitleKey
- type StudentVerificationRejectedTitlePayloadType
- type StudentVerificationRevokedTitlePayload
- type StudentVerificationRevokedTitlePayloadTargetKind
- type StudentVerificationRevokedTitlePayloadTitleKey
- type StudentVerificationRevokedTitlePayloadType
- type SystemAccountTitlePayload
- type SystemAccountTitlePayloadTargetKind
- type SystemAccountTitlePayloadTitleKey
- type SystemAccountTitlePayloadType
- type SystemNoticeTitlePayload
- type SystemNoticeTitlePayloadTargetKind
- type SystemNoticeTitlePayloadTitleKey
- type SystemNoticeTitlePayloadType
- type SystemSecurityTitlePayload
- type SystemSecurityTitlePayloadTargetKind
- type SystemSecurityTitlePayloadTitleKey
- type SystemSecurityTitlePayloadType
- type Target
- type TargetKind
- type TeacherVerificationApprovedTitlePayload
- type TeacherVerificationApprovedTitlePayloadTargetKind
- type TeacherVerificationApprovedTitlePayloadTitleKey
- type TeacherVerificationApprovedTitlePayloadType
- type TeacherVerificationRejectedTitlePayload
- type TeacherVerificationRejectedTitlePayloadTargetKind
- type TeacherVerificationRejectedTitlePayloadTitleKey
- type TeacherVerificationRejectedTitlePayloadType
- type TitleKey
- type Unread
- type VerificationDeletionApprovedTitlePayload
- type VerificationDeletionApprovedTitlePayloadTargetKind
- type VerificationDeletionApprovedTitlePayloadTitleKey
- type VerificationDeletionApprovedTitlePayloadType
- type VerificationDeletionRejectedTitlePayload
- type VerificationDeletionRejectedTitlePayloadTargetKind
- type VerificationDeletionRejectedTitlePayloadTitleKey
- type VerificationDeletionRejectedTitlePayloadType
- type VerificationRevocationApprovedTitlePayload
- type VerificationRevocationApprovedTitlePayloadTargetKind
- type VerificationRevocationApprovedTitlePayloadTitleKey
- type VerificationRevocationApprovedTitlePayloadType
- type VerificationRevocationRejectedTitlePayload
- type VerificationRevocationRejectedTitlePayloadTargetKind
- type VerificationRevocationRejectedTitlePayloadTitleKey
- type VerificationRevocationRejectedTitlePayloadType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetPreferencesRequest ¶
NewGetPreferencesRequest constructs an http.Request for the GetPreferences method
func NewGetUnreadCountRequest ¶
NewGetUnreadCountRequest constructs an http.Request for the GetUnreadCount method
func NewListNotificationsRequest ¶
func NewListNotificationsRequest(server string, params *ListNotificationsParams) (*http.Request, error)
NewListNotificationsRequest constructs an http.Request for the ListNotifications method
func NewMarkAllReadRequest ¶
NewMarkAllReadRequest constructs an http.Request for the MarkAllRead method
func NewMarkReadRequest ¶
NewMarkReadRequest constructs an http.Request for the MarkRead method
func NewSetPreferencesRequest ¶
func NewSetPreferencesRequest(server string, body SetPreferencesJSONRequestBody) (*http.Request, error)
NewSetPreferencesRequest calls the generic SetPreferences builder with application/json body
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetPreferences ¶
func (c *Client) GetPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetPreferences performs a GET /api/v1/notifications/preferences (the `GetPreferences` operationId) request.
func (*Client) GetUnreadCount ¶
func (c *Client) GetUnreadCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUnreadCount performs a GET /api/v1/notifications/unread-count (the `GetUnreadCount` operationId) request.
func (*Client) ListNotifications ¶
func (c *Client) ListNotifications(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListNotifications performs a GET /api/v1/notifications (the `ListNotifications` operationId) request.
func (*Client) MarkAllRead ¶
func (c *Client) MarkAllRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkAllRead performs a POST /api/v1/notifications/read-all (the `MarkAllRead` operationId) request.
func (*Client) MarkRead ¶
func (c *Client) MarkRead(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkRead performs a POST /api/v1/notifications/{id}/read (the `MarkRead` operationId) request.
func (*Client) SetPreferences ¶
func (c *Client) SetPreferences(ctx context.Context, body SetPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SetPreferences performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request. Takes a body of the `application/json` content type.
func (*Client) SetPreferencesWithBody ¶
func (c *Client) SetPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetPreferencesWithBody performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request, with any type of body and a specified content type.
type ClientInterface ¶
type ClientInterface interface {
// ListNotifications performs a GET /api/v1/notifications (the `ListNotifications` operationId) request.
ListNotifications(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPreferences performs a GET /api/v1/notifications/preferences (the `GetPreferences` operationId) request.
GetPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetPreferencesWithBody performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request,
// with any type of body and a specified content type.
SetPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetPreferences performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request.
// Takes a body of the `application/json` content type.
SetPreferences(ctx context.Context, body SetPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkAllRead performs a POST /api/v1/notifications/read-all (the `MarkAllRead` operationId) request.
MarkAllRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUnreadCount performs a GET /api/v1/notifications/unread-count (the `GetUnreadCount` operationId) request.
GetUnreadCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkRead performs a POST /api/v1/notifications/{id}/read (the `MarkRead` operationId) request.
MarkRead(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetPreferencesWithResponse ¶
func (c *ClientWithResponses) GetPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPreferencesResponse, error)
GetPreferencesWithResponse performs a GET /api/v1/notifications/preferences (the `GetPreferences` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetUnreadCountWithResponse ¶
func (c *ClientWithResponses) GetUnreadCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadCountResponse, error)
GetUnreadCountWithResponse performs a GET /api/v1/notifications/unread-count (the `GetUnreadCount` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListNotificationsWithResponse ¶
func (c *ClientWithResponses) ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*ListNotificationsResponse, error)
ListNotificationsWithResponse performs a GET /api/v1/notifications (the `ListNotifications` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) MarkAllReadWithResponse ¶
func (c *ClientWithResponses) MarkAllReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkAllReadResponse, error)
MarkAllReadWithResponse performs a POST /api/v1/notifications/read-all (the `MarkAllRead` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) MarkReadWithResponse ¶
func (c *ClientWithResponses) MarkReadWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*MarkReadResponse, error)
MarkReadWithResponse performs a POST /api/v1/notifications/{id}/read (the `MarkRead` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SetPreferencesWithBodyWithResponse ¶
func (c *ClientWithResponses) SetPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetPreferencesResponse, error)
SetPreferencesWithBodyWithResponse performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SetPreferencesWithResponse ¶
func (c *ClientWithResponses) SetPreferencesWithResponse(ctx context.Context, body SetPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*SetPreferencesResponse, error)
SetPreferencesWithResponse performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListNotificationsWithResponse performs a GET /api/v1/notifications (the `ListNotifications` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*ListNotificationsResponse, error)
// GetPreferencesWithResponse performs a GET /api/v1/notifications/preferences (the `GetPreferences` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPreferencesResponse, error)
// SetPreferencesWithBodyWithResponse performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
SetPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetPreferencesResponse, error)
// SetPreferencesWithResponse performs a PUT /api/v1/notifications/preferences (the `SetPreferences` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
SetPreferencesWithResponse(ctx context.Context, body SetPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*SetPreferencesResponse, error)
// MarkAllReadWithResponse performs a POST /api/v1/notifications/read-all (the `MarkAllRead` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
MarkAllReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkAllReadResponse, error)
// GetUnreadCountWithResponse performs a GET /api/v1/notifications/unread-count (the `GetUnreadCount` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetUnreadCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadCountResponse, error)
// MarkReadWithResponse performs a POST /api/v1/notifications/{id}/read (the `MarkRead` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
MarkReadWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*MarkReadResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ContentApprovedTitlePayload ¶
type ContentApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ContentApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ContentApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ContentId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ContentId string `json:"content_id"`
} `json:"title_params"`
Type ContentApprovedTitlePayloadType `json:"type"`
}
ContentApprovedTitlePayload 内容审核通过
type ContentApprovedTitlePayloadTargetKind ¶
type ContentApprovedTitlePayloadTargetKind string
ContentApprovedTitlePayloadTargetKind defines model for ContentApprovedTitlePayload.Target.Kind.
const ( ContentApprovedTitlePayloadTargetKindComment ContentApprovedTitlePayloadTargetKind = "comment" ContentApprovedTitlePayloadTargetKindResource ContentApprovedTitlePayloadTargetKind = "resource" ContentApprovedTitlePayloadTargetKindReview ContentApprovedTitlePayloadTargetKind = "review" )
Defines values for ContentApprovedTitlePayloadTargetKind.
func (ContentApprovedTitlePayloadTargetKind) Valid ¶
func (e ContentApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ContentApprovedTitlePayloadTargetKind enum.
type ContentApprovedTitlePayloadTitleKey ¶
type ContentApprovedTitlePayloadTitleKey string
ContentApprovedTitlePayloadTitleKey defines model for ContentApprovedTitlePayload.TitleKey.
const (
ContentApprovedTitlePayloadTitleKeyNotificationsContentApproved ContentApprovedTitlePayloadTitleKey = "notifications.content.approved"
)
Defines values for ContentApprovedTitlePayloadTitleKey.
func (ContentApprovedTitlePayloadTitleKey) Valid ¶
func (e ContentApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ContentApprovedTitlePayloadTitleKey enum.
type ContentApprovedTitlePayloadType ¶
type ContentApprovedTitlePayloadType string
ContentApprovedTitlePayloadType defines model for ContentApprovedTitlePayload.Type.
const (
ContentApprovedTitlePayloadTypeBusiness ContentApprovedTitlePayloadType = "business"
)
Defines values for ContentApprovedTitlePayloadType.
func (ContentApprovedTitlePayloadType) Valid ¶
func (e ContentApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ContentApprovedTitlePayloadType enum.
type ContentRejectedTitlePayload ¶
type ContentRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ContentRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ContentRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ContentId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ContentId string `json:"content_id"`
} `json:"title_params"`
Type ContentRejectedTitlePayloadType `json:"type"`
}
ContentRejectedTitlePayload 内容审核驳回
type ContentRejectedTitlePayloadTargetKind ¶
type ContentRejectedTitlePayloadTargetKind string
ContentRejectedTitlePayloadTargetKind defines model for ContentRejectedTitlePayload.Target.Kind.
const ( ContentRejectedTitlePayloadTargetKindComment ContentRejectedTitlePayloadTargetKind = "comment" ContentRejectedTitlePayloadTargetKindResource ContentRejectedTitlePayloadTargetKind = "resource" ContentRejectedTitlePayloadTargetKindReview ContentRejectedTitlePayloadTargetKind = "review" )
Defines values for ContentRejectedTitlePayloadTargetKind.
func (ContentRejectedTitlePayloadTargetKind) Valid ¶
func (e ContentRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ContentRejectedTitlePayloadTargetKind enum.
type ContentRejectedTitlePayloadTitleKey ¶
type ContentRejectedTitlePayloadTitleKey string
ContentRejectedTitlePayloadTitleKey defines model for ContentRejectedTitlePayload.TitleKey.
const (
ContentRejectedTitlePayloadTitleKeyNotificationsContentRejected ContentRejectedTitlePayloadTitleKey = "notifications.content.rejected"
)
Defines values for ContentRejectedTitlePayloadTitleKey.
func (ContentRejectedTitlePayloadTitleKey) Valid ¶
func (e ContentRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ContentRejectedTitlePayloadTitleKey enum.
type ContentRejectedTitlePayloadType ¶
type ContentRejectedTitlePayloadType string
ContentRejectedTitlePayloadType defines model for ContentRejectedTitlePayload.Type.
const (
ContentRejectedTitlePayloadTypeBusiness ContentRejectedTitlePayloadType = "business"
)
Defines values for ContentRejectedTitlePayloadType.
func (ContentRejectedTitlePayloadType) Valid ¶
func (e ContentRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ContentRejectedTitlePayloadType enum.
type ContentRemovedTitlePayload ¶
type ContentRemovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ContentRemovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ContentRemovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ContentId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ContentId string `json:"content_id"`
} `json:"title_params"`
Type ContentRemovedTitlePayloadType `json:"type"`
}
ContentRemovedTitlePayload 内容下架
type ContentRemovedTitlePayloadTargetKind ¶
type ContentRemovedTitlePayloadTargetKind string
ContentRemovedTitlePayloadTargetKind defines model for ContentRemovedTitlePayload.Target.Kind.
const ( ContentRemovedTitlePayloadTargetKindComment ContentRemovedTitlePayloadTargetKind = "comment" ContentRemovedTitlePayloadTargetKindResource ContentRemovedTitlePayloadTargetKind = "resource" ContentRemovedTitlePayloadTargetKindReview ContentRemovedTitlePayloadTargetKind = "review" )
Defines values for ContentRemovedTitlePayloadTargetKind.
func (ContentRemovedTitlePayloadTargetKind) Valid ¶
func (e ContentRemovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ContentRemovedTitlePayloadTargetKind enum.
type ContentRemovedTitlePayloadTitleKey ¶
type ContentRemovedTitlePayloadTitleKey string
ContentRemovedTitlePayloadTitleKey defines model for ContentRemovedTitlePayload.TitleKey.
const (
ContentRemovedTitlePayloadTitleKeyNotificationsContentRemoved ContentRemovedTitlePayloadTitleKey = "notifications.content.removed"
)
Defines values for ContentRemovedTitlePayloadTitleKey.
func (ContentRemovedTitlePayloadTitleKey) Valid ¶
func (e ContentRemovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ContentRemovedTitlePayloadTitleKey enum.
type ContentRemovedTitlePayloadType ¶
type ContentRemovedTitlePayloadType string
ContentRemovedTitlePayloadType defines model for ContentRemovedTitlePayload.Type.
const (
ContentRemovedTitlePayloadTypeBusiness ContentRemovedTitlePayloadType = "business"
)
Defines values for ContentRemovedTitlePayloadType.
func (ContentRemovedTitlePayloadType) Valid ¶
func (e ContentRemovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ContentRemovedTitlePayloadType enum.
type GetPreferencesResponse ¶
type GetPreferencesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Preferences
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseGetPreferencesResponse ¶
func ParseGetPreferencesResponse(rsp *http.Response) (*GetPreferencesResponse, error)
ParseGetPreferencesResponse parses an HTTP response from a GetPreferencesWithResponse call
func (GetPreferencesResponse) ContentType ¶
func (r GetPreferencesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPreferencesResponse) GetBody ¶
func (r GetPreferencesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetPreferencesResponse) GetJSON200 ¶
func (r GetPreferencesResponse) GetJSON200() *Preferences
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetPreferencesResponse) GetJSON400 ¶
func (r GetPreferencesResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetPreferencesResponse) GetJSON401 ¶
func (r GetPreferencesResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetPreferencesResponse) GetJSON404 ¶
func (r GetPreferencesResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetPreferencesResponse) GetJSON503 ¶
func (r GetPreferencesResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetPreferencesResponse) Status ¶
func (r GetPreferencesResponse) Status() string
Status returns HTTPResponse.Status
func (GetPreferencesResponse) StatusCode ¶
func (r GetPreferencesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUnreadCountResponse ¶
type GetUnreadCountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Unread
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseGetUnreadCountResponse ¶
func ParseGetUnreadCountResponse(rsp *http.Response) (*GetUnreadCountResponse, error)
ParseGetUnreadCountResponse parses an HTTP response from a GetUnreadCountWithResponse call
func (GetUnreadCountResponse) ContentType ¶
func (r GetUnreadCountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUnreadCountResponse) GetBody ¶
func (r GetUnreadCountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUnreadCountResponse) GetJSON200 ¶
func (r GetUnreadCountResponse) GetJSON200() *Unread
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUnreadCountResponse) GetJSON400 ¶
func (r GetUnreadCountResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetUnreadCountResponse) GetJSON401 ¶
func (r GetUnreadCountResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetUnreadCountResponse) GetJSON404 ¶
func (r GetUnreadCountResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetUnreadCountResponse) GetJSON503 ¶
func (r GetUnreadCountResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetUnreadCountResponse) Status ¶
func (r GetUnreadCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetUnreadCountResponse) StatusCode ¶
func (r GetUnreadCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IdentityVerificationApprovedTitlePayload ¶
type IdentityVerificationApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind IdentityVerificationApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey IdentityVerificationApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// OperationId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
OperationId string `json:"operation_id"`
} `json:"title_params"`
Type IdentityVerificationApprovedTitlePayloadType `json:"type"`
}
IdentityVerificationApprovedTitlePayload 实名核验通过
type IdentityVerificationApprovedTitlePayloadTargetKind ¶
type IdentityVerificationApprovedTitlePayloadTargetKind string
IdentityVerificationApprovedTitlePayloadTargetKind defines model for IdentityVerificationApprovedTitlePayload.Target.Kind.
const (
IdentityVerificationApprovedTitlePayloadTargetKindVerificationOperation IdentityVerificationApprovedTitlePayloadTargetKind = "verification_operation"
)
Defines values for IdentityVerificationApprovedTitlePayloadTargetKind.
func (IdentityVerificationApprovedTitlePayloadTargetKind) Valid ¶
func (e IdentityVerificationApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the IdentityVerificationApprovedTitlePayloadTargetKind enum.
type IdentityVerificationApprovedTitlePayloadTitleKey ¶
type IdentityVerificationApprovedTitlePayloadTitleKey string
IdentityVerificationApprovedTitlePayloadTitleKey defines model for IdentityVerificationApprovedTitlePayload.TitleKey.
const (
IdentityVerificationApprovedTitlePayloadTitleKeyNotificationsIdentityVerificationApproved IdentityVerificationApprovedTitlePayloadTitleKey = "notifications.identity_verification.approved"
)
Defines values for IdentityVerificationApprovedTitlePayloadTitleKey.
func (IdentityVerificationApprovedTitlePayloadTitleKey) Valid ¶
func (e IdentityVerificationApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the IdentityVerificationApprovedTitlePayloadTitleKey enum.
type IdentityVerificationApprovedTitlePayloadType ¶
type IdentityVerificationApprovedTitlePayloadType string
IdentityVerificationApprovedTitlePayloadType defines model for IdentityVerificationApprovedTitlePayload.Type.
const (
IdentityVerificationApprovedTitlePayloadTypeAccount IdentityVerificationApprovedTitlePayloadType = "account"
)
Defines values for IdentityVerificationApprovedTitlePayloadType.
func (IdentityVerificationApprovedTitlePayloadType) Valid ¶
func (e IdentityVerificationApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the IdentityVerificationApprovedTitlePayloadType enum.
type IdentityVerificationRejectedTitlePayload ¶
type IdentityVerificationRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind IdentityVerificationRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey IdentityVerificationRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// OperationId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
OperationId string `json:"operation_id"`
} `json:"title_params"`
Type IdentityVerificationRejectedTitlePayloadType `json:"type"`
}
IdentityVerificationRejectedTitlePayload 实名核验驳回
type IdentityVerificationRejectedTitlePayloadTargetKind ¶
type IdentityVerificationRejectedTitlePayloadTargetKind string
IdentityVerificationRejectedTitlePayloadTargetKind defines model for IdentityVerificationRejectedTitlePayload.Target.Kind.
const (
IdentityVerificationRejectedTitlePayloadTargetKindVerificationOperation IdentityVerificationRejectedTitlePayloadTargetKind = "verification_operation"
)
Defines values for IdentityVerificationRejectedTitlePayloadTargetKind.
func (IdentityVerificationRejectedTitlePayloadTargetKind) Valid ¶
func (e IdentityVerificationRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the IdentityVerificationRejectedTitlePayloadTargetKind enum.
type IdentityVerificationRejectedTitlePayloadTitleKey ¶
type IdentityVerificationRejectedTitlePayloadTitleKey string
IdentityVerificationRejectedTitlePayloadTitleKey defines model for IdentityVerificationRejectedTitlePayload.TitleKey.
const (
IdentityVerificationRejectedTitlePayloadTitleKeyNotificationsIdentityVerificationRejected IdentityVerificationRejectedTitlePayloadTitleKey = "notifications.identity_verification.rejected"
)
Defines values for IdentityVerificationRejectedTitlePayloadTitleKey.
func (IdentityVerificationRejectedTitlePayloadTitleKey) Valid ¶
func (e IdentityVerificationRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the IdentityVerificationRejectedTitlePayloadTitleKey enum.
type IdentityVerificationRejectedTitlePayloadType ¶
type IdentityVerificationRejectedTitlePayloadType string
IdentityVerificationRejectedTitlePayloadType defines model for IdentityVerificationRejectedTitlePayload.Type.
const (
IdentityVerificationRejectedTitlePayloadTypeAccount IdentityVerificationRejectedTitlePayloadType = "account"
)
Defines values for IdentityVerificationRejectedTitlePayloadType.
func (IdentityVerificationRejectedTitlePayloadType) Valid ¶
func (e IdentityVerificationRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the IdentityVerificationRejectedTitlePayloadType enum.
type InteractionLikeTitlePayload ¶
type InteractionLikeTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind InteractionLikeTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey InteractionLikeTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ContentId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ContentId string `json:"content_id"`
} `json:"title_params"`
Type InteractionLikeTitlePayloadType `json:"type"`
}
InteractionLikeTitlePayload 收到点赞
type InteractionLikeTitlePayloadTargetKind ¶
type InteractionLikeTitlePayloadTargetKind string
InteractionLikeTitlePayloadTargetKind defines model for InteractionLikeTitlePayload.Target.Kind.
const ( InteractionLikeTitlePayloadTargetKindComment InteractionLikeTitlePayloadTargetKind = "comment" InteractionLikeTitlePayloadTargetKindResource InteractionLikeTitlePayloadTargetKind = "resource" InteractionLikeTitlePayloadTargetKindReview InteractionLikeTitlePayloadTargetKind = "review" )
Defines values for InteractionLikeTitlePayloadTargetKind.
func (InteractionLikeTitlePayloadTargetKind) Valid ¶
func (e InteractionLikeTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the InteractionLikeTitlePayloadTargetKind enum.
type InteractionLikeTitlePayloadTitleKey ¶
type InteractionLikeTitlePayloadTitleKey string
InteractionLikeTitlePayloadTitleKey defines model for InteractionLikeTitlePayload.TitleKey.
const (
InteractionLikeTitlePayloadTitleKeyNotificationsInteractionLike InteractionLikeTitlePayloadTitleKey = "notifications.interaction.like"
)
Defines values for InteractionLikeTitlePayloadTitleKey.
func (InteractionLikeTitlePayloadTitleKey) Valid ¶
func (e InteractionLikeTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the InteractionLikeTitlePayloadTitleKey enum.
type InteractionLikeTitlePayloadType ¶
type InteractionLikeTitlePayloadType string
InteractionLikeTitlePayloadType defines model for InteractionLikeTitlePayload.Type.
const (
InteractionLikeTitlePayloadTypeInteraction InteractionLikeTitlePayloadType = "interaction"
)
Defines values for InteractionLikeTitlePayloadType.
func (InteractionLikeTitlePayloadType) Valid ¶
func (e InteractionLikeTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the InteractionLikeTitlePayloadType enum.
type InteractionReplyTitlePayload ¶
type InteractionReplyTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind InteractionReplyTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey InteractionReplyTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ContentId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ContentId string `json:"content_id"`
} `json:"title_params"`
Type InteractionReplyTitlePayloadType `json:"type"`
}
InteractionReplyTitlePayload 收到回复
type InteractionReplyTitlePayloadTargetKind ¶
type InteractionReplyTitlePayloadTargetKind string
InteractionReplyTitlePayloadTargetKind defines model for InteractionReplyTitlePayload.Target.Kind.
const ( InteractionReplyTitlePayloadTargetKindComment InteractionReplyTitlePayloadTargetKind = "comment" InteractionReplyTitlePayloadTargetKindResource InteractionReplyTitlePayloadTargetKind = "resource" InteractionReplyTitlePayloadTargetKindReview InteractionReplyTitlePayloadTargetKind = "review" )
Defines values for InteractionReplyTitlePayloadTargetKind.
func (InteractionReplyTitlePayloadTargetKind) Valid ¶
func (e InteractionReplyTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the InteractionReplyTitlePayloadTargetKind enum.
type InteractionReplyTitlePayloadTitleKey ¶
type InteractionReplyTitlePayloadTitleKey string
InteractionReplyTitlePayloadTitleKey defines model for InteractionReplyTitlePayload.TitleKey.
const (
InteractionReplyTitlePayloadTitleKeyNotificationsInteractionReply InteractionReplyTitlePayloadTitleKey = "notifications.interaction.reply"
)
Defines values for InteractionReplyTitlePayloadTitleKey.
func (InteractionReplyTitlePayloadTitleKey) Valid ¶
func (e InteractionReplyTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the InteractionReplyTitlePayloadTitleKey enum.
type InteractionReplyTitlePayloadType ¶
type InteractionReplyTitlePayloadType string
InteractionReplyTitlePayloadType defines model for InteractionReplyTitlePayload.Type.
const (
InteractionReplyTitlePayloadTypeInteraction InteractionReplyTitlePayloadType = "interaction"
)
Defines values for InteractionReplyTitlePayloadType.
func (InteractionReplyTitlePayloadType) Valid ¶
func (e InteractionReplyTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the InteractionReplyTitlePayloadType enum.
type ListNotificationsParams ¶
type ListNotificationsParams struct {
// Cursor 不透明游标,按创建时间和 ID 倒序;不包含快照隔离保证。
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListNotificationsParams defines parameters for ListNotifications.
type ListNotificationsResponse ¶
type ListNotificationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Page
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseListNotificationsResponse ¶
func ParseListNotificationsResponse(rsp *http.Response) (*ListNotificationsResponse, error)
ParseListNotificationsResponse parses an HTTP response from a ListNotificationsWithResponse call
func (ListNotificationsResponse) ContentType ¶
func (r ListNotificationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListNotificationsResponse) GetBody ¶
func (r ListNotificationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListNotificationsResponse) GetJSON200 ¶
func (r ListNotificationsResponse) GetJSON200() *Page
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListNotificationsResponse) GetJSON400 ¶
func (r ListNotificationsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListNotificationsResponse) GetJSON401 ¶
func (r ListNotificationsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListNotificationsResponse) GetJSON404 ¶
func (r ListNotificationsResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListNotificationsResponse) GetJSON503 ¶
func (r ListNotificationsResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListNotificationsResponse) Status ¶
func (r ListNotificationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationsResponse) StatusCode ¶
func (r ListNotificationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkAllReadResponse ¶
type MarkAllReadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseMarkAllReadResponse ¶
func ParseMarkAllReadResponse(rsp *http.Response) (*MarkAllReadResponse, error)
ParseMarkAllReadResponse parses an HTTP response from a MarkAllReadWithResponse call
func (MarkAllReadResponse) ContentType ¶
func (r MarkAllReadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MarkAllReadResponse) GetBody ¶
func (r MarkAllReadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (MarkAllReadResponse) GetJSON400 ¶
func (r MarkAllReadResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (MarkAllReadResponse) GetJSON401 ¶
func (r MarkAllReadResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (MarkAllReadResponse) GetJSON404 ¶
func (r MarkAllReadResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (MarkAllReadResponse) GetJSON503 ¶
func (r MarkAllReadResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (MarkAllReadResponse) Status ¶
func (r MarkAllReadResponse) Status() string
Status returns HTTPResponse.Status
func (MarkAllReadResponse) StatusCode ¶
func (r MarkAllReadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkReadResponse ¶
type MarkReadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseMarkReadResponse ¶
func ParseMarkReadResponse(rsp *http.Response) (*MarkReadResponse, error)
ParseMarkReadResponse parses an HTTP response from a MarkReadWithResponse call
func (MarkReadResponse) ContentType ¶
func (r MarkReadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MarkReadResponse) GetBody ¶
func (r MarkReadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (MarkReadResponse) GetJSON400 ¶
func (r MarkReadResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (MarkReadResponse) GetJSON401 ¶
func (r MarkReadResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (MarkReadResponse) GetJSON404 ¶
func (r MarkReadResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (MarkReadResponse) GetJSON503 ¶
func (r MarkReadResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (MarkReadResponse) Status ¶
func (r MarkReadResponse) Status() string
Status returns HTTPResponse.Status
func (MarkReadResponse) StatusCode ¶
func (r MarkReadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Notification ¶
type Notification struct {
Count int `json:"count"`
CreatedAt time.Time `json:"created_at"`
Id string `json:"id"`
ReadAt *time.Time `json:"read_at"`
SourceModule string `json:"source_module"`
Target Target `json:"target"`
TargetStatus NotificationTargetStatus `json:"target_status"`
// TitleKey 封闭标题键目录,详见 x-title-catalog 和各 TitlePayload。互动复数参数 count 使用通知顶层 count(整数),禁止由 Consumer 传入 title_params。
TitleKey TitleKey `json:"title_key"`
// TitleParams 必须满足 title_key 对应的封闭参数对象;只包含业务编号。详见 x-title-catalog。
TitleParams map[string]string `json:"title_params"`
Type NotificationType `json:"type"`
// contains filtered or unexported fields
}
Notification defines model for Notification.
func (Notification) AsContentApprovedTitlePayload ¶
func (t Notification) AsContentApprovedTitlePayload() (ContentApprovedTitlePayload, error)
AsContentApprovedTitlePayload returns the union data inside the Notification as a ContentApprovedTitlePayload
func (Notification) AsContentRejectedTitlePayload ¶
func (t Notification) AsContentRejectedTitlePayload() (ContentRejectedTitlePayload, error)
AsContentRejectedTitlePayload returns the union data inside the Notification as a ContentRejectedTitlePayload
func (Notification) AsContentRemovedTitlePayload ¶
func (t Notification) AsContentRemovedTitlePayload() (ContentRemovedTitlePayload, error)
AsContentRemovedTitlePayload returns the union data inside the Notification as a ContentRemovedTitlePayload
func (Notification) AsIdentityVerificationApprovedTitlePayload ¶
func (t Notification) AsIdentityVerificationApprovedTitlePayload() (IdentityVerificationApprovedTitlePayload, error)
AsIdentityVerificationApprovedTitlePayload returns the union data inside the Notification as a IdentityVerificationApprovedTitlePayload
func (Notification) AsIdentityVerificationRejectedTitlePayload ¶
func (t Notification) AsIdentityVerificationRejectedTitlePayload() (IdentityVerificationRejectedTitlePayload, error)
AsIdentityVerificationRejectedTitlePayload returns the union data inside the Notification as a IdentityVerificationRejectedTitlePayload
func (Notification) AsInteractionLikeTitlePayload ¶
func (t Notification) AsInteractionLikeTitlePayload() (InteractionLikeTitlePayload, error)
AsInteractionLikeTitlePayload returns the union data inside the Notification as a InteractionLikeTitlePayload
func (Notification) AsInteractionReplyTitlePayload ¶
func (t Notification) AsInteractionReplyTitlePayload() (InteractionReplyTitlePayload, error)
AsInteractionReplyTitlePayload returns the union data inside the Notification as a InteractionReplyTitlePayload
func (Notification) AsReportApprovedTitlePayload ¶
func (t Notification) AsReportApprovedTitlePayload() (ReportApprovedTitlePayload, error)
AsReportApprovedTitlePayload returns the union data inside the Notification as a ReportApprovedTitlePayload
func (Notification) AsReportRejectedTitlePayload ¶
func (t Notification) AsReportRejectedTitlePayload() (ReportRejectedTitlePayload, error)
AsReportRejectedTitlePayload returns the union data inside the Notification as a ReportRejectedTitlePayload
func (Notification) AsResourceRemovalApprovedTitlePayload ¶
func (t Notification) AsResourceRemovalApprovedTitlePayload() (ResourceRemovalApprovedTitlePayload, error)
AsResourceRemovalApprovedTitlePayload returns the union data inside the Notification as a ResourceRemovalApprovedTitlePayload
func (Notification) AsResourceRemovalRejectedTitlePayload ¶
func (t Notification) AsResourceRemovalRejectedTitlePayload() (ResourceRemovalRejectedTitlePayload, error)
AsResourceRemovalRejectedTitlePayload returns the union data inside the Notification as a ResourceRemovalRejectedTitlePayload
func (Notification) AsStudentVerificationApprovedTitlePayload ¶
func (t Notification) AsStudentVerificationApprovedTitlePayload() (StudentVerificationApprovedTitlePayload, error)
AsStudentVerificationApprovedTitlePayload returns the union data inside the Notification as a StudentVerificationApprovedTitlePayload
func (Notification) AsStudentVerificationRejectedTitlePayload ¶
func (t Notification) AsStudentVerificationRejectedTitlePayload() (StudentVerificationRejectedTitlePayload, error)
AsStudentVerificationRejectedTitlePayload returns the union data inside the Notification as a StudentVerificationRejectedTitlePayload
func (Notification) AsStudentVerificationRevokedTitlePayload ¶
func (t Notification) AsStudentVerificationRevokedTitlePayload() (StudentVerificationRevokedTitlePayload, error)
AsStudentVerificationRevokedTitlePayload returns the union data inside the Notification as a StudentVerificationRevokedTitlePayload
func (Notification) AsSystemAccountTitlePayload ¶
func (t Notification) AsSystemAccountTitlePayload() (SystemAccountTitlePayload, error)
AsSystemAccountTitlePayload returns the union data inside the Notification as a SystemAccountTitlePayload
func (Notification) AsSystemNoticeTitlePayload ¶
func (t Notification) AsSystemNoticeTitlePayload() (SystemNoticeTitlePayload, error)
AsSystemNoticeTitlePayload returns the union data inside the Notification as a SystemNoticeTitlePayload
func (Notification) AsSystemSecurityTitlePayload ¶
func (t Notification) AsSystemSecurityTitlePayload() (SystemSecurityTitlePayload, error)
AsSystemSecurityTitlePayload returns the union data inside the Notification as a SystemSecurityTitlePayload
func (Notification) AsTeacherVerificationApprovedTitlePayload ¶
func (t Notification) AsTeacherVerificationApprovedTitlePayload() (TeacherVerificationApprovedTitlePayload, error)
AsTeacherVerificationApprovedTitlePayload returns the union data inside the Notification as a TeacherVerificationApprovedTitlePayload
func (Notification) AsTeacherVerificationRejectedTitlePayload ¶
func (t Notification) AsTeacherVerificationRejectedTitlePayload() (TeacherVerificationRejectedTitlePayload, error)
AsTeacherVerificationRejectedTitlePayload returns the union data inside the Notification as a TeacherVerificationRejectedTitlePayload
func (Notification) AsVerificationDeletionApprovedTitlePayload ¶
func (t Notification) AsVerificationDeletionApprovedTitlePayload() (VerificationDeletionApprovedTitlePayload, error)
AsVerificationDeletionApprovedTitlePayload returns the union data inside the Notification as a VerificationDeletionApprovedTitlePayload
func (Notification) AsVerificationDeletionRejectedTitlePayload ¶
func (t Notification) AsVerificationDeletionRejectedTitlePayload() (VerificationDeletionRejectedTitlePayload, error)
AsVerificationDeletionRejectedTitlePayload returns the union data inside the Notification as a VerificationDeletionRejectedTitlePayload
func (Notification) AsVerificationRevocationApprovedTitlePayload ¶
func (t Notification) AsVerificationRevocationApprovedTitlePayload() (VerificationRevocationApprovedTitlePayload, error)
AsVerificationRevocationApprovedTitlePayload returns the union data inside the Notification as a VerificationRevocationApprovedTitlePayload
func (Notification) AsVerificationRevocationRejectedTitlePayload ¶
func (t Notification) AsVerificationRevocationRejectedTitlePayload() (VerificationRevocationRejectedTitlePayload, error)
AsVerificationRevocationRejectedTitlePayload returns the union data inside the Notification as a VerificationRevocationRejectedTitlePayload
func (*Notification) FromContentApprovedTitlePayload ¶
func (t *Notification) FromContentApprovedTitlePayload(v ContentApprovedTitlePayload) error
FromContentApprovedTitlePayload overwrites any union data inside the Notification as the provided ContentApprovedTitlePayload
func (*Notification) FromContentRejectedTitlePayload ¶
func (t *Notification) FromContentRejectedTitlePayload(v ContentRejectedTitlePayload) error
FromContentRejectedTitlePayload overwrites any union data inside the Notification as the provided ContentRejectedTitlePayload
func (*Notification) FromContentRemovedTitlePayload ¶
func (t *Notification) FromContentRemovedTitlePayload(v ContentRemovedTitlePayload) error
FromContentRemovedTitlePayload overwrites any union data inside the Notification as the provided ContentRemovedTitlePayload
func (*Notification) FromIdentityVerificationApprovedTitlePayload ¶
func (t *Notification) FromIdentityVerificationApprovedTitlePayload(v IdentityVerificationApprovedTitlePayload) error
FromIdentityVerificationApprovedTitlePayload overwrites any union data inside the Notification as the provided IdentityVerificationApprovedTitlePayload
func (*Notification) FromIdentityVerificationRejectedTitlePayload ¶
func (t *Notification) FromIdentityVerificationRejectedTitlePayload(v IdentityVerificationRejectedTitlePayload) error
FromIdentityVerificationRejectedTitlePayload overwrites any union data inside the Notification as the provided IdentityVerificationRejectedTitlePayload
func (*Notification) FromInteractionLikeTitlePayload ¶
func (t *Notification) FromInteractionLikeTitlePayload(v InteractionLikeTitlePayload) error
FromInteractionLikeTitlePayload overwrites any union data inside the Notification as the provided InteractionLikeTitlePayload
func (*Notification) FromInteractionReplyTitlePayload ¶
func (t *Notification) FromInteractionReplyTitlePayload(v InteractionReplyTitlePayload) error
FromInteractionReplyTitlePayload overwrites any union data inside the Notification as the provided InteractionReplyTitlePayload
func (*Notification) FromReportApprovedTitlePayload ¶
func (t *Notification) FromReportApprovedTitlePayload(v ReportApprovedTitlePayload) error
FromReportApprovedTitlePayload overwrites any union data inside the Notification as the provided ReportApprovedTitlePayload
func (*Notification) FromReportRejectedTitlePayload ¶
func (t *Notification) FromReportRejectedTitlePayload(v ReportRejectedTitlePayload) error
FromReportRejectedTitlePayload overwrites any union data inside the Notification as the provided ReportRejectedTitlePayload
func (*Notification) FromResourceRemovalApprovedTitlePayload ¶
func (t *Notification) FromResourceRemovalApprovedTitlePayload(v ResourceRemovalApprovedTitlePayload) error
FromResourceRemovalApprovedTitlePayload overwrites any union data inside the Notification as the provided ResourceRemovalApprovedTitlePayload
func (*Notification) FromResourceRemovalRejectedTitlePayload ¶
func (t *Notification) FromResourceRemovalRejectedTitlePayload(v ResourceRemovalRejectedTitlePayload) error
FromResourceRemovalRejectedTitlePayload overwrites any union data inside the Notification as the provided ResourceRemovalRejectedTitlePayload
func (*Notification) FromStudentVerificationApprovedTitlePayload ¶
func (t *Notification) FromStudentVerificationApprovedTitlePayload(v StudentVerificationApprovedTitlePayload) error
FromStudentVerificationApprovedTitlePayload overwrites any union data inside the Notification as the provided StudentVerificationApprovedTitlePayload
func (*Notification) FromStudentVerificationRejectedTitlePayload ¶
func (t *Notification) FromStudentVerificationRejectedTitlePayload(v StudentVerificationRejectedTitlePayload) error
FromStudentVerificationRejectedTitlePayload overwrites any union data inside the Notification as the provided StudentVerificationRejectedTitlePayload
func (*Notification) FromStudentVerificationRevokedTitlePayload ¶
func (t *Notification) FromStudentVerificationRevokedTitlePayload(v StudentVerificationRevokedTitlePayload) error
FromStudentVerificationRevokedTitlePayload overwrites any union data inside the Notification as the provided StudentVerificationRevokedTitlePayload
func (*Notification) FromSystemAccountTitlePayload ¶
func (t *Notification) FromSystemAccountTitlePayload(v SystemAccountTitlePayload) error
FromSystemAccountTitlePayload overwrites any union data inside the Notification as the provided SystemAccountTitlePayload
func (*Notification) FromSystemNoticeTitlePayload ¶
func (t *Notification) FromSystemNoticeTitlePayload(v SystemNoticeTitlePayload) error
FromSystemNoticeTitlePayload overwrites any union data inside the Notification as the provided SystemNoticeTitlePayload
func (*Notification) FromSystemSecurityTitlePayload ¶
func (t *Notification) FromSystemSecurityTitlePayload(v SystemSecurityTitlePayload) error
FromSystemSecurityTitlePayload overwrites any union data inside the Notification as the provided SystemSecurityTitlePayload
func (*Notification) FromTeacherVerificationApprovedTitlePayload ¶
func (t *Notification) FromTeacherVerificationApprovedTitlePayload(v TeacherVerificationApprovedTitlePayload) error
FromTeacherVerificationApprovedTitlePayload overwrites any union data inside the Notification as the provided TeacherVerificationApprovedTitlePayload
func (*Notification) FromTeacherVerificationRejectedTitlePayload ¶
func (t *Notification) FromTeacherVerificationRejectedTitlePayload(v TeacherVerificationRejectedTitlePayload) error
FromTeacherVerificationRejectedTitlePayload overwrites any union data inside the Notification as the provided TeacherVerificationRejectedTitlePayload
func (*Notification) FromVerificationDeletionApprovedTitlePayload ¶
func (t *Notification) FromVerificationDeletionApprovedTitlePayload(v VerificationDeletionApprovedTitlePayload) error
FromVerificationDeletionApprovedTitlePayload overwrites any union data inside the Notification as the provided VerificationDeletionApprovedTitlePayload
func (*Notification) FromVerificationDeletionRejectedTitlePayload ¶
func (t *Notification) FromVerificationDeletionRejectedTitlePayload(v VerificationDeletionRejectedTitlePayload) error
FromVerificationDeletionRejectedTitlePayload overwrites any union data inside the Notification as the provided VerificationDeletionRejectedTitlePayload
func (*Notification) FromVerificationRevocationApprovedTitlePayload ¶
func (t *Notification) FromVerificationRevocationApprovedTitlePayload(v VerificationRevocationApprovedTitlePayload) error
FromVerificationRevocationApprovedTitlePayload overwrites any union data inside the Notification as the provided VerificationRevocationApprovedTitlePayload
func (*Notification) FromVerificationRevocationRejectedTitlePayload ¶
func (t *Notification) FromVerificationRevocationRejectedTitlePayload(v VerificationRevocationRejectedTitlePayload) error
FromVerificationRevocationRejectedTitlePayload overwrites any union data inside the Notification as the provided VerificationRevocationRejectedTitlePayload
func (Notification) MarshalJSON ¶
func (t Notification) MarshalJSON() ([]byte, error)
func (*Notification) MergeContentApprovedTitlePayload ¶
func (t *Notification) MergeContentApprovedTitlePayload(v ContentApprovedTitlePayload) error
MergeContentApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided ContentApprovedTitlePayload
func (*Notification) MergeContentRejectedTitlePayload ¶
func (t *Notification) MergeContentRejectedTitlePayload(v ContentRejectedTitlePayload) error
MergeContentRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided ContentRejectedTitlePayload
func (*Notification) MergeContentRemovedTitlePayload ¶
func (t *Notification) MergeContentRemovedTitlePayload(v ContentRemovedTitlePayload) error
MergeContentRemovedTitlePayload performs a merge with any union data inside the Notification, using the provided ContentRemovedTitlePayload
func (*Notification) MergeIdentityVerificationApprovedTitlePayload ¶
func (t *Notification) MergeIdentityVerificationApprovedTitlePayload(v IdentityVerificationApprovedTitlePayload) error
MergeIdentityVerificationApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided IdentityVerificationApprovedTitlePayload
func (*Notification) MergeIdentityVerificationRejectedTitlePayload ¶
func (t *Notification) MergeIdentityVerificationRejectedTitlePayload(v IdentityVerificationRejectedTitlePayload) error
MergeIdentityVerificationRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided IdentityVerificationRejectedTitlePayload
func (*Notification) MergeInteractionLikeTitlePayload ¶
func (t *Notification) MergeInteractionLikeTitlePayload(v InteractionLikeTitlePayload) error
MergeInteractionLikeTitlePayload performs a merge with any union data inside the Notification, using the provided InteractionLikeTitlePayload
func (*Notification) MergeInteractionReplyTitlePayload ¶
func (t *Notification) MergeInteractionReplyTitlePayload(v InteractionReplyTitlePayload) error
MergeInteractionReplyTitlePayload performs a merge with any union data inside the Notification, using the provided InteractionReplyTitlePayload
func (*Notification) MergeReportApprovedTitlePayload ¶
func (t *Notification) MergeReportApprovedTitlePayload(v ReportApprovedTitlePayload) error
MergeReportApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided ReportApprovedTitlePayload
func (*Notification) MergeReportRejectedTitlePayload ¶
func (t *Notification) MergeReportRejectedTitlePayload(v ReportRejectedTitlePayload) error
MergeReportRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided ReportRejectedTitlePayload
func (*Notification) MergeResourceRemovalApprovedTitlePayload ¶
func (t *Notification) MergeResourceRemovalApprovedTitlePayload(v ResourceRemovalApprovedTitlePayload) error
MergeResourceRemovalApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided ResourceRemovalApprovedTitlePayload
func (*Notification) MergeResourceRemovalRejectedTitlePayload ¶
func (t *Notification) MergeResourceRemovalRejectedTitlePayload(v ResourceRemovalRejectedTitlePayload) error
MergeResourceRemovalRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided ResourceRemovalRejectedTitlePayload
func (*Notification) MergeStudentVerificationApprovedTitlePayload ¶
func (t *Notification) MergeStudentVerificationApprovedTitlePayload(v StudentVerificationApprovedTitlePayload) error
MergeStudentVerificationApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided StudentVerificationApprovedTitlePayload
func (*Notification) MergeStudentVerificationRejectedTitlePayload ¶
func (t *Notification) MergeStudentVerificationRejectedTitlePayload(v StudentVerificationRejectedTitlePayload) error
MergeStudentVerificationRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided StudentVerificationRejectedTitlePayload
func (*Notification) MergeStudentVerificationRevokedTitlePayload ¶
func (t *Notification) MergeStudentVerificationRevokedTitlePayload(v StudentVerificationRevokedTitlePayload) error
MergeStudentVerificationRevokedTitlePayload performs a merge with any union data inside the Notification, using the provided StudentVerificationRevokedTitlePayload
func (*Notification) MergeSystemAccountTitlePayload ¶
func (t *Notification) MergeSystemAccountTitlePayload(v SystemAccountTitlePayload) error
MergeSystemAccountTitlePayload performs a merge with any union data inside the Notification, using the provided SystemAccountTitlePayload
func (*Notification) MergeSystemNoticeTitlePayload ¶
func (t *Notification) MergeSystemNoticeTitlePayload(v SystemNoticeTitlePayload) error
MergeSystemNoticeTitlePayload performs a merge with any union data inside the Notification, using the provided SystemNoticeTitlePayload
func (*Notification) MergeSystemSecurityTitlePayload ¶
func (t *Notification) MergeSystemSecurityTitlePayload(v SystemSecurityTitlePayload) error
MergeSystemSecurityTitlePayload performs a merge with any union data inside the Notification, using the provided SystemSecurityTitlePayload
func (*Notification) MergeTeacherVerificationApprovedTitlePayload ¶
func (t *Notification) MergeTeacherVerificationApprovedTitlePayload(v TeacherVerificationApprovedTitlePayload) error
MergeTeacherVerificationApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided TeacherVerificationApprovedTitlePayload
func (*Notification) MergeTeacherVerificationRejectedTitlePayload ¶
func (t *Notification) MergeTeacherVerificationRejectedTitlePayload(v TeacherVerificationRejectedTitlePayload) error
MergeTeacherVerificationRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided TeacherVerificationRejectedTitlePayload
func (*Notification) MergeVerificationDeletionApprovedTitlePayload ¶
func (t *Notification) MergeVerificationDeletionApprovedTitlePayload(v VerificationDeletionApprovedTitlePayload) error
MergeVerificationDeletionApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided VerificationDeletionApprovedTitlePayload
func (*Notification) MergeVerificationDeletionRejectedTitlePayload ¶
func (t *Notification) MergeVerificationDeletionRejectedTitlePayload(v VerificationDeletionRejectedTitlePayload) error
MergeVerificationDeletionRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided VerificationDeletionRejectedTitlePayload
func (*Notification) MergeVerificationRevocationApprovedTitlePayload ¶
func (t *Notification) MergeVerificationRevocationApprovedTitlePayload(v VerificationRevocationApprovedTitlePayload) error
MergeVerificationRevocationApprovedTitlePayload performs a merge with any union data inside the Notification, using the provided VerificationRevocationApprovedTitlePayload
func (*Notification) MergeVerificationRevocationRejectedTitlePayload ¶
func (t *Notification) MergeVerificationRevocationRejectedTitlePayload(v VerificationRevocationRejectedTitlePayload) error
MergeVerificationRevocationRejectedTitlePayload performs a merge with any union data inside the Notification, using the provided VerificationRevocationRejectedTitlePayload
func (*Notification) UnmarshalJSON ¶
func (t *Notification) UnmarshalJSON(b []byte) error
type NotificationTargetStatus ¶
type NotificationTargetStatus string
NotificationTargetStatus defines model for Notification.TargetStatus.
const ( Accessible NotificationTargetStatus = "accessible" Inaccessible NotificationTargetStatus = "inaccessible" )
Defines values for NotificationTargetStatus.
func (NotificationTargetStatus) Valid ¶
func (e NotificationTargetStatus) Valid() bool
Valid indicates whether the value is a known member of the NotificationTargetStatus enum.
type NotificationType ¶
type NotificationType string
NotificationType defines model for Notification.Type.
const ( NotificationTypeAccount NotificationType = "account" NotificationTypeBusiness NotificationType = "business" NotificationTypeInteraction NotificationType = "interaction" NotificationTypeSecurity NotificationType = "security" )
Defines values for NotificationType.
func (NotificationType) Valid ¶
func (e NotificationType) Valid() bool
Valid indicates whether the value is a known member of the NotificationType enum.
type Page ¶
type Page struct {
Items []Notification `json:"items"`
NextCursor string `json:"next_cursor"`
}
Page defines model for Page.
type Preferences ¶
type Preferences struct {
InteractionEnabled bool `json:"interaction_enabled"`
}
Preferences defines model for Preferences.
type ReportApprovedTitlePayload ¶
type ReportApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ReportApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ReportApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ReportId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ReportId string `json:"report_id"`
} `json:"title_params"`
Type ReportApprovedTitlePayloadType `json:"type"`
}
ReportApprovedTitlePayload 举报处理通过
type ReportApprovedTitlePayloadTargetKind ¶
type ReportApprovedTitlePayloadTargetKind string
ReportApprovedTitlePayloadTargetKind defines model for ReportApprovedTitlePayload.Target.Kind.
const (
ReportApprovedTitlePayloadTargetKindReport ReportApprovedTitlePayloadTargetKind = "report"
)
Defines values for ReportApprovedTitlePayloadTargetKind.
func (ReportApprovedTitlePayloadTargetKind) Valid ¶
func (e ReportApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ReportApprovedTitlePayloadTargetKind enum.
type ReportApprovedTitlePayloadTitleKey ¶
type ReportApprovedTitlePayloadTitleKey string
ReportApprovedTitlePayloadTitleKey defines model for ReportApprovedTitlePayload.TitleKey.
const (
ReportApprovedTitlePayloadTitleKeyNotificationsReportApproved ReportApprovedTitlePayloadTitleKey = "notifications.report.approved"
)
Defines values for ReportApprovedTitlePayloadTitleKey.
func (ReportApprovedTitlePayloadTitleKey) Valid ¶
func (e ReportApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ReportApprovedTitlePayloadTitleKey enum.
type ReportApprovedTitlePayloadType ¶
type ReportApprovedTitlePayloadType string
ReportApprovedTitlePayloadType defines model for ReportApprovedTitlePayload.Type.
const (
ReportApprovedTitlePayloadTypeBusiness ReportApprovedTitlePayloadType = "business"
)
Defines values for ReportApprovedTitlePayloadType.
func (ReportApprovedTitlePayloadType) Valid ¶
func (e ReportApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ReportApprovedTitlePayloadType enum.
type ReportRejectedTitlePayload ¶
type ReportRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ReportRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ReportRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ReportId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ReportId string `json:"report_id"`
} `json:"title_params"`
Type ReportRejectedTitlePayloadType `json:"type"`
}
ReportRejectedTitlePayload 举报处理驳回
type ReportRejectedTitlePayloadTargetKind ¶
type ReportRejectedTitlePayloadTargetKind string
ReportRejectedTitlePayloadTargetKind defines model for ReportRejectedTitlePayload.Target.Kind.
const (
ReportRejectedTitlePayloadTargetKindReport ReportRejectedTitlePayloadTargetKind = "report"
)
Defines values for ReportRejectedTitlePayloadTargetKind.
func (ReportRejectedTitlePayloadTargetKind) Valid ¶
func (e ReportRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ReportRejectedTitlePayloadTargetKind enum.
type ReportRejectedTitlePayloadTitleKey ¶
type ReportRejectedTitlePayloadTitleKey string
ReportRejectedTitlePayloadTitleKey defines model for ReportRejectedTitlePayload.TitleKey.
const (
ReportRejectedTitlePayloadTitleKeyNotificationsReportRejected ReportRejectedTitlePayloadTitleKey = "notifications.report.rejected"
)
Defines values for ReportRejectedTitlePayloadTitleKey.
func (ReportRejectedTitlePayloadTitleKey) Valid ¶
func (e ReportRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ReportRejectedTitlePayloadTitleKey enum.
type ReportRejectedTitlePayloadType ¶
type ReportRejectedTitlePayloadType string
ReportRejectedTitlePayloadType defines model for ReportRejectedTitlePayload.Type.
const (
ReportRejectedTitlePayloadTypeBusiness ReportRejectedTitlePayloadType = "business"
)
Defines values for ReportRejectedTitlePayloadType.
func (ReportRejectedTitlePayloadType) Valid ¶
func (e ReportRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ReportRejectedTitlePayloadType enum.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResourceRemovalApprovedTitlePayload ¶
type ResourceRemovalApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ResourceRemovalApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ResourceRemovalApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// RequestId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
RequestId string `json:"request_id"`
} `json:"title_params"`
Type ResourceRemovalApprovedTitlePayloadType `json:"type"`
}
ResourceRemovalApprovedTitlePayload 资料下架申请通过
type ResourceRemovalApprovedTitlePayloadTargetKind ¶
type ResourceRemovalApprovedTitlePayloadTargetKind string
ResourceRemovalApprovedTitlePayloadTargetKind defines model for ResourceRemovalApprovedTitlePayload.Target.Kind.
const (
ResourceRemovalApprovedTitlePayloadTargetKindResourceRemovalRequest ResourceRemovalApprovedTitlePayloadTargetKind = "resource_removal_request"
)
Defines values for ResourceRemovalApprovedTitlePayloadTargetKind.
func (ResourceRemovalApprovedTitlePayloadTargetKind) Valid ¶
func (e ResourceRemovalApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ResourceRemovalApprovedTitlePayloadTargetKind enum.
type ResourceRemovalApprovedTitlePayloadTitleKey ¶
type ResourceRemovalApprovedTitlePayloadTitleKey string
ResourceRemovalApprovedTitlePayloadTitleKey defines model for ResourceRemovalApprovedTitlePayload.TitleKey.
const (
ResourceRemovalApprovedTitlePayloadTitleKeyNotificationsResourceRemovalApproved ResourceRemovalApprovedTitlePayloadTitleKey = "notifications.resource_removal.approved"
)
Defines values for ResourceRemovalApprovedTitlePayloadTitleKey.
func (ResourceRemovalApprovedTitlePayloadTitleKey) Valid ¶
func (e ResourceRemovalApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ResourceRemovalApprovedTitlePayloadTitleKey enum.
type ResourceRemovalApprovedTitlePayloadType ¶
type ResourceRemovalApprovedTitlePayloadType string
ResourceRemovalApprovedTitlePayloadType defines model for ResourceRemovalApprovedTitlePayload.Type.
const (
ResourceRemovalApprovedTitlePayloadTypeBusiness ResourceRemovalApprovedTitlePayloadType = "business"
)
Defines values for ResourceRemovalApprovedTitlePayloadType.
func (ResourceRemovalApprovedTitlePayloadType) Valid ¶
func (e ResourceRemovalApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ResourceRemovalApprovedTitlePayloadType enum.
type ResourceRemovalRejectedTitlePayload ¶
type ResourceRemovalRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind ResourceRemovalRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey ResourceRemovalRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// RequestId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
RequestId string `json:"request_id"`
} `json:"title_params"`
Type ResourceRemovalRejectedTitlePayloadType `json:"type"`
}
ResourceRemovalRejectedTitlePayload 资料下架申请驳回
type ResourceRemovalRejectedTitlePayloadTargetKind ¶
type ResourceRemovalRejectedTitlePayloadTargetKind string
ResourceRemovalRejectedTitlePayloadTargetKind defines model for ResourceRemovalRejectedTitlePayload.Target.Kind.
const (
ResourceRemovalRejectedTitlePayloadTargetKindResourceRemovalRequest ResourceRemovalRejectedTitlePayloadTargetKind = "resource_removal_request"
)
Defines values for ResourceRemovalRejectedTitlePayloadTargetKind.
func (ResourceRemovalRejectedTitlePayloadTargetKind) Valid ¶
func (e ResourceRemovalRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the ResourceRemovalRejectedTitlePayloadTargetKind enum.
type ResourceRemovalRejectedTitlePayloadTitleKey ¶
type ResourceRemovalRejectedTitlePayloadTitleKey string
ResourceRemovalRejectedTitlePayloadTitleKey defines model for ResourceRemovalRejectedTitlePayload.TitleKey.
const (
ResourceRemovalRejectedTitlePayloadTitleKeyNotificationsResourceRemovalRejected ResourceRemovalRejectedTitlePayloadTitleKey = "notifications.resource_removal.rejected"
)
Defines values for ResourceRemovalRejectedTitlePayloadTitleKey.
func (ResourceRemovalRejectedTitlePayloadTitleKey) Valid ¶
func (e ResourceRemovalRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the ResourceRemovalRejectedTitlePayloadTitleKey enum.
type ResourceRemovalRejectedTitlePayloadType ¶
type ResourceRemovalRejectedTitlePayloadType string
ResourceRemovalRejectedTitlePayloadType defines model for ResourceRemovalRejectedTitlePayload.Type.
const (
ResourceRemovalRejectedTitlePayloadTypeBusiness ResourceRemovalRejectedTitlePayloadType = "business"
)
Defines values for ResourceRemovalRejectedTitlePayloadType.
func (ResourceRemovalRejectedTitlePayloadType) Valid ¶
func (e ResourceRemovalRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the ResourceRemovalRejectedTitlePayloadType enum.
type SetPreferencesJSONRequestBody ¶
type SetPreferencesJSONRequestBody = Preferences
SetPreferencesJSONRequestBody defines body for SetPreferences for application/json ContentType.
type SetPreferencesResponse ¶
type SetPreferencesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Preferences
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseSetPreferencesResponse ¶
func ParseSetPreferencesResponse(rsp *http.Response) (*SetPreferencesResponse, error)
ParseSetPreferencesResponse parses an HTTP response from a SetPreferencesWithResponse call
func (SetPreferencesResponse) ContentType ¶
func (r SetPreferencesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetPreferencesResponse) GetBody ¶
func (r SetPreferencesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SetPreferencesResponse) GetJSON200 ¶
func (r SetPreferencesResponse) GetJSON200() *Preferences
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SetPreferencesResponse) GetJSON400 ¶
func (r SetPreferencesResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SetPreferencesResponse) GetJSON401 ¶
func (r SetPreferencesResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SetPreferencesResponse) GetJSON404 ¶
func (r SetPreferencesResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SetPreferencesResponse) GetJSON503 ¶
func (r SetPreferencesResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (SetPreferencesResponse) Status ¶
func (r SetPreferencesResponse) Status() string
Status returns HTTPResponse.Status
func (SetPreferencesResponse) StatusCode ¶
func (r SetPreferencesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StudentVerificationApprovedTitlePayload ¶
type StudentVerificationApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind StudentVerificationApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey StudentVerificationApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ApplicationId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ApplicationId string `json:"application_id"`
} `json:"title_params"`
Type StudentVerificationApprovedTitlePayloadType `json:"type"`
}
StudentVerificationApprovedTitlePayload 学生认证通过
type StudentVerificationApprovedTitlePayloadTargetKind ¶
type StudentVerificationApprovedTitlePayloadTargetKind string
StudentVerificationApprovedTitlePayloadTargetKind defines model for StudentVerificationApprovedTitlePayload.Target.Kind.
const (
StudentVerificationApprovedTitlePayloadTargetKindVerificationApplication StudentVerificationApprovedTitlePayloadTargetKind = "verification_application"
)
Defines values for StudentVerificationApprovedTitlePayloadTargetKind.
func (StudentVerificationApprovedTitlePayloadTargetKind) Valid ¶
func (e StudentVerificationApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationApprovedTitlePayloadTargetKind enum.
type StudentVerificationApprovedTitlePayloadTitleKey ¶
type StudentVerificationApprovedTitlePayloadTitleKey string
StudentVerificationApprovedTitlePayloadTitleKey defines model for StudentVerificationApprovedTitlePayload.TitleKey.
const (
StudentVerificationApprovedTitlePayloadTitleKeyNotificationsStudentVerificationApproved StudentVerificationApprovedTitlePayloadTitleKey = "notifications.student_verification.approved"
)
Defines values for StudentVerificationApprovedTitlePayloadTitleKey.
func (StudentVerificationApprovedTitlePayloadTitleKey) Valid ¶
func (e StudentVerificationApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationApprovedTitlePayloadTitleKey enum.
type StudentVerificationApprovedTitlePayloadType ¶
type StudentVerificationApprovedTitlePayloadType string
StudentVerificationApprovedTitlePayloadType defines model for StudentVerificationApprovedTitlePayload.Type.
const (
StudentVerificationApprovedTitlePayloadTypeBusiness StudentVerificationApprovedTitlePayloadType = "business"
)
Defines values for StudentVerificationApprovedTitlePayloadType.
func (StudentVerificationApprovedTitlePayloadType) Valid ¶
func (e StudentVerificationApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationApprovedTitlePayloadType enum.
type StudentVerificationRejectedTitlePayload ¶
type StudentVerificationRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind StudentVerificationRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey StudentVerificationRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ApplicationId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ApplicationId string `json:"application_id"`
} `json:"title_params"`
Type StudentVerificationRejectedTitlePayloadType `json:"type"`
}
StudentVerificationRejectedTitlePayload 学生认证驳回
type StudentVerificationRejectedTitlePayloadTargetKind ¶
type StudentVerificationRejectedTitlePayloadTargetKind string
StudentVerificationRejectedTitlePayloadTargetKind defines model for StudentVerificationRejectedTitlePayload.Target.Kind.
const (
StudentVerificationRejectedTitlePayloadTargetKindVerificationApplication StudentVerificationRejectedTitlePayloadTargetKind = "verification_application"
)
Defines values for StudentVerificationRejectedTitlePayloadTargetKind.
func (StudentVerificationRejectedTitlePayloadTargetKind) Valid ¶
func (e StudentVerificationRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationRejectedTitlePayloadTargetKind enum.
type StudentVerificationRejectedTitlePayloadTitleKey ¶
type StudentVerificationRejectedTitlePayloadTitleKey string
StudentVerificationRejectedTitlePayloadTitleKey defines model for StudentVerificationRejectedTitlePayload.TitleKey.
const (
StudentVerificationRejectedTitlePayloadTitleKeyNotificationsStudentVerificationRejected StudentVerificationRejectedTitlePayloadTitleKey = "notifications.student_verification.rejected"
)
Defines values for StudentVerificationRejectedTitlePayloadTitleKey.
func (StudentVerificationRejectedTitlePayloadTitleKey) Valid ¶
func (e StudentVerificationRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationRejectedTitlePayloadTitleKey enum.
type StudentVerificationRejectedTitlePayloadType ¶
type StudentVerificationRejectedTitlePayloadType string
StudentVerificationRejectedTitlePayloadType defines model for StudentVerificationRejectedTitlePayload.Type.
const (
StudentVerificationRejectedTitlePayloadTypeBusiness StudentVerificationRejectedTitlePayloadType = "business"
)
Defines values for StudentVerificationRejectedTitlePayloadType.
func (StudentVerificationRejectedTitlePayloadType) Valid ¶
func (e StudentVerificationRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationRejectedTitlePayloadType enum.
type StudentVerificationRevokedTitlePayload ¶
type StudentVerificationRevokedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind StudentVerificationRevokedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey StudentVerificationRevokedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// CredentialId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
CredentialId string `json:"credential_id"`
} `json:"title_params"`
Type StudentVerificationRevokedTitlePayloadType `json:"type"`
}
StudentVerificationRevokedTitlePayload 学生认证被撤销
type StudentVerificationRevokedTitlePayloadTargetKind ¶
type StudentVerificationRevokedTitlePayloadTargetKind string
StudentVerificationRevokedTitlePayloadTargetKind defines model for StudentVerificationRevokedTitlePayload.Target.Kind.
const (
StudentVerificationRevokedTitlePayloadTargetKindVerificationCredential StudentVerificationRevokedTitlePayloadTargetKind = "verification_credential"
)
Defines values for StudentVerificationRevokedTitlePayloadTargetKind.
func (StudentVerificationRevokedTitlePayloadTargetKind) Valid ¶
func (e StudentVerificationRevokedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationRevokedTitlePayloadTargetKind enum.
type StudentVerificationRevokedTitlePayloadTitleKey ¶
type StudentVerificationRevokedTitlePayloadTitleKey string
StudentVerificationRevokedTitlePayloadTitleKey defines model for StudentVerificationRevokedTitlePayload.TitleKey.
const (
StudentVerificationRevokedTitlePayloadTitleKeyNotificationsStudentVerificationRevoked StudentVerificationRevokedTitlePayloadTitleKey = "notifications.student_verification.revoked"
)
Defines values for StudentVerificationRevokedTitlePayloadTitleKey.
func (StudentVerificationRevokedTitlePayloadTitleKey) Valid ¶
func (e StudentVerificationRevokedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationRevokedTitlePayloadTitleKey enum.
type StudentVerificationRevokedTitlePayloadType ¶
type StudentVerificationRevokedTitlePayloadType string
StudentVerificationRevokedTitlePayloadType defines model for StudentVerificationRevokedTitlePayload.Type.
const (
StudentVerificationRevokedTitlePayloadTypeAccount StudentVerificationRevokedTitlePayloadType = "account"
)
Defines values for StudentVerificationRevokedTitlePayloadType.
func (StudentVerificationRevokedTitlePayloadType) Valid ¶
func (e StudentVerificationRevokedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the StudentVerificationRevokedTitlePayloadType enum.
type SystemAccountTitlePayload ¶
type SystemAccountTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind SystemAccountTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey SystemAccountTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ReferenceId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ReferenceId string `json:"reference_id"`
} `json:"title_params"`
Type SystemAccountTitlePayloadType `json:"type"`
}
SystemAccountTitlePayload 账号通知
type SystemAccountTitlePayloadTargetKind ¶
type SystemAccountTitlePayloadTargetKind string
SystemAccountTitlePayloadTargetKind defines model for SystemAccountTitlePayload.Target.Kind.
const ( SystemAccountTitlePayloadTargetKindComment SystemAccountTitlePayloadTargetKind = "comment" SystemAccountTitlePayloadTargetKindReport SystemAccountTitlePayloadTargetKind = "report" SystemAccountTitlePayloadTargetKindResource SystemAccountTitlePayloadTargetKind = "resource" SystemAccountTitlePayloadTargetKindResourceRemovalRequest SystemAccountTitlePayloadTargetKind = "resource_removal_request" SystemAccountTitlePayloadTargetKindReview SystemAccountTitlePayloadTargetKind = "review" SystemAccountTitlePayloadTargetKindTeacherApplication SystemAccountTitlePayloadTargetKind = "teacher_application" SystemAccountTitlePayloadTargetKindVerificationApplication SystemAccountTitlePayloadTargetKind = "verification_application" SystemAccountTitlePayloadTargetKindVerificationCredential SystemAccountTitlePayloadTargetKind = "verification_credential" SystemAccountTitlePayloadTargetKindVerificationOperation SystemAccountTitlePayloadTargetKind = "verification_operation" SystemAccountTitlePayloadTargetKindVerificationRemovalRequest SystemAccountTitlePayloadTargetKind = "verification_removal_request" )
Defines values for SystemAccountTitlePayloadTargetKind.
func (SystemAccountTitlePayloadTargetKind) Valid ¶
func (e SystemAccountTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the SystemAccountTitlePayloadTargetKind enum.
type SystemAccountTitlePayloadTitleKey ¶
type SystemAccountTitlePayloadTitleKey string
SystemAccountTitlePayloadTitleKey defines model for SystemAccountTitlePayload.TitleKey.
const (
SystemAccountTitlePayloadTitleKeyNotificationsSystemAccount SystemAccountTitlePayloadTitleKey = "notifications.system.account"
)
Defines values for SystemAccountTitlePayloadTitleKey.
func (SystemAccountTitlePayloadTitleKey) Valid ¶
func (e SystemAccountTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the SystemAccountTitlePayloadTitleKey enum.
type SystemAccountTitlePayloadType ¶
type SystemAccountTitlePayloadType string
SystemAccountTitlePayloadType defines model for SystemAccountTitlePayload.Type.
const (
SystemAccountTitlePayloadTypeAccount SystemAccountTitlePayloadType = "account"
)
Defines values for SystemAccountTitlePayloadType.
func (SystemAccountTitlePayloadType) Valid ¶
func (e SystemAccountTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the SystemAccountTitlePayloadType enum.
type SystemNoticeTitlePayload ¶
type SystemNoticeTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind SystemNoticeTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey SystemNoticeTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ReferenceId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ReferenceId string `json:"reference_id"`
} `json:"title_params"`
Type SystemNoticeTitlePayloadType `json:"type"`
}
SystemNoticeTitlePayload 系统通知
type SystemNoticeTitlePayloadTargetKind ¶
type SystemNoticeTitlePayloadTargetKind string
SystemNoticeTitlePayloadTargetKind defines model for SystemNoticeTitlePayload.Target.Kind.
const ( SystemNoticeTitlePayloadTargetKindComment SystemNoticeTitlePayloadTargetKind = "comment" SystemNoticeTitlePayloadTargetKindReport SystemNoticeTitlePayloadTargetKind = "report" SystemNoticeTitlePayloadTargetKindResource SystemNoticeTitlePayloadTargetKind = "resource" SystemNoticeTitlePayloadTargetKindResourceRemovalRequest SystemNoticeTitlePayloadTargetKind = "resource_removal_request" SystemNoticeTitlePayloadTargetKindReview SystemNoticeTitlePayloadTargetKind = "review" SystemNoticeTitlePayloadTargetKindTeacherApplication SystemNoticeTitlePayloadTargetKind = "teacher_application" SystemNoticeTitlePayloadTargetKindVerificationApplication SystemNoticeTitlePayloadTargetKind = "verification_application" SystemNoticeTitlePayloadTargetKindVerificationCredential SystemNoticeTitlePayloadTargetKind = "verification_credential" SystemNoticeTitlePayloadTargetKindVerificationOperation SystemNoticeTitlePayloadTargetKind = "verification_operation" SystemNoticeTitlePayloadTargetKindVerificationRemovalRequest SystemNoticeTitlePayloadTargetKind = "verification_removal_request" )
Defines values for SystemNoticeTitlePayloadTargetKind.
func (SystemNoticeTitlePayloadTargetKind) Valid ¶
func (e SystemNoticeTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the SystemNoticeTitlePayloadTargetKind enum.
type SystemNoticeTitlePayloadTitleKey ¶
type SystemNoticeTitlePayloadTitleKey string
SystemNoticeTitlePayloadTitleKey defines model for SystemNoticeTitlePayload.TitleKey.
const (
SystemNoticeTitlePayloadTitleKeyNotificationsSystemNotice SystemNoticeTitlePayloadTitleKey = "notifications.system.notice"
)
Defines values for SystemNoticeTitlePayloadTitleKey.
func (SystemNoticeTitlePayloadTitleKey) Valid ¶
func (e SystemNoticeTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the SystemNoticeTitlePayloadTitleKey enum.
type SystemNoticeTitlePayloadType ¶
type SystemNoticeTitlePayloadType string
SystemNoticeTitlePayloadType defines model for SystemNoticeTitlePayload.Type.
const (
SystemNoticeTitlePayloadTypeBusiness SystemNoticeTitlePayloadType = "business"
)
Defines values for SystemNoticeTitlePayloadType.
func (SystemNoticeTitlePayloadType) Valid ¶
func (e SystemNoticeTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the SystemNoticeTitlePayloadType enum.
type SystemSecurityTitlePayload ¶
type SystemSecurityTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind SystemSecurityTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey SystemSecurityTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ReferenceId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ReferenceId string `json:"reference_id"`
} `json:"title_params"`
Type SystemSecurityTitlePayloadType `json:"type"`
}
SystemSecurityTitlePayload 安全通知
type SystemSecurityTitlePayloadTargetKind ¶
type SystemSecurityTitlePayloadTargetKind string
SystemSecurityTitlePayloadTargetKind defines model for SystemSecurityTitlePayload.Target.Kind.
const ( SystemSecurityTitlePayloadTargetKindComment SystemSecurityTitlePayloadTargetKind = "comment" SystemSecurityTitlePayloadTargetKindReport SystemSecurityTitlePayloadTargetKind = "report" SystemSecurityTitlePayloadTargetKindResource SystemSecurityTitlePayloadTargetKind = "resource" SystemSecurityTitlePayloadTargetKindResourceRemovalRequest SystemSecurityTitlePayloadTargetKind = "resource_removal_request" SystemSecurityTitlePayloadTargetKindReview SystemSecurityTitlePayloadTargetKind = "review" SystemSecurityTitlePayloadTargetKindTeacherApplication SystemSecurityTitlePayloadTargetKind = "teacher_application" SystemSecurityTitlePayloadTargetKindVerificationApplication SystemSecurityTitlePayloadTargetKind = "verification_application" SystemSecurityTitlePayloadTargetKindVerificationCredential SystemSecurityTitlePayloadTargetKind = "verification_credential" SystemSecurityTitlePayloadTargetKindVerificationOperation SystemSecurityTitlePayloadTargetKind = "verification_operation" SystemSecurityTitlePayloadTargetKindVerificationRemovalRequest SystemSecurityTitlePayloadTargetKind = "verification_removal_request" )
Defines values for SystemSecurityTitlePayloadTargetKind.
func (SystemSecurityTitlePayloadTargetKind) Valid ¶
func (e SystemSecurityTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the SystemSecurityTitlePayloadTargetKind enum.
type SystemSecurityTitlePayloadTitleKey ¶
type SystemSecurityTitlePayloadTitleKey string
SystemSecurityTitlePayloadTitleKey defines model for SystemSecurityTitlePayload.TitleKey.
const (
SystemSecurityTitlePayloadTitleKeyNotificationsSystemSecurity SystemSecurityTitlePayloadTitleKey = "notifications.system.security"
)
Defines values for SystemSecurityTitlePayloadTitleKey.
func (SystemSecurityTitlePayloadTitleKey) Valid ¶
func (e SystemSecurityTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the SystemSecurityTitlePayloadTitleKey enum.
type SystemSecurityTitlePayloadType ¶
type SystemSecurityTitlePayloadType string
SystemSecurityTitlePayloadType defines model for SystemSecurityTitlePayload.Type.
const (
SystemSecurityTitlePayloadTypeSecurity SystemSecurityTitlePayloadType = "security"
)
Defines values for SystemSecurityTitlePayloadType.
func (SystemSecurityTitlePayloadType) Valid ¶
func (e SystemSecurityTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the SystemSecurityTitlePayloadType enum.
type Target ¶
type Target struct {
Id string `json:"id"`
Kind TargetKind `json:"kind"`
}
Target defines model for Target.
type TargetKind ¶
type TargetKind string
TargetKind defines model for Target.Kind.
const ( TargetKindComment TargetKind = "comment" TargetKindReport TargetKind = "report" TargetKindResource TargetKind = "resource" TargetKindResourceRemovalRequest TargetKind = "resource_removal_request" TargetKindReview TargetKind = "review" TargetKindTeacherApplication TargetKind = "teacher_application" TargetKindVerificationApplication TargetKind = "verification_application" TargetKindVerificationCredential TargetKind = "verification_credential" TargetKindVerificationOperation TargetKind = "verification_operation" TargetKindVerificationRemovalRequest TargetKind = "verification_removal_request" )
Defines values for TargetKind.
func (TargetKind) Valid ¶
func (e TargetKind) Valid() bool
Valid indicates whether the value is a known member of the TargetKind enum.
type TeacherVerificationApprovedTitlePayload ¶
type TeacherVerificationApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind TeacherVerificationApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey TeacherVerificationApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ApplicationId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ApplicationId string `json:"application_id"`
} `json:"title_params"`
Type TeacherVerificationApprovedTitlePayloadType `json:"type"`
}
TeacherVerificationApprovedTitlePayload 教师认证通过
type TeacherVerificationApprovedTitlePayloadTargetKind ¶
type TeacherVerificationApprovedTitlePayloadTargetKind string
TeacherVerificationApprovedTitlePayloadTargetKind defines model for TeacherVerificationApprovedTitlePayload.Target.Kind.
const (
TeacherVerificationApprovedTitlePayloadTargetKindTeacherApplication TeacherVerificationApprovedTitlePayloadTargetKind = "teacher_application"
)
Defines values for TeacherVerificationApprovedTitlePayloadTargetKind.
func (TeacherVerificationApprovedTitlePayloadTargetKind) Valid ¶
func (e TeacherVerificationApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the TeacherVerificationApprovedTitlePayloadTargetKind enum.
type TeacherVerificationApprovedTitlePayloadTitleKey ¶
type TeacherVerificationApprovedTitlePayloadTitleKey string
TeacherVerificationApprovedTitlePayloadTitleKey defines model for TeacherVerificationApprovedTitlePayload.TitleKey.
const (
TeacherVerificationApprovedTitlePayloadTitleKeyNotificationsTeacherVerificationApproved TeacherVerificationApprovedTitlePayloadTitleKey = "notifications.teacher_verification.approved"
)
Defines values for TeacherVerificationApprovedTitlePayloadTitleKey.
func (TeacherVerificationApprovedTitlePayloadTitleKey) Valid ¶
func (e TeacherVerificationApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the TeacherVerificationApprovedTitlePayloadTitleKey enum.
type TeacherVerificationApprovedTitlePayloadType ¶
type TeacherVerificationApprovedTitlePayloadType string
TeacherVerificationApprovedTitlePayloadType defines model for TeacherVerificationApprovedTitlePayload.Type.
const (
TeacherVerificationApprovedTitlePayloadTypeBusiness TeacherVerificationApprovedTitlePayloadType = "business"
)
Defines values for TeacherVerificationApprovedTitlePayloadType.
func (TeacherVerificationApprovedTitlePayloadType) Valid ¶
func (e TeacherVerificationApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the TeacherVerificationApprovedTitlePayloadType enum.
type TeacherVerificationRejectedTitlePayload ¶
type TeacherVerificationRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind TeacherVerificationRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey TeacherVerificationRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// ApplicationId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
ApplicationId string `json:"application_id"`
} `json:"title_params"`
Type TeacherVerificationRejectedTitlePayloadType `json:"type"`
}
TeacherVerificationRejectedTitlePayload 教师认证驳回
type TeacherVerificationRejectedTitlePayloadTargetKind ¶
type TeacherVerificationRejectedTitlePayloadTargetKind string
TeacherVerificationRejectedTitlePayloadTargetKind defines model for TeacherVerificationRejectedTitlePayload.Target.Kind.
const (
TeacherVerificationRejectedTitlePayloadTargetKindTeacherApplication TeacherVerificationRejectedTitlePayloadTargetKind = "teacher_application"
)
Defines values for TeacherVerificationRejectedTitlePayloadTargetKind.
func (TeacherVerificationRejectedTitlePayloadTargetKind) Valid ¶
func (e TeacherVerificationRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the TeacherVerificationRejectedTitlePayloadTargetKind enum.
type TeacherVerificationRejectedTitlePayloadTitleKey ¶
type TeacherVerificationRejectedTitlePayloadTitleKey string
TeacherVerificationRejectedTitlePayloadTitleKey defines model for TeacherVerificationRejectedTitlePayload.TitleKey.
const (
TeacherVerificationRejectedTitlePayloadTitleKeyNotificationsTeacherVerificationRejected TeacherVerificationRejectedTitlePayloadTitleKey = "notifications.teacher_verification.rejected"
)
Defines values for TeacherVerificationRejectedTitlePayloadTitleKey.
func (TeacherVerificationRejectedTitlePayloadTitleKey) Valid ¶
func (e TeacherVerificationRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the TeacherVerificationRejectedTitlePayloadTitleKey enum.
type TeacherVerificationRejectedTitlePayloadType ¶
type TeacherVerificationRejectedTitlePayloadType string
TeacherVerificationRejectedTitlePayloadType defines model for TeacherVerificationRejectedTitlePayload.Type.
const (
TeacherVerificationRejectedTitlePayloadTypeBusiness TeacherVerificationRejectedTitlePayloadType = "business"
)
Defines values for TeacherVerificationRejectedTitlePayloadType.
func (TeacherVerificationRejectedTitlePayloadType) Valid ¶
func (e TeacherVerificationRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the TeacherVerificationRejectedTitlePayloadType enum.
type TitleKey ¶
type TitleKey string
TitleKey 封闭标题键目录,详见 x-title-catalog 和各 TitlePayload。互动复数参数 count 使用通知顶层 count(整数),禁止由 Consumer 传入 title_params。
const ( TitleKeyNotificationsContentApproved TitleKey = "notifications.content.approved" TitleKeyNotificationsContentRejected TitleKey = "notifications.content.rejected" TitleKeyNotificationsContentRemoved TitleKey = "notifications.content.removed" TitleKeyNotificationsIdentityVerificationApproved TitleKey = "notifications.identity_verification.approved" TitleKeyNotificationsIdentityVerificationRejected TitleKey = "notifications.identity_verification.rejected" TitleKeyNotificationsInteractionLike TitleKey = "notifications.interaction.like" TitleKeyNotificationsInteractionReply TitleKey = "notifications.interaction.reply" TitleKeyNotificationsReportApproved TitleKey = "notifications.report.approved" TitleKeyNotificationsReportRejected TitleKey = "notifications.report.rejected" TitleKeyNotificationsResourceRemovalApproved TitleKey = "notifications.resource_removal.approved" TitleKeyNotificationsResourceRemovalRejected TitleKey = "notifications.resource_removal.rejected" TitleKeyNotificationsStudentVerificationApproved TitleKey = "notifications.student_verification.approved" TitleKeyNotificationsStudentVerificationRejected TitleKey = "notifications.student_verification.rejected" TitleKeyNotificationsStudentVerificationRevoked TitleKey = "notifications.student_verification.revoked" TitleKeyNotificationsSystemAccount TitleKey = "notifications.system.account" TitleKeyNotificationsSystemNotice TitleKey = "notifications.system.notice" TitleKeyNotificationsSystemSecurity TitleKey = "notifications.system.security" TitleKeyNotificationsTeacherVerificationApproved TitleKey = "notifications.teacher_verification.approved" TitleKeyNotificationsTeacherVerificationRejected TitleKey = "notifications.teacher_verification.rejected" TitleKeyNotificationsVerificationDeletionApproved TitleKey = "notifications.verification_deletion.approved" TitleKeyNotificationsVerificationDeletionRejected TitleKey = "notifications.verification_deletion.rejected" TitleKeyNotificationsVerificationRevocationApproved TitleKey = "notifications.verification_revocation.approved" TitleKeyNotificationsVerificationRevocationRejected TitleKey = "notifications.verification_revocation.rejected" )
Defines values for TitleKey.
type VerificationDeletionApprovedTitlePayload ¶
type VerificationDeletionApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind VerificationDeletionApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey VerificationDeletionApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// RequestId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
RequestId string `json:"request_id"`
} `json:"title_params"`
Type VerificationDeletionApprovedTitlePayloadType `json:"type"`
}
VerificationDeletionApprovedTitlePayload 认证删除申请通过
type VerificationDeletionApprovedTitlePayloadTargetKind ¶
type VerificationDeletionApprovedTitlePayloadTargetKind string
VerificationDeletionApprovedTitlePayloadTargetKind defines model for VerificationDeletionApprovedTitlePayload.Target.Kind.
const (
VerificationDeletionApprovedTitlePayloadTargetKindVerificationRemovalRequest VerificationDeletionApprovedTitlePayloadTargetKind = "verification_removal_request"
)
Defines values for VerificationDeletionApprovedTitlePayloadTargetKind.
func (VerificationDeletionApprovedTitlePayloadTargetKind) Valid ¶
func (e VerificationDeletionApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the VerificationDeletionApprovedTitlePayloadTargetKind enum.
type VerificationDeletionApprovedTitlePayloadTitleKey ¶
type VerificationDeletionApprovedTitlePayloadTitleKey string
VerificationDeletionApprovedTitlePayloadTitleKey defines model for VerificationDeletionApprovedTitlePayload.TitleKey.
const (
VerificationDeletionApprovedTitlePayloadTitleKeyNotificationsVerificationDeletionApproved VerificationDeletionApprovedTitlePayloadTitleKey = "notifications.verification_deletion.approved"
)
Defines values for VerificationDeletionApprovedTitlePayloadTitleKey.
func (VerificationDeletionApprovedTitlePayloadTitleKey) Valid ¶
func (e VerificationDeletionApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the VerificationDeletionApprovedTitlePayloadTitleKey enum.
type VerificationDeletionApprovedTitlePayloadType ¶
type VerificationDeletionApprovedTitlePayloadType string
VerificationDeletionApprovedTitlePayloadType defines model for VerificationDeletionApprovedTitlePayload.Type.
const (
VerificationDeletionApprovedTitlePayloadTypeAccount VerificationDeletionApprovedTitlePayloadType = "account"
)
Defines values for VerificationDeletionApprovedTitlePayloadType.
func (VerificationDeletionApprovedTitlePayloadType) Valid ¶
func (e VerificationDeletionApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the VerificationDeletionApprovedTitlePayloadType enum.
type VerificationDeletionRejectedTitlePayload ¶
type VerificationDeletionRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind VerificationDeletionRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey VerificationDeletionRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// RequestId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
RequestId string `json:"request_id"`
} `json:"title_params"`
Type VerificationDeletionRejectedTitlePayloadType `json:"type"`
}
VerificationDeletionRejectedTitlePayload 认证删除申请驳回
type VerificationDeletionRejectedTitlePayloadTargetKind ¶
type VerificationDeletionRejectedTitlePayloadTargetKind string
VerificationDeletionRejectedTitlePayloadTargetKind defines model for VerificationDeletionRejectedTitlePayload.Target.Kind.
const (
VerificationDeletionRejectedTitlePayloadTargetKindVerificationRemovalRequest VerificationDeletionRejectedTitlePayloadTargetKind = "verification_removal_request"
)
Defines values for VerificationDeletionRejectedTitlePayloadTargetKind.
func (VerificationDeletionRejectedTitlePayloadTargetKind) Valid ¶
func (e VerificationDeletionRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the VerificationDeletionRejectedTitlePayloadTargetKind enum.
type VerificationDeletionRejectedTitlePayloadTitleKey ¶
type VerificationDeletionRejectedTitlePayloadTitleKey string
VerificationDeletionRejectedTitlePayloadTitleKey defines model for VerificationDeletionRejectedTitlePayload.TitleKey.
const (
VerificationDeletionRejectedTitlePayloadTitleKeyNotificationsVerificationDeletionRejected VerificationDeletionRejectedTitlePayloadTitleKey = "notifications.verification_deletion.rejected"
)
Defines values for VerificationDeletionRejectedTitlePayloadTitleKey.
func (VerificationDeletionRejectedTitlePayloadTitleKey) Valid ¶
func (e VerificationDeletionRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the VerificationDeletionRejectedTitlePayloadTitleKey enum.
type VerificationDeletionRejectedTitlePayloadType ¶
type VerificationDeletionRejectedTitlePayloadType string
VerificationDeletionRejectedTitlePayloadType defines model for VerificationDeletionRejectedTitlePayload.Type.
const (
VerificationDeletionRejectedTitlePayloadTypeAccount VerificationDeletionRejectedTitlePayloadType = "account"
)
Defines values for VerificationDeletionRejectedTitlePayloadType.
func (VerificationDeletionRejectedTitlePayloadType) Valid ¶
func (e VerificationDeletionRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the VerificationDeletionRejectedTitlePayloadType enum.
type VerificationRevocationApprovedTitlePayload ¶
type VerificationRevocationApprovedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind VerificationRevocationApprovedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey VerificationRevocationApprovedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// RequestId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
RequestId string `json:"request_id"`
} `json:"title_params"`
Type VerificationRevocationApprovedTitlePayloadType `json:"type"`
}
VerificationRevocationApprovedTitlePayload 认证撤销申请通过
type VerificationRevocationApprovedTitlePayloadTargetKind ¶
type VerificationRevocationApprovedTitlePayloadTargetKind string
VerificationRevocationApprovedTitlePayloadTargetKind defines model for VerificationRevocationApprovedTitlePayload.Target.Kind.
const (
VerificationRevocationApprovedTitlePayloadTargetKindVerificationRemovalRequest VerificationRevocationApprovedTitlePayloadTargetKind = "verification_removal_request"
)
Defines values for VerificationRevocationApprovedTitlePayloadTargetKind.
func (VerificationRevocationApprovedTitlePayloadTargetKind) Valid ¶
func (e VerificationRevocationApprovedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the VerificationRevocationApprovedTitlePayloadTargetKind enum.
type VerificationRevocationApprovedTitlePayloadTitleKey ¶
type VerificationRevocationApprovedTitlePayloadTitleKey string
VerificationRevocationApprovedTitlePayloadTitleKey defines model for VerificationRevocationApprovedTitlePayload.TitleKey.
const (
VerificationRevocationApprovedTitlePayloadTitleKeyNotificationsVerificationRevocationApproved VerificationRevocationApprovedTitlePayloadTitleKey = "notifications.verification_revocation.approved"
)
Defines values for VerificationRevocationApprovedTitlePayloadTitleKey.
func (VerificationRevocationApprovedTitlePayloadTitleKey) Valid ¶
func (e VerificationRevocationApprovedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the VerificationRevocationApprovedTitlePayloadTitleKey enum.
type VerificationRevocationApprovedTitlePayloadType ¶
type VerificationRevocationApprovedTitlePayloadType string
VerificationRevocationApprovedTitlePayloadType defines model for VerificationRevocationApprovedTitlePayload.Type.
const (
VerificationRevocationApprovedTitlePayloadTypeAccount VerificationRevocationApprovedTitlePayloadType = "account"
)
Defines values for VerificationRevocationApprovedTitlePayloadType.
func (VerificationRevocationApprovedTitlePayloadType) Valid ¶
func (e VerificationRevocationApprovedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the VerificationRevocationApprovedTitlePayloadType enum.
type VerificationRevocationRejectedTitlePayload ¶
type VerificationRevocationRejectedTitlePayload struct {
Target struct {
Id string `json:"id"`
Kind VerificationRevocationRejectedTitlePayloadTargetKind `json:"kind"`
} `json:"target"`
TitleKey VerificationRevocationRejectedTitlePayloadTitleKey `json:"title_key"`
TitleParams struct {
// RequestId 显示用业务编号,不得包含正文、姓名、学号、证件号、邮箱或其他个人敏感信息。
RequestId string `json:"request_id"`
} `json:"title_params"`
Type VerificationRevocationRejectedTitlePayloadType `json:"type"`
}
VerificationRevocationRejectedTitlePayload 认证撤销申请驳回
type VerificationRevocationRejectedTitlePayloadTargetKind ¶
type VerificationRevocationRejectedTitlePayloadTargetKind string
VerificationRevocationRejectedTitlePayloadTargetKind defines model for VerificationRevocationRejectedTitlePayload.Target.Kind.
const (
VerificationRevocationRejectedTitlePayloadTargetKindVerificationRemovalRequest VerificationRevocationRejectedTitlePayloadTargetKind = "verification_removal_request"
)
Defines values for VerificationRevocationRejectedTitlePayloadTargetKind.
func (VerificationRevocationRejectedTitlePayloadTargetKind) Valid ¶
func (e VerificationRevocationRejectedTitlePayloadTargetKind) Valid() bool
Valid indicates whether the value is a known member of the VerificationRevocationRejectedTitlePayloadTargetKind enum.
type VerificationRevocationRejectedTitlePayloadTitleKey ¶
type VerificationRevocationRejectedTitlePayloadTitleKey string
VerificationRevocationRejectedTitlePayloadTitleKey defines model for VerificationRevocationRejectedTitlePayload.TitleKey.
const (
VerificationRevocationRejectedTitlePayloadTitleKeyNotificationsVerificationRevocationRejected VerificationRevocationRejectedTitlePayloadTitleKey = "notifications.verification_revocation.rejected"
)
Defines values for VerificationRevocationRejectedTitlePayloadTitleKey.
func (VerificationRevocationRejectedTitlePayloadTitleKey) Valid ¶
func (e VerificationRevocationRejectedTitlePayloadTitleKey) Valid() bool
Valid indicates whether the value is a known member of the VerificationRevocationRejectedTitlePayloadTitleKey enum.
type VerificationRevocationRejectedTitlePayloadType ¶
type VerificationRevocationRejectedTitlePayloadType string
VerificationRevocationRejectedTitlePayloadType defines model for VerificationRevocationRejectedTitlePayload.Type.
const (
VerificationRevocationRejectedTitlePayloadTypeAccount VerificationRevocationRejectedTitlePayloadType = "account"
)
Defines values for VerificationRevocationRejectedTitlePayloadType.
func (VerificationRevocationRejectedTitlePayloadType) Valid ¶
func (e VerificationRevocationRejectedTitlePayloadType) Valid() bool
Valid indicates whether the value is a known member of the VerificationRevocationRejectedTitlePayloadType enum.