Documentation
¶
Index ¶
- func CreateUpdateRole(c *gin.Context)
- func CreateUpdateUser(c *gin.Context)
- func DeleteRole(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func ListPermissions(c *gin.Context)
- func ListRole(c *gin.Context)
- func ListUser(c *gin.Context)
- func Login(c *gin.Context)
- func UpdateForSDK()
- type LoginRequest
- type LoginResponse
- type LoginUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUpdateRole ¶
@Id CreateRole @Summary Create role @security BasicAuth @Tags Role @Accept json @Produce json @Param role body meta.Role true "Role data" @Success 200 {object} meta.HTTPResponseID @Failure 400 {object} meta.HTTPResponseError @Failure 500 {object} meta.HTTPResponseError @Router /api/role [post]
func CreateUpdateUser ¶
@Id CreateUser @Summary Create user @security BasicAuth @Tags User @Accept json @Produce json @Param user body meta.User true "User data" @Success 200 {object} meta.HTTPResponseID @Failure 400 {object} meta.HTTPResponseError @Failure 500 {object} meta.HTTPResponseError @Router /api/user [post]
func DeleteRole ¶
@Id DeleteRole @Summary Delete role @security BasicAuth @Tags Role @Produce json @Param id path string true "Role id" @Success 200 {object} meta.HTTPResponseID @Success 500 {object} meta.HTTPResponseError @Router /api/role/{id} [delete]
func DeleteUser ¶
@Id DeleteUser @Summary Delete user @security BasicAuth @Tags User @Produce json @Param id path string true "User id" @Success 200 {object} meta.HTTPResponseID @Success 500 {object} meta.HTTPResponseError @Router /api/user/{id} [delete]
func ListPermissions ¶
@Id ListPermissions @Summary List permissions @security BasicAuth @Tags Permission @Produce json @Success 200 {object} []string @Failure 500 {object} meta.HTTPResponseError @Router /api/permissions [get]
func ListRole ¶
@Id ListRoles @Summary List role @security BasicAuth @Tags Role @Produce json @Success 200 {object} []meta.Role @Failure 500 {object} meta.HTTPResponseError @Router /api/role [get]
func ListUser ¶
@Id ListUsers @Summary List user @security BasicAuth @Tags User @Produce json @Success 200 {object} []meta.User @Failure 500 {object} meta.HTTPResponseError @Router /api/user [get]
func Login ¶
@Id Login @Summary Login @Tags User @Accept json @Produce json @Param login body LoginRequest true "Login credentials" @Success 200 {object} LoginResponse @Failure 400 {object} meta.HTTPResponseError @Router /api/login [post]
func UpdateForSDK ¶
func UpdateForSDK()
@Id UpdateUser @Summary Update user @security BasicAuth @Tags User @Accept json @Produce json @Param user body meta.User true "User data" @Success 200 {object} meta.HTTPResponseID @Failure 400 {object} meta.HTTPResponseError @Failure 500 {object} meta.HTTPResponseError @Router /api/user [put]