Documentation ¶
Index ¶
- Variables
- type Role
- func (u *Role) Create(db *gorm.DB, ce *casbin.Enforcer, resprole *schemago.RespRole) error
- func (u *Role) Delete(db *gorm.DB, ce *casbin.Enforcer, roleid string) error
- func (u *Role) Get(db *gorm.DB, roleid string) (*schemago.RespRole, error)
- func (u *Role) Query(db *gorm.DB, req *schemago.ReqRole) ([]schemago.SRole, int, error)
- func (u *Role) Update(db *gorm.DB, ce *casbin.Enforcer, resprole *schemago.RespRole) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = echo.NewHTTPError(http.StatusInternalServerError, "role has used,can`t delete")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.