init the project
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": ["meta", "features"],
|
||||
"properties": {
|
||||
"meta": {
|
||||
"type": "object",
|
||||
"required": ["prd_title", "extraction_date", "skill_used"],
|
||||
"properties": {
|
||||
"prd_title": { "type": "string", "description": "PRD 标题" },
|
||||
"extraction_date": { "type": "string", "description": "提取日期" },
|
||||
"skill_used": { "type": "string", "description": "使用的 Skill 名称" }
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["module", "feature_name", "description", "priority"],
|
||||
"properties": {
|
||||
"module": {
|
||||
"type": "string",
|
||||
"description": "所属模块",
|
||||
"enum": ["商品管理", "订单管理", "库存管理", "会员管理", "营销活动", "支付结算", "物流配送", "售后管理", "数据分析", "系统管理"]
|
||||
},
|
||||
"feature_name": { "type": "string", "description": "功能名称" },
|
||||
"description": { "type": "string", "description": "功能描述" },
|
||||
"inputs": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "输入参数列表"
|
||||
},
|
||||
"outputs": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "预期输出列表"
|
||||
},
|
||||
"preconditions": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "前置条件"
|
||||
},
|
||||
"constraints": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "约束条件,电商场景需额外关注:并发库存扣减、优惠叠加规则、支付超时、售后时效"
|
||||
},
|
||||
"priority": {
|
||||
"type": "string",
|
||||
"enum": ["P0", "P1", "P2"],
|
||||
"description": "功能优先级"
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "依赖的其他功能名称"
|
||||
},
|
||||
"business_rules": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "电商特有:业务规则(如满减规则、优惠券叠加逻辑、库存预留策略)"
|
||||
},
|
||||
"data_consistency": {
|
||||
"type": "string",
|
||||
"enum": ["强一致", "最终一致", "不要求"],
|
||||
"description": "电商特有:数据一致性要求级别"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user