init: radio init commit
This commit is contained in:
@@ -17,7 +17,7 @@ type RoleApi struct {
|
||||
// SaveRole
|
||||
// @tags 角色管理
|
||||
// @Summary 创建角色
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BasicAuth
|
||||
// @accept json
|
||||
// @Produce json
|
||||
// @Param data body system.Role true "角色信息"
|
||||
@@ -42,7 +42,7 @@ func (a *RoleApi) SaveRole(context *gin.Context) {
|
||||
// UpdateRole
|
||||
// @tags 角色管理
|
||||
// @Summary 修改角色
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BasicAuth
|
||||
// @accept application/json
|
||||
// @Produce application/json
|
||||
// @Param data body system.Role true "角色ID"
|
||||
@@ -121,7 +121,7 @@ func (a *RoleApi) Delete(context *gin.Context) {
|
||||
// Detail
|
||||
// @Tags 角色管理
|
||||
// @Summary 角色详情
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BasicAuth
|
||||
// @Produce application/json
|
||||
// @Param id query string true "id"
|
||||
// @Success 200 {object} response.Response{data=system.Role} "角色详情"
|
||||
@@ -140,7 +140,7 @@ func (a *RoleApi) Detail(context *gin.Context) {
|
||||
// GrantMenu
|
||||
// @tags 角色管理
|
||||
// @Summary 授权菜单给角色
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BasicAuth
|
||||
// @accept application/json
|
||||
// @Produce application/json
|
||||
// @Param data body systemreq.GrantMenu true "授权菜单给角色"
|
||||
|
||||
Reference in New Issue
Block a user