Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApiKey ¶
func RegisterRouter ¶
func RegisterRouter(r *gin.RouterGroup)
Types ¶
type CreateApiKeyRequest ¶
type CreateApiKeyRequest struct { Key string `form:"key" json:"key" binding:"required,min=10,max=100"` Quota int `form:"quota" json:"quota" binding:"required"` Permissions []string `form:"permissions" json:"permissions" binding:"required"` Description string `form:"description" json:"description"` }
Click to show internal directories.
Click to hide internal directories.