import { Module } from '@nestjs/common';
import { GroupsService } from './groups.service.js';
import { GroupsController } from './groups.controller.js';
import { AccessTokenGuard } from '../auth/access-token.guard.js';
import { RolesGuard } from '../auth/roles.guard.js';
import { OrganizationAccessService } from '../organization-common/organization-access.service.js';

/**
 * 小组资源模块：聚合小组控制器与服务。
 */
@Module({
  controllers: [GroupsController],
  providers: [
    GroupsService,
    OrganizationAccessService,
    AccessTokenGuard,
    RolesGuard,
  ],
  exports: [GroupsService],
})
export class GroupsModule {}
