46 lines
1021 B
Python
46 lines
1021 B
Python
from pydantic import BaseModel
|
|
|
|
class EnterpriseTaskCreate(BaseModel):
|
|
title: str
|
|
category: str = ""
|
|
sub_category: str = ""
|
|
description: str = ""
|
|
mode: str = "grab"
|
|
budget_min: int = 0
|
|
budget_max: int = 0
|
|
deadline: str = ""
|
|
publisher_name: str = ""
|
|
# ── 多端任务体系扩展字段 ──
|
|
publisher_role: str = "enterprise"
|
|
visibility: str = "public"
|
|
c_visible: bool = True
|
|
park_public: bool = False
|
|
assign_type: str = ""
|
|
assign_park_id: str | None = None
|
|
assign_opc_id: str | None = None
|
|
park_id: str | None = None
|
|
delivery_days: int = 0
|
|
headcount: int = 0
|
|
exclusive: bool = False
|
|
bid_quota: int = 0
|
|
win_quota: int = 0
|
|
eligibility: str = "{}"
|
|
settle_mode: str = "operator_escrow"
|
|
|
|
|
|
|
|
class TaskReviewRequest(BaseModel):
|
|
action: str # accept | reject
|
|
comment: str = ""
|
|
|
|
|
|
|
|
class ReferralCreate(BaseModel):
|
|
provider_id: str = ""
|
|
provider_name: str = ""
|
|
opc_id: str = ""
|
|
opc_name: str = ""
|
|
|
|
|
|
|