Documentation ¶
Index ¶
Constants ¶
View Source
const ( VIEW uint16 = 2 << iota DISABLE REMOVE EDIT CREATE EXPORT IMPORT BATCH GET POST PUT DELETE OPTION GRANT REVOKE ALL = ^uint16(0) // 65535 NONE uint16 = 0 // 无权限 )
操作列表
Variables ¶
View Source
var ( AccessCodes []uint16 AccessNames = map[uint16]string{ VIEW: "view", DISABLE: "disable", REMOVE: "remove", EDIT: "edit", CREATE: "create", EXPORT: "export", IMPORT: "import", BATCH: "batch", GET: "get", POST: "post", PUT: "put", DELETE: "delete", OPTION: "option", GRANT: "grant", REVOKE: "revoke", ALL: "all", NONE: "", } AccessTitles = map[uint16]string{ VIEW: "查看", DISABLE: "禁用", REMOVE: "删除", EDIT: "编辑", CREATE: "新建", EXPORT: "导出", IMPORT: "导入", BATCH: "批量", GET: "GET", POST: "POST", PUT: "PUT", DELETE: "DELETE", OPTION: "OPTION", GRANT: "授权", REVOKE: "撤销", ALL: "全部", NONE: "无", } )
Functions ¶
func ContainAction ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.