// 总代理的可分配权限 private static void initGeneralAgencyDispatchRight() { DispatchRight dr = new DispatchRight(); m_rightForAccType.Add(AccType.ACC_GENERAL_AGENCY, dr); dr.addRight(RIGHT.VIEW_AGENCY, m_all[RIGHT.VIEW_AGENCY]); dr.addRight(RIGHT.SCORE, m_all[RIGHT.SCORE]); }
// 代理的可分配权限 private static void initAgencyDispatchRight() { DispatchRight dr = new DispatchRight(); m_rightForAccType.Add(AccType.ACC_AGENCY, dr); dr.addRight(RIGHT.VIEW_AGENCY, m_all[RIGHT.VIEW_AGENCY]); dr.addRight(RIGHT.SCORE, m_all[RIGHT.SCORE]); dr.addRight(RIGHT.CREATE_AGENCY, m_all[RIGHT.CREATE_AGENCY]); dr.addRight(RIGHT.CREATE_API, m_all[RIGHT.CREATE_API]); }
private static void initAdminSubDispatchRight() { DispatchRight dr = new DispatchRight(); m_rightForAccType.Add(AccType.ACC_SUPER_ADMIN_SUB, dr); dr.addRight(RIGHT.APPROVE_API, m_all[RIGHT.APPROVE_API]); dr.addRight(RIGHT.DATA_STAT, m_all[RIGHT.DATA_STAT]); dr.addRight(RIGHT.DEL_ACCOUNT, m_all[RIGHT.DEL_ACCOUNT]); dr.addRight(RIGHT.VIEW_AGENCY, m_all[RIGHT.VIEW_AGENCY]); dr.addRight(RIGHT.SCORE, m_all[RIGHT.SCORE]); }