材料盘点
原能力
按照阶段整理必要文件,给缺少或未经核实的材料设置责任与到期时间。(细化版 p.14–15)
首选项目
CKAN(AGPL-3.0)。 CKAN
接入说明
首选 CKAN 记录证据资源、文件来源和版本。Portfolio 作为投资项目台账的对照。
匹配范围
按项目记录材料与资源元数据。
源码
CKAN · def resource_create(
ckan/logic/action/resource.py · 28–41 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def resource_create(
context: Context, data_dict: DataDict
) -> ActionResult.ResourceCreate:
"""Appends a new resource to a packages list of resources.
:param package_id: id of package that the resource should be added to.
:type package_id: string
:param url: url of resource
:type url: string
:param description: (optional)
:type description: string
:param format: (optional)
:type format: string
Portfolio · export async function GET(
app/api/deals/route.ts · 8–21 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
export async function GET(req: NextRequest) {
const supabase = await createClient()
const { data: { user } } = await supabase.auth.getUser()
if (!user) return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
const admin = createAdminClient()
const { data: membership } = await admin
.from('fund_members')
.select('fund_id')
.eq('user_id', user.id)
.maybeSingle()
if (!membership) return NextResponse.json({ error: 'No fund found' }, { status: 403 })
实现与验收要点
阶段必需资料规则、证据等级、时限及确认。