Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionGetRequest ¶
type CollectionGetRequest struct { model.SubjectQueryInputs `path:",inline" query:",inline"` runtime.RequestCollection[ predicate.Subject, subject.OrderOption, ] `query:",inline"` Kind string `query:"kind,omitempty"` }
func (*CollectionGetRequest) Validate ¶
func (r *CollectionGetRequest) Validate() error
type CollectionGetResponse ¶
type CollectionGetResponse = []*model.SubjectOutput
type CreateRequest ¶
type CreateRequest struct { model.SubjectCreateInput `path:",inline" json:",inline"` Password string `json:"password"` }
func (*CreateRequest) Validate ¶
func (r *CreateRequest) Validate() error
type CreateResponse ¶
type CreateResponse = *model.SubjectOutput
type DeleteRequest ¶
type DeleteRequest = model.SubjectDeleteInput
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) CollectionGet ¶
func (h Handler) CollectionGet(req CollectionGetRequest) (CollectionGetResponse, int, error)
func (Handler) Create ¶
func (h Handler) Create(req CreateRequest) (CreateResponse, error)
func (Handler) Delete ¶
func (h Handler) Delete(req DeleteRequest) error
func (Handler) Update ¶
func (h Handler) Update(req UpdateRequest) error
type UpdateRequest ¶
type UpdateRequest struct { model.SubjectUpdateInput `path:",inline" json:",inline"` Password string `json:"password,omitempty"` // Allow to reset password. }
Click to show internal directories.
Click to hide internal directories.