Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEntity ¶
type BaseRequest ¶
type Create ¶
type Create struct {
BaseRequest
}
type Delete ¶
type Delete struct { BaseRequest Id int `json:"Id"` IsPermenant bool }
type NullBool ¶
Nullable Bool that overrides sql.NullBool
func (NullBool) MarshalJSON ¶
func (*NullBool) UnmarshalJSON ¶
type NullFloat64 ¶
type NullFloat64 struct {
sql.NullFloat64
}
Nullable Float64 that overrides sql.NullFloat64
func (NullFloat64) MarshalJSON ¶
func (nf NullFloat64) MarshalJSON() ([]byte, error)
func (*NullFloat64) UnmarshalJSON ¶
func (nf *NullFloat64) UnmarshalJSON(data []byte) error
type NullInt64 ¶
Nullable Int64 that overrides sql.NullInt64
func (NullInt64) MarshalJSON ¶
func (*NullInt64) UnmarshalJSON ¶
type NullString ¶
type NullString struct {
sql.NullString
}
Nullable String that overrides sql.NullString
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶
func (ns *NullString) UnmarshalJSON(data []byte) error
type Read ¶
type Read struct { BaseRequest IsActiveRequired bool `json:"IsActiveRequired"` OnlyIsPassive bool `json:"OnlyIsPassive"` IsOrderByAsc bool `json:"IsOrderByAsc"` OrderBy string `json:"OrderBy"` Page int `json:"Page"` Count int `json:"Count"` SearchValue string `json:"SearchValue"` GetChildrenCount bool `json:"GetChildrenCount"` GetChildren bool `json:"GetChildren"` Id int `json:"Id"` ParentId int `json:"ParentId"` }
type Response ¶
type Response struct { Success bool `json:"Success"` Message string `json:"Message"` Result interface{} `json:"Result"` Count int `json:"Count"` MaxCount int `json:"MaxCount"` Page int `json:"Page"` MaxPage int `json:"MaxPage"` IsOrderByAsc bool `json:"IsOrderByAsc"` OrderBy string `json:"OrderBy"` Request interface{} `json:"Request"` Error error `json:"Error"` ErrorMessage string `json:"ErrorMessage"` }
func NewResponse ¶
func NewResponse() Response
func (*Response) Respond ¶
func (r *Response) Respond( w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.