system

package
v0.0.0-...-b35005d Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiApi

type ApiApi struct{}

func (*ApiApi) AddApi

func (a *ApiApi) AddApi(c *gin.Context)

AddApi 添加api

func (*ApiApi) DeleteApi

func (a *ApiApi) DeleteApi(c *gin.Context)

DeleteApi 删除指定api

func (*ApiApi) EditApi

func (a *ApiApi) EditApi(c *gin.Context)

EditApi 编辑api

func (*ApiApi) GetApis

func (a *ApiApi) GetApis(c *gin.Context)

GetApis 列出所有api

func (*ApiApi) GetElTreeApis

func (a *ApiApi) GetElTreeApis(c *gin.Context)

GetElTreeApis 格式化列出所有api

type ApiGroup

type ApiGroup struct {
	BaseApi
	UserApi
	MenuApi
	RoleApi
	ApiApi
	CasbinApi
	JwtApi
}

type BaseApi

type BaseApi struct{}

func (*BaseApi) Captcha

func (ba *BaseApi) Captcha(c *gin.Context)

Captcha @Tags Base @Summary 生成验证码 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{data=systemRes.SysCaptchaResponse,msg=string} "生成验证码,返回包括随机数id,base64,验证码长度" @Router /base/captcha [post]

func (*BaseApi) Login

func (ba *BaseApi) Login(c *gin.Context)

Login @Tags Base @Summary 用户登录 @Produce application/json @Param data body systemReq.Login true "用户名, 密码, 验证码" @Success 200 {object} response.Response{data=systemRes.LoginResponse,msg=string} "返回包括用户信息,token,过期时间" @Router /base/login [post]

type CasbinApi

type CasbinApi struct{}

func (*CasbinApi) EditCasbin

func (ca *CasbinApi) EditCasbin(c *gin.Context)

type JwtApi

type JwtApi struct{}

func (*JwtApi) JoinInBlacklist

func (j *JwtApi) JoinInBlacklist(c *gin.Context)

JoinInBlacklist @Tags Jwt @Summary jwt加入黑名单 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{msg=string} "jwt加入黑名单" @Router /jwt/jsonInBlacklist [post]

type MenuApi struct{}
func (ma *MenuApi) AddMenu(c *gin.Context)
func (ma *MenuApi) DeleteMenu(c *gin.Context)
func (ma *MenuApi) EditMenu(c *gin.Context)
func (ma *MenuApi) GetElTreeMenus(c *gin.Context)
func (ma *MenuApi) GetMenus(c *gin.Context)

type RoleApi

type RoleApi struct{}

func (*RoleApi) AddRole

func (ra *RoleApi) AddRole(c *gin.Context)

AddRole 添加角色

func (*RoleApi) DeleteRole

func (ra *RoleApi) DeleteRole(c *gin.Context)

DeleteRole 删除角色

func (*RoleApi) EditRole

func (ra *RoleApi) EditRole(c *gin.Context)

EditRole 编辑用户

func (*RoleApi) EditRoleMenu

func (ra *RoleApi) EditRoleMenu(c *gin.Context)

EditRoleMenu 编辑用户menu

func (*RoleApi) GetRoles

func (ra *RoleApi) GetRoles(c *gin.Context)

GetRoles 获取所有角色

type UserApi

type UserApi struct{}

func (*UserApi) AddUser

func (ua *UserApi) AddUser(c *gin.Context)

AddUser 添加用户

func (*UserApi) DeleteUser

func (ua *UserApi) DeleteUser(c *gin.Context)

DeleteUser 删除用户

func (*UserApi) EditUser

func (ua *UserApi) EditUser(c *gin.Context)

EditUser 编辑用户

func (*UserApi) GetUserInfo

func (ua *UserApi) GetUserInfo(c *gin.Context)

GetUserInfo 获取用户信息

func (*UserApi) GetUsers

func (ua *UserApi) GetUsers(c *gin.Context)

GetUsers 获取所有用户

func (*UserApi) ModifyPass

func (ua *UserApi) ModifyPass(c *gin.Context)

ModifyPass 修改用户密码

func (*UserApi) SwitchActive

func (ua *UserApi) SwitchActive(c *gin.Context)

SwitchActive 切换启用状态

Jump to

Keyboard shortcuts

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