package systemuser import ( "github.com/flipped-aurora/gin-vue-admin/server/global" "github.com/flipped-aurora/gin-vue-admin/server/model/systemuser" "github.com/gin-gonic/gin" ) //角色相关 /* 角色列表 */ func (s *SystemRoleApi) SystemRoleList(c *gin.Context) {} //获取角色详细内容 func GetAdminRoleInfo(id int64) (isTrue bool, adminRoleInfo systemuser.SystemRole) { isTrue = false err := global.GVA_DB_Master.Where("r_id = ?", id).First(&adminRoleInfo).Error if err == nil { isTrue = true } return }