Versions in this module Expand all Collapse all v0 v0.1.1 Jul 16, 2019 v0.1.0 Jun 11, 2019 Changes in this version + type Role struct + CreatedBy string + Enforcer *casbin.Enforcer + ID int + Menu []int + ModifiedBy string + Name string + PageNum int + PageSize int + func (a *Role) Add() (id int, err int) + func (a *Role) Count() (int, error) + func (a *Role) Delete() error + func (a *Role) Edit() (id, error int) + func (a *Role) ExistByID() (bool, error) + func (a *Role) Get() (*model.Role, error) + func (a *Role) GetAll() ([]*model.Role, error) + func (a *Role) LoadAllPolicy() error + func (a *Role) LoadPolicy(id int) error