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 + func AddMenu(data map[string]interface{}) error + func AddRole(data map[string]interface{}) (id int, err error) + func AddUser(data map[string]interface{}) (id int, err error) + func CheckRoleName(name string) (bool, error) + func CheckRoleNameId(name string, id int) (bool, error) + func CheckUser(username, password string) (bool, error) + func CheckUserUsername(username string) (bool, error) + func CheckUserUsernameId(username string, id int) (bool, error) + func CleanAllMenu() error + func CleanAllRole() error + func CleanAllUser() error + func CloseDB() + func DeleteMenu(id int) error + func DeleteRole(id int) error + func DeleteUser(id int) error + func EditMenu(id int, data interface{}) error + func EditMenuGetRoles(id int) []int + func EditRole(id int, data map[string]interface{}) error + func EditUser(id int, data map[string]interface{}) (ids int, err error) + func ExistMenuByID(id int) (bool, error) + func ExistRoleByID(id int) (bool, error) + func ExistUserByID(id int) (bool, error) + func GetMenuTotal(maps interface{}) (int, error) + func GetRoleTotal(maps interface{}) (int, error) + func GetUserTotal(maps interface{}) (int, error) + type Menu struct + Method string + Name string + Path string + func GetMenu(id int) (*Menu, error) + func GetMenus(pageNum int, pageSize int, maps interface{}) ([]*Menu, error) + type Model struct + CreatedOn int + DeletedOn int + ID int + ModifiedOn int + type Role struct + Menu []Menu + Name string + func GetRole(id int) (*Role, error) + func GetRoles(pageNum int, pageSize int, maps interface{}) ([]*Role, error) + func GetRolesAll() ([]*Role, error) + type User struct + Password string + Role []Role + Username string + func GetUser(id int) (*User, error) + func GetUsers(pageNum int, pageSize int, maps interface{}) ([]*User, error) + func GetUsersAll() ([]*User, error)