Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct{}
func (*Controller) Create ¶
func (ac *Controller) Create(c *response.Context)
Create 创建API密钥 @Summary 创建API密钥 @Description 为当前用户创建一个新的API密钥 @Security BearerAuth @Param description body string false "密钥描述" @Success 200 {object} string "操作成功" @Router /mgm/user/profile/api_keys/create [post]
func (*Controller) Delete ¶
func (ac *Controller) Delete(c *response.Context)
@Summary 删除API密钥 @Description 删除指定ID的API密钥 @Security BearerAuth @Param id path string true "API密钥ID" @Success 200 {object} string "操作成功" @Router /mgm/user/profile/api_keys/delete/{id} [post]
func (*Controller) List ¶
func (ac *Controller) List(c *response.Context)
List 获取API密钥列表 @Summary 获取API密钥列表 @Description 获取当前用户的所有API密钥 @Security BearerAuth @Success 200 {object} string @Router /mgm/user/profile/api_keys/list [get]
Click to show internal directories.
Click to hide internal directories.