user

package
v0.0.0-...-3b47b55 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Permissions = []map[string]interface{}{
	{
		"name":           "异常页面权限",
		"roleId":         "admin",
		"permissionId":   "exception",
		"permissionName": "异常页面权限",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "仪表盘",
		"roleId":         "admin",
		"permissionId":   "dashboard",
		"permissionName": "仪表盘",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "分析页",
		"roleId":         "test",
		"permissionId":   "dashboard",
		"permissionName": "仪表盘",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "权限管理",
		"roleId":         "admin",
		"permissionId":   "permission",
		"permissionName": "权限管理",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "角色管理",
		"roleId":         "admin",
		"permissionId":   "role",
		"permissionName": "角色管理",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "用户管理",
		"roleId":         "admin",
		"permissionId":   "users",
		"permissionName": "用户管理",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "超级模块",
		"roleId":         "admin",
		"permissionId":   "support",
		"permissionName": "超级模块",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "帐户设置",
		"roleId":         "admin",
		"permissionId":   "user",
		"permissionName": "帐户设置",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
	{
		"name":           "系统管理",
		"roleId":         "admin",
		"permissionId":   "system",
		"permissionName": "系统管理",
		"actionData":     `[{"action":"add","defaultCheck":false,"describe":"新增"},{"action":"query","defaultCheck":false,"describe":"查询"},{"action":"get","defaultCheck":false,"describe":"详情"},{"action":"update","defaultCheck":false,"describe":"修改"},{"action":"delete","defaultCheck":false,"describe":"删除"}]`,
		"actionEntitySet": []map[string]interface{}{{
			"action":       "add",
			"describe":     "新增",
			"defaultCheck": false,
		}, {
			"action":       "query",
			"describe":     "查询",
			"defaultCheck": false,
		}, {
			"action":       "get",
			"describe":     "详情",
			"defaultCheck": false,
		}, {
			"action":       "update",
			"describe":     "修改",
			"defaultCheck": false,
		}, {
			"action":       "delete",
			"describe":     "删除",
			"defaultCheck": false,
		}},
		"actionList": nil,
		"dataAccess": nil,
	},
}

Functions

func ChangePasswordAction

func ChangePasswordAction(c *gin.Context)

func ForgetPasswordAction

func ForgetPasswordAction(c *gin.Context)

func LoginAction

func LoginAction(c *gin.Context)

func LogoutAction

func LogoutAction(c *gin.Context)

func RegisterAction

func RegisterAction(c *gin.Context)

func ResetPasswordAction

func ResetPasswordAction(c *gin.Context)

func Step2CodeAction

func Step2CodeAction(c *gin.Context)

func UserInfoAction

func UserInfoAction(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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