Documentation ¶
Index ¶
- func DeleteConfig(c *gin.Context)
- func DeleteDept(c *gin.Context)
- func DeleteMenu(c *gin.Context)
- func DeletePost(c *gin.Context)
- func DeleteRole(c *gin.Context)
- func DeleteRoleMenu(c *gin.Context)
- func DeleteSysUser(c *gin.Context)
- func GenerateCaptchaHandler(c *gin.Context)
- func GetConfig(c *gin.Context)
- func GetConfigByConfigKey(c *gin.Context)
- func GetConfigList(c *gin.Context)
- func GetDept(c *gin.Context)
- func GetDeptList(c *gin.Context)
- func GetDeptTree(c *gin.Context)
- func GetDeptTreeRoleselect(c *gin.Context)
- func GetInfo(c *gin.Context)
- func GetMenu(c *gin.Context)
- func GetMenuIDS(c *gin.Context)
- func GetMenuList(c *gin.Context)
- func GetMenuRole(c *gin.Context)
- func GetMenuTreeRoleselect(c *gin.Context)
- func GetMenuTreeelect(c *gin.Context)
- func GetPost(c *gin.Context)
- func GetPostList(c *gin.Context)
- func GetRole(c *gin.Context)
- func GetRoleList(c *gin.Context)
- func GetRoleMenu(c *gin.Context)
- func GetSysUser(c *gin.Context)
- func GetSysUserInit(c *gin.Context)
- func GetSysUserList(c *gin.Context)
- func GetSysUserProfile(c *gin.Context)
- func InsertConfig(c *gin.Context)
- func InsertDept(c *gin.Context)
- func InsertMenu(c *gin.Context)
- func InsertPost(c *gin.Context)
- func InsertRole(c *gin.Context)
- func InsertRoleMenu(c *gin.Context)
- func InsertSysUser(c *gin.Context)
- func InsetSysUserAvatar(c *gin.Context)
- func SysUserUpdatePwd(c *gin.Context)
- func UpdateConfig(c *gin.Context)
- func UpdateDept(c *gin.Context)
- func UpdateMenu(c *gin.Context)
- func UpdatePost(c *gin.Context)
- func UpdateRole(c *gin.Context)
- func UpdateRoleDataScope(c *gin.Context)
- func UpdateSysUser(c *gin.Context)
- type RoleMenuPost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConfig ¶
@Summary 删除配置 @Description 删除数据 @Tags 配置 @Param configId path int true "configId" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/config/{configId} [delete]
func DeleteDept ¶
@Summary 删除部门 @Description 删除数据 @Tags 部门 @Param id path int true "id" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/dept/{id} [delete]
func DeleteMenu ¶
@Summary 删除菜单 @Description 删除数据 @Tags 菜单 @Param id path int true "id" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/menu/{id} [delete]
func DeletePost ¶
@Summary 删除职位 @Description 删除数据 @Tags 职位 @Param id path int true "id" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/post/{postId} [delete]
func DeleteRole ¶
@Summary 删除用户角色 @Description 删除数据 @Tags 角色/Role @Param roleId path int true "roleId" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/role/{roleId} [delete]
func DeleteRoleMenu ¶
@Summary 删除用户菜单数据 @Description 删除数据 @Tags 角色菜单 @Param id path string true "id" @Param menu_id query string false "menu_id" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/rolemenu/{id} [delete]
func DeleteSysUser ¶
@Summary 删除用户数据 @Description 删除数据 @Tags 用户 @Param userId path int true "userId" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/sysuser/{userId} [delete]
func GenerateCaptchaHandler ¶
func GetConfig ¶
@Summary 获取配置 @Description 获取JSON @Tags 配置 @Param configId path int true "配置编码" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/config/{configId} [get] @Security
func GetConfigByConfigKey ¶
@Summary 获取配置 @Description 获取JSON @Tags 配置 @Param configKey path int true "configKey" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/configKey/{configKey} [get] @Security
func GetConfigList ¶
@Summary 配置列表数据 @Description 获取JSON @Tags 配置 @Param configKey query string false "configKey" @Param configName query string false "configName" @Param configType query string false "configType" @Param pageSize query int false "页条数" @Param pageIndex query int false "页码" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/configList [get] @Security
func GetDept ¶
@Summary 部门列表数据 @Description 获取JSON @Tags 部门 @Param deptId path string false "deptId" @Param position query string false "position" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/dept/{deptId} [get] @Security
func GetDeptList ¶
@Summary 分页部门列表数据 @Description 分页列表 @Tags 部门 @Param name query string false "name" @Param id query string false "id" @Param position query string false "position" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/deptList [get] @Security
func GetDeptTree ¶
func GetDeptTreeRoleselect ¶
func GetMenu ¶
@Summary Menu列表数据 @Description 获取JSON @Tags 菜单 @Param menuName query string false "menuName" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/menu [get] @Security Bearer
func GetMenuIDS ¶
@Summary 获取角色对应的菜单id数组 @Description 获取JSON @Tags 菜单 @Param id path int true "id" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/menuids/{id} [get] @Security Bearer
func GetMenuList ¶
@Summary Menu列表数据 @Description 获取JSON @Tags 菜单 @Param menuName query string false "menuName" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/menulist [get] @Security Bearer
func GetMenuRole ¶
@Summary 根据角色名称获取菜单列表数据(左菜单使用) @Description 获取JSON @Tags 菜单 @Param id path int true "id" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/menurole [get] @Security Bearer
func GetMenuTreeRoleselect ¶
func GetMenuTreeelect ¶
@Summary 获取菜单树 @Description 获取JSON @Tags 菜单 @Accept application/x-www-form-urlencoded @Product application/x-www-form-urlencoded @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/menuTreeselect [get] @Security Bearer
func GetPost ¶
@Summary 获取字典数据 @Description 获取JSON @Tags 字典数据 @Param postId path int true "postId" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/post/{postId} [get] @Security
func GetPostList ¶
@Summary 职位列表数据 @Description 获取JSON @Tags 职位 @Param name query string false "name" @Param id query string false "id" @Param position query string false "position" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/post [get] @Security
func GetRole ¶
@Summary 获取Role数据 @Description 获取JSON @Tags 角色/Role @Param roleId path string false "roleId" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/role [get] @Security Bearer
func GetRoleList ¶
@Summary 角色列表数据 @Description Get JSON @Tags 角色/Role @Param roleName query string false "roleName" @Param status query string false "status" @Param roleKey query string false "roleKey" @Param pageSize query int false "页条数" @Param pageIndex query int false "页码" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/rolelist [get] @Security
func GetRoleMenu ¶
@Summary RoleMenu列表数据 @Description 获取JSON @Tags 角色菜单 @Param RoleId query string false "RoleId" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/rolemenu [get] @Security Bearer
func GetSysUser ¶
@Summary 获取用户 @Description 获取JSON @Tags 用户 @Param userId path int true "用户编码" @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/sysUser/{userId} [get] @Security
func GetSysUserInit ¶
@Summary 获取用户角色和职位 @Description 获取JSON @Tags 用户 @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/sysUser [get] @Security
func GetSysUserList ¶
@Summary 列表数据 @Description 获取JSON @Tags 用户 @Param username query string false "username" @Success 200 {string} string "{"code": 200, "data": [...]}" @Success 200 {string} string "{"code": -1, "message": "抱歉未找到相关信息"}" @Router /api/v1/sysUserList [get] @Security Bearer
func GetSysUserProfile ¶
@Summary 获取当前登录用户 @Description 获取JSON @Tags 个人中心 @Success 200 {object} models.Response "{"code": 200, "data": [...]}" @Router /api/v1/user/profile [get] @Security
func InsertConfig ¶
@Summary 添加配置 @Description 获取JSON @Tags 配置 @Accept application/json @Product application/json @Param data body models.SysConfig true "data" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/dict/data [post] @Security Bearer
func InsertDept ¶
@Summary 添加部门 @Description 获取JSON @Tags 部门 @Accept application/json @Product application/json @Param data body models.Dept true "data" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/dept [post] @Security Bearer
func InsertMenu ¶
@Summary 创建菜单 @Description 获取JSON @Tags 菜单 @Accept application/x-www-form-urlencoded @Product application/x-www-form-urlencoded @Param menuName formData string true "menuName" @Param Path formData string false "Path" @Param Action formData string true "Action" @Param Permission formData string true "Permission" @Param ParentId formData string true "ParentId" @Param IsDel formData string true "IsDel" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/menu [post] @Security Bearer
func InsertPost ¶
@Summary 添加职位 @Description 获取JSON @Tags 职位 @Accept application/json @Product application/json @Param data body models.Post true "data" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/post [post] @Security Bearer
func InsertRole ¶
@Summary 创建角色 @Description 获取JSON @Tags 角色/Role @Accept application/json @Product application/json @Param data body models.Config true "data" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/role [post]
func InsertRoleMenu ¶
func InsertSysUser ¶
@Summary 创建用户 @Description 获取JSON @Tags 用户 @Accept application/json @Product application/json @Param data body models.SysUser true "用户数据" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/sysUser [post]
func InsetSysUserAvatar ¶
@Summary 修改头像 @Description 获取JSON @Tags 用户 @Accept multipart/form-data @Param file formData file true "file" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/user/profileAvatar [post]
func SysUserUpdatePwd ¶
func UpdateConfig ¶
@Summary 修改配置 @Description 获取JSON @Tags 配置 @Accept application/json @Product application/json @Param data body models.Config true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/config [put] @Security Bearer
func UpdateDept ¶
@Summary 修改部门 @Description 获取JSON @Tags 部门 @Accept application/json @Product application/json @Param id path int true "id" @Param data body models.Dept true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/dept [put] @Security Bearer
func UpdateMenu ¶
@Summary 修改菜单 @Description 获取JSON @Tags 菜单 @Accept application/x-www-form-urlencoded @Product application/x-www-form-urlencoded @Param id path int true "id" @Param data body models.Menu true "body" @Success 200 {string} string "{"code": 200, "message": "修改成功"}" @Success 200 {string} string "{"code": -1, "message": "修改失败"}" @Router /api/v1/menu/{id} [put] @Security Bearer
func UpdatePost ¶
@Summary 修改职位 @Description 获取JSON @Tags 职位 @Accept application/json @Product application/json @Param data body models.Dept true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/post/ [put] @Security Bearer
func UpdateRole ¶
@Summary 修改用户角色 @Description 获取JSON @Tags 角色/Role @Accept application/json @Product application/json @Param data body models.SysRole true "body" @Success 200 {string} string "{"code": 200, "message": "修改成功"}" @Success 200 {string} string "{"code": -1, "message": "修改失败"}" @Router /api/v1/role [put]
func UpdateRoleDataScope ¶
func UpdateSysUser ¶
@Summary 修改用户数据 @Description 获取JSON @Tags 用户 @Accept application/json @Product application/json @Param data body models.SysUser true "body" @Success 200 {string} string "{"code": 200, "message": "修改成功"}" @Success 200 {string} string "{"code": -1, "message": "修改失败"}" @Router /api/v1/sysuser/{userId} [put]