Documentation ¶
Index ¶
Constants ¶
View Source
const ( VIEW uint16 = 2 << iota DISABLE REMOVE EDIT CREATE GET POST GRANT ALL = ^uint16(0) // 65535 NONE uint16 = 0 // 无权限 )
操作列表
Variables ¶
View Source
var ( AccessNames = map[uint16]string{ VIEW: "view", DISABLE: "disable", REMOVE: "remove", EDIT: "edit", CREATE: "create", GET: "get", POST: "post", GRANT: "grant", ALL: "all", NONE: "", } AccessTitles = map[uint16]string{ VIEW: "查看", DISABLE: "禁用", REMOVE: "删除", EDIT: "编辑", CREATE: "新建", GET: "GET", POST: "POST", GRANT: "授权", ALL: "全部", NONE: "无", } )
Functions ¶
func ContainAction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.