http

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAPI

func AddAPI(c *gin.Context)

AddAPI godoc @Summary 新增API @Description 新增API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.APIInfo true "Add API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/add [post]

func AddAPP

func AddAPP(c *gin.Context)

func AddMenu

func AddMenu(c *gin.Context)

func AddRole

func AddRole(c *gin.Context)

func AddTenant

func AddTenant(c *gin.Context)

func AddTitle

func AddTitle(c *gin.Context)

func AddUser

func AddUser(c *gin.Context)

func ChangePwd

func ChangePwd(c *gin.Context)

func CopyTenant

func CopyTenant(c *gin.Context)

func DeleteAPI

func DeleteAPI(c *gin.Context)

DeleteAPI godoc @Summary 删除API @Description 软删除API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.DelRequest true "Delete API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/delete [delete]

func DeleteAPP

func DeleteAPP(c *gin.Context)

func DeleteMenu

func DeleteMenu(c *gin.Context)

func DeleteRole

func DeleteRole(c *gin.Context)

func DeleteTenant

func DeleteTenant(c *gin.Context)

func DeleteTitle

func DeleteTitle(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func EnableAPI

func EnableAPI(c *gin.Context)

EnableAPI godoc @Summary 禁用/启用API @Description 禁用/启用API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.EnableRequest true "Enable/Disable API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/enable [post]

func EnableTenant

func EnableTenant(c *gin.Context)

func EnableUser

func EnableUser(c *gin.Context)

func GetAPIDetail

func GetAPIDetail(c *gin.Context)

GetAPIDetail godoc @Summary 查询明细 @Description 查询明细 @Tags API管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAPIDetailResponse @Router /api/core/auth/api/detail [get]

func GetAPPDetail

func GetAPPDetail(c *gin.Context)

func GetAllAPI

func GetAllAPI(c *gin.Context)

GetAllAPI godoc @Summary 查询所有API @Description 查询所有API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllAPIResponse @Router /api/core/auth/api/all [get]

func GetAllAPP

func GetAllAPP(c *gin.Context)

func GetAllRole

func GetAllRole(c *gin.Context)

func GetAllTenant

func GetAllTenant(c *gin.Context)

func GetAllTitle

func GetAllTitle(c *gin.Context)

func GetAllUser

func GetAllUser(c *gin.Context)

func GetMenuDetail

func GetMenuDetail(c *gin.Context)

func GetMenuTree

func GetMenuTree(c *gin.Context)

func GetRoleDetail

func GetRoleDetail(c *gin.Context)

func GetTenantDetail

func GetTenantDetail(c *gin.Context)

func GetTitleDetail

func GetTitleDetail(c *gin.Context)

func GetUserDetail

func GetUserDetail(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func Profile

func Profile(c *gin.Context)

func QueryAPI

func QueryAPI(c *gin.Context)

QueryAPI godoc @Summary 分页查询 @Description 分页查询 @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param path query string false "路径" @Param method query string false "方法" @Param group query string false "分组" @Param checkAuth query string false "是否检查权限" @Param checkLogin query string false "是否需要登录" @Success 200 {object} apipb.QueryAPIResponse @Router /api/core/auth/api/query [get]

func QueryAPP

func QueryAPP(c *gin.Context)

func QueryMenu

func QueryMenu(c *gin.Context)

func QueryRole

func QueryRole(c *gin.Context)

func QueryTenant

func QueryTenant(c *gin.Context)

func QueryTitle

func QueryTitle(c *gin.Context)

func QueryUser

func QueryUser(c *gin.Context)

func RegisterAuthRouter

func RegisterAuthRouter(r *gin.Engine)

func RegisterTenantRouter

func RegisterTenantRouter(r *gin.Engine)

func ResetPwd

func ResetPwd(c *gin.Context)

func UpdateAPI

func UpdateAPI(c *gin.Context)

UpdateAPI godoc @Summary 更新API @Description 更新API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.APIInfo true "Update API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/update [put]

func UpdateAPP

func UpdateAPP(c *gin.Context)

func UpdateMenu

func UpdateMenu(c *gin.Context)

func UpdateRole

func UpdateRole(c *gin.Context)

func UpdateTenant

func UpdateTenant(c *gin.Context)

func UpdateTitle

func UpdateTitle(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

Types

type ChangePwdRequest

type ChangePwdRequest struct {
	model.CommonRequest
	ID            string `json:"id" form:"id" uri:"id"`
	OldPwd        string `json:"oldPwd" form:"oldPwd" uri:"oldPwd"`
	NewPwd        string `json:"newPwd" form:"newPwd" uri:"newPwd"`
	NewConfirmPwd string `json:"newConfirmPwd" form:"newConfirmPwd" uri:"newConfirmPwd"`
}

type ResetPwdRequest

type ResetPwdRequest struct {
	model.CommonRequest
	ID string `json:"id" form:"id" uri:"id"`
}

Jump to

Keyboard shortcuts

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