Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseApi ¶
type BaseApi struct {
// contains filtered or unexported fields
}
BaseApi controller
type InternalApi ¶
type InternalApi struct {
BaseApi
}
InternalApi
func (*InternalApi) Config ¶
func (a *InternalApi) Config(c *rux.Context)
@Tags InternalApi @Summary Get app config @Param key query string false "config key string" @Success 201 {string} json data @Failure 403 body is empty @router /config [get]
type UserApi ¶
type UserApi struct {
BaseApi
}
UserApi
func (*UserApi) GetOne ¶
@Tags UserApi @Summary Get one user detail by ID @Description get data by ID @Param id path int true "user ID" @Failure 200 {object} model.JsonMapData "We need ID!!" @Failure 404 {object} model.JsonMapData "Can not find ID" @Router /users/{id} [get]
Click to show internal directories.
Click to hide internal directories.