systemrolehandler

package
v1.24.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModelName      = "SystemRole"
	SearchFields   = []string{"RoleName"}
	OrderFields    = []string{}
	PrimaryKeyName = "systemrole_id"
)

Functions

This section is empty.

Types

type SystemRoleHandler

type SystemRoleHandler struct {
	base.BaseHandler
}

SystemRoleHandler generated handler

func (*SystemRoleHandler) DeleteSystemRole

func (h *SystemRoleHandler) DeleteSystemRole(c *gin.Context)

DeleteSystemRole 删除 SystemRole

@Tags			SystemRole
@Summary		删除 SystemRole
@Description	删除 SystemRole
@Accept			json
@Produce		json
@Param			systemrole_id	path		uint					true	"systemrole_id"
@Success		204				{object}	handlers.ResponseStruct	"resp"
@Router			/v1/systemrole/{systemrole_id} [delete]
@Security		JWT

func (*SystemRoleHandler) DeleteSystemRoleUser

func (h *SystemRoleHandler) DeleteSystemRoleUser(c *gin.Context)

DeleteSystemRoleUser 删除 User 和 SystemRole 的关系

@Tags			SystemRole
@Summary		删除 User 和 SystemRole 的关系
@Description	删除 User 和 SystemRole 的关系
@Accept			json
@Produce		json
@Param			systemrole_id	path		uint										true	"systemrole_id"
@Param			user_id			path		uint										true	"user_id"
@Success		200				{object}	handlers.ResponseStruct{Data=models.User}	"models.User"
@Router			/v1/systemrole/{systemrole_id}/user/{user_id} [delete]
@Security		JWT

func (*SystemRoleHandler) ListSystemRole

func (h *SystemRoleHandler) ListSystemRole(c *gin.Context)

ListSystemRole 列表 SystemRole

@Tags			SystemRole
@Summary		SystemRole列表
@Description	SystemRole列表
@Accept			json
@Produce		json
@Param			RoleName	query		string																		false	"RoleName"
@Param			preload		query		string																		false	"choices Users"
@Param			page		query		int																			false	"page"
@Param			size		query		int																			false	"page"
@Param			search		query		string																		false	"search in (RoleName)"
@Success		200			{object}	handlers.ResponseStruct{Data=handlers.PageData{List=[]models.SystemRole}}	"SystemRole"
@Router			/v1/systemrole [get]
@Security		JWT

func (*SystemRoleHandler) ListSystemRoleUser

func (h *SystemRoleHandler) ListSystemRoleUser(c *gin.Context)

ListSystemRoleUser 获取属于SystemRole的 User 列表

@Tags			SystemRole
@Summary		获取属于 SystemRole 的 User 列表
@Description	获取属于 SystemRole 的 User 列表
@Accept			json
@Produce		json
@Param			systemrole_id	path		uint																true	"systemrole_id"
@Param			preload			query		string																false	"choices Tenants,SystemRole"
@Param			page			query		int																	false	"page"
@Param			size			query		int																	false	"page"
@Success		200				{object}	handlers.ResponseStruct{Data=handlers.PageData{List=[]models.User}}	"models.User"
@Router			/v1/systemrole/{systemrole_id}/user [get]
@Security		JWT

func (*SystemRoleHandler) PostSystemRole

func (h *SystemRoleHandler) PostSystemRole(c *gin.Context)

PostSystemRole 创建SystemRole

@Tags			SystemRole
@Summary		创建SystemRole
@Description	创建SystemRole
@Accept			json
@Produce		json
@Param			param	body		models.SystemRole								true	"表单"
@Success		200		{object}	handlers.ResponseStruct{Data=models.SystemRole}	"SystemRole"
@Router			/v1/systemrole [post]
@Security		JWT

func (*SystemRoleHandler) PutSystemRoleUser

func (h *SystemRoleHandler) PutSystemRoleUser(c *gin.Context)

PutSystemRoleUser 修改 User 和 SystemRole 的关联关系

@Tags			SystemRole
@Summary		修改 User 和 SystemRole 的关联关系
@Description	修改 User 和 SystemRole 的关联关系
@Accept			json
@Produce		json
@Param			systemrole_id	path		uint										true	"systemrole_id"
@Param			user_id			path		uint										true	"user_id"
@Success		200				{object}	handlers.ResponseStruct{Data=models.User}	"models.User"
@Router			/v1/systemrole/{systemrole_id}/user/{user_id} [put]
@Security		JWT

func (*SystemRoleHandler) RegistRouter

func (h *SystemRoleHandler) RegistRouter(rg *gin.RouterGroup)

func (*SystemRoleHandler) RetrieveSystemRole

func (h *SystemRoleHandler) RetrieveSystemRole(c *gin.Context)

RetrieveSystemRole SystemRole详情

@Tags			SystemRole
@Summary		SystemRole详情
@Description	get SystemRole详情
@Accept			json
@Produce		json
@Param			systemrole_id	path		uint											true	"systemrole_id"
@Success		200				{object}	handlers.ResponseStruct{Data=models.SystemRole}	"SystemRole"
@Router			/v1/systemrole/{systemrole_id} [get]
@Security		JWT

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL