middle

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminAuth

func AdminAuth() gin.HandlerFunc

func GetApiData

func GetApiData(path string) model.SysApiList

更具PATH获取API数据

func GetRoleRules

func GetRoleRules(apiid, roleid string) model.SysRoleRules

更具角色获取该api的权限

func SqlRuleVerify

func SqlRuleVerify(c *gin.Context, data model.AdminAuth) error

数据权限中间件

Types

type Response

type Response struct {
	Code      int         `json:"code"`
	Message   string      `json:"message"`
	Result    interface{} `json:"result"`
	Success   string      `json:"success"`
	Timestamp int64       `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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