Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
controller.BaseControl
}
Controller is the base controller for API
func (*Controller) GetQueryID ¶
func (ctrl *Controller) GetQueryID(ctx *gin.Context) string
GetQueryID gets id from Request
func (*Controller) IDToUUID ¶
func (ctrl *Controller) IDToUUID(idStr string) (uuid.UUID, error)
IDToUUID converts string type to uuid
func (Controller) ParseQuery ¶
func (ctrl Controller) ParseQuery(ctx *gin.Context, statusMap interface{}) (search.ElasticSearchEngine, error)
ParseQuery parses query string other similar methods will be deprecated gradually
type OnlineController ¶
type OnlineController struct {
Controller
}
func (*OnlineController) Patch ¶
func (ctrl *OnlineController) Patch(ctx *gin.Context)
type TestAPIControl ¶
type TestAPIControl struct {
libController.BaseControl
}
TestAPIControl tests the framework
func (*TestAPIControl) GetAll ¶
func (ctrl *TestAPIControl) GetAll(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.