import { Router } from 'express';
import { requirePermission } from '../../core/guards/rbac.guard';
import { requireTraceContext } from '../../core/guards/trace-context.guard';
import { BizController } from '../controllers/BizController';

const router = Router();

/**
 * [BIZ_START_01] 前期业务 API (Early Stage Business)
 * @description 处理新手引导、极速刊登、店铺初始化等“冷启动”业务。
 */
router.get('/onboarding', requireTraceContext, BizController.getOnboarding);
router.post('/localization/start', requireTraceContext, BizController.startLocalization); // [BIZ_TOC_01]
router.post('/store/setup', requireTraceContext, requirePermission('tenant:setup'), BizController.setupStore);
router.post('/listing/quick', requireTraceContext, requirePermission('product:write'), BizController.quickListing);
router.get('/sourcing/radar', requireTraceContext, BizController.getSourcingRadar);

export default router;
