Documentation ¶
Index ¶
- func GetCodeByDepartId(departId string) string
- func ImagesAdd(data SysImages) error
- func ImagesGetList(pl utils.PageList, departId string) (utils.PageList, error)
- func SysButtonGetByDepart(departId string) []string
- func SysButtonGetList() []string
- type AdminAuth
- type SysApiList
- type SysDepart
- func (a *SysDepart) Add() error
- func (a *SysDepart) AddRules(ids []string) error
- func (a *SysDepart) Del() error
- func (a *SysDepart) DelRules(ids []string) error
- func (a *SysDepart) Edit() error
- func (a *SysDepart) GetCode() string
- func (a *SysDepart) GetList(usdata SysMember) []SysDepart
- func (a *SysDepart) GetRules() []SysDepartRules
- func (a *SysDepart) Refresh() error
- type SysDepartDict
- type SysDepartRules
- type SysDictList
- type SysImages
- type SysMember
- type SysMenus
- type SysRole
- func (a *SysRole) Add() error
- func (a *SysRole) Del() error
- func (a *SysRole) Edit() error
- func (a *SysRole) GetList(page utils.PageList, where string, v ...interface{}) utils.PageList
- func (a *SysRole) GetRoleMenus() []SysMenus
- func (a *SysRole) Refresh() error
- func (a *SysRole) SetRoleStatus() error
- type SysRoleRules
- type SysRoleRulesList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCodeByDepartId ¶
func ImagesGetList ¶
获取图片列表
func SysButtonGetList ¶
func SysButtonGetList() []string
Types ¶
type AdminAuth ¶
type SysApiList ¶
type SysApiList struct { ID string `gorm:"primary_key" json:"id" form:"id"` MenuId string `json:"menuId" form:"menuId" dict:"MenuName_sysMenus" ` MenuName string `gorm:"-" json:"menuName"` Path string `json:"path"` Method string `json:"method"` Name string `json:"name"` CreateTime int64 `json:"createTime"` //创建时间 UpdateTime int64 `json:"updateTime"` //修改时间 Status int `json:"status"` //角色状态(-1禁用,1启用) utils.PageList }
type SysDepart ¶
type SysDepart struct { ID string `gorm:"primary_key" json:"id" form:"id"` //uuid Pid string `json:"pid" form:"pid"` //父级ID Name string `json:"name" form:"name"` //分组名称(机构名称) Code string `json:"code"` //分组编码 Type int `json:"type" dict:"TypeStr_DepartType"` //类型(1集团,2公司,3部门,4服务门店) TypeStr string `json:"typeStr" gorm:"-"` Telephone string `json:"telephone"` //联系电话 Phone string `json:"phone"` //联系手机 Address string `json:"address"` //地址 SortNo int `json:"sortNo"` //排序 CreateTime int64 `json:"createTime"` //创建时间 UpdateTime int64 `json:"updateTime"` //更新时间 Disabled bool `gorm:"-" json:"disabled"` List []SysDepart `gorm:"-" json:"children"` }
func SysDepartDigui ¶
func SysDepartGetBYId ¶
func SysDepartGetByCode ¶
type SysDepartDict ¶
type SysDepartRules ¶
type SysDepartRules struct { ID string `gorm:"primary_key" json:"id"` // DepartId string `json:"departId"` //组织结构ID OrgCode string `json:"orgCode"` //组织结构编码 MenuId string `json:"menuId"` //菜单ID CreateTime int64 `json:"createTime"` // }
func DepartRulesByDeaprtId ¶
func DepartRulesByDeaprtId(id string) []SysDepartRules
type SysDictList ¶
type SysDictList struct { ID string `gorm:"primary_key" json:"id" form:"id"` // ParentId string `json:"parentId" form:"parentId"` // ParentName string `json:"parentName" form:"parentName"` //字典名称 Value string `json:"value"` //值 Name string `json:"name"` //名称 Status int `json:"status"` //1正常,2停用,10已删除 Sort int `json:"sort"` //排序 Type int `json:"type"` //1自定义 2 数据表 TableKey string `json:"tableKey"` //数据表主键 TableVal string `json:"tableVal"` //数据包值 utils.PageList }
func GetDictByParent ¶
func GetDictByParent(parent string) []SysDictList
func (*SysDictList) GetByCode ¶
func (a *SysDictList) GetByCode() []dictlist
type SysMember ¶
type SysMember struct { ID string `gorm:"primary_key" json:"id"` // DepartId string `json:"departId" form:"departId" dict:"DepartName_sysDepart" ` //组织结构ID DepartName string `json:"departName" gorm:"-"` RoleId string `json:"roleId" form:"roleId" dict:"RoleName_sysRole" ` //角色ID RoleName string `json:"roleName" gorm:"-"` UID string `json:"uid"` //会员ID Username string `json:"username" form:"username"` //登陆账号 Password string `json:"password"` //密码 Nickname string `json:"nickname" form:"nickname"` //昵称 Realname string `json:"realname" form:"realname"` //真实姓名 Headimgurl string `json:"headimgurl"` //头像 Mp string `json:"mp"` //手机号 Idcard string `json:"idcard"` //身份证号码 Sex int `json:"sex"` //性别 1男2女 Status int `json:"status"` //1正常,2禁用 OrgCode string `json:"orgCode"` //组织结构编码 Remark string `json:"remark"` //备注 CreateTime int64 `json:"createTime"` //创建时间 UpdateTime int64 `json:"updateTime"` //更新时间 Files string `json:"files"` //附件 utils.PageList }
type SysMenus ¶
type SysMenus struct { ID string `gorm:"primary_key" json:"id" form:"name"` // Pid string `json:"pid"` // Name string `json:"name" form:"name"` // Component string `json:"component"` //组件地址 Icon string `json:"icon"` //图片 IsExt int `json:"isExt"` //是否外链 Keepalive int `json:"keepalive"` //是否缓存 Show int `json:"show"` //是否显示 Type int `json:"type"` //类型 1目录2菜单 3按钮 SortNo int `json:"sortNo"` //排序 RoutePath string `json:"routePath"` //路由地址 Permission string `json:"permission"` //权限编码 Status int `json:"status"` //是否启用 0启用1禁用 CreateTime int64 `json:"createTime"` // IframeSrc string `json:"iframeSrc"` //是否嵌套 RouteName string `json:"routeName"` //路由名称 Redirect string `json:"redirect"` //默认页 Props string `json:"props"` Bindapi int `json:"bindapi"` List []SysMenus `gorm:"-" json:"children"` }
func GetMenusList ¶
func GetMenusList() []SysMenus
type SysRole ¶
type SysRole struct { ID string `gorm:"primary_key" json:"id" form:"id"` //角色ID DepartId string `json:"departId" form:"departId" dict:"DepartName_sysDepart" ` //组织结构ID DepartName string `gorm:"-" json:"departName"` OrgCode string `json:"orgCode"` //组织结构代码 RoleName string `json:"roleName"` //角色名称 Status int `json:"status"` //角色状态(-1禁用,1启用) CreateTime int64 `json:"createTime"` //创建时间 UpdateTime int64 `json:"updateTime"` //修改时间 Remark string `json:"remark"` //备注 utils.PageList }
func GetSysRoleByDepart ¶
type SysRoleRules ¶
type SysRoleRules struct { ID string `gorm:"primary_key" json:"id" form:"id"` // RoleId string `json:"roleId"` // ApiId string `json:"apiId"` MenuId string `json:"menuId"` // OrgCode string `json:"orgCode"` //部门数据 WhereCode string `json:"whereCode"` //其他条件 Status int `json:"status"` //权限状态(-1禁用,1启用) CreateTime int64 `json:"createTime"` // UpdateTime int64 `json:"updateTime"` //修改时间 }
func (*SysRoleRules) GetByApiVsRole ¶
func (a *SysRoleRules) GetByApiVsRole()
type SysRoleRulesList ¶
type SysRoleRulesList struct { ID string `gorm:"primary_key" json:"id" form:"id"` MenuId string `json:"menuId" form:"menuId" dict:"MenuName_sysMenus" ` MenuName string `gorm:"-" json:"menuName"` Path string `json:"path"` Method string `json:"method"` Name string `json:"name"` RulesId string `json:"rulesId" gorm:"column:rulesId"` //权限ID RoleId string `json:"roleId" form:"roleId"` //校色ID OrgCode string `json:"orgCode"` //部门数据 WhereCode string `json:"whereCode"` //其他条件 Status int `json:"status"` //权限状态(-1禁用,1启用) CreateTime int64 `json:"createTime"` // UpdateTime int64 `json:"updateTime"` //修改时间 }
func (*SysRoleRulesList) Edit ¶
func (a *SysRoleRulesList) Edit() error
func (*SysRoleRulesList) GetRoleReles ¶
func (a *SysRoleRulesList) GetRoleReles() []SysRoleRulesList
根据角色获取api列表
Click to show internal directories.
Click to hide internal directories.