## 提交項目 & 保存草稿
詳細數據格式查看后面的 `示例數據`
~~~[api:auth]
post:/CompetitionProject/save
*string:save_type=draft#操作類型:submit=提交項目 draft=草稿
*int:id#項目ID
*int:competition_id#賽事ID
*int:competition_area_id#賽事賽區ID
string:name#基本信息-項目名稱
string:company_name#基本信息-單位名稱
string:principal#基本信息-負責人
string:contact#基本信息-聯系方式
string:email#基本信息-郵箱
int:city_id#基本信息-所在城市
string:team_type#基本情況-團隊類型
string:competition_groups#基本情況-參賽作品組別
array:competition_scopes#基本情況-作品領域
string:start_date#基本情況-啟動時間
string:end_date#基本情況-計劃完成時間
string:summary#基本情況-項目內容摘要
string:other_patent#基本情況-其他知識產權說明
string:keywords#基本情況-關鍵字
string:introduction#詳細內容-項目介紹
string:team_introduction#詳細內容-核心團隊介紹
string:market_analysis#詳細內容-市場分析
string:awards#詳細內容-獲獎情況
string:remark#詳細內容-備注
string:file1#附件材料-信息保密審查表
string:file2#附件材料-項目介紹
string:file3#附件材料-團隊負責人信息
string:file4#附件材料-團隊人員組成情況
string:file5#附件材料-知識產權相關證明
string:file6#附件材料-其他材料
array:members#項目團隊成員
array:progress#項目計劃進度
array:patent#項目知識產權
<<<
success
{
"code": 0,
"msg": "保存成功",
"data": {
"competition_id": "2",
"competition_area_id": "1",
"name": "測試項目名稱",
"competition_scopes": ""
}
}
<<<
error
{
"code": 400,
"msg": "數據校驗不通過",
"error": {
"competition_id": "賽事不存在",
"competition_area_id": "賽事賽區ID必須是整數"
}
}
<<<
error
{
"code": 1,
"msg": "項目已提交,暫不支持該操作"
}
~~~
## 示例數據
```json
{
"save_type": "submit",
"id": "4",
"competition_id": "2",
"competition_area_id": "1",
"name": "測試項目名稱",
"company_name": "單位名稱",
"principal": "負責人",
"contact": "13226523039",
"email": "86849180@qq.com",
"city_id": "27633",
"team_type": "社會組(須中科院單位推薦)",
"competition_groups": "創意暢享組",
"competition_scopes": ["智能無人平臺技術", "未來先進電子科學技術"],
"start_date": "2008-10-10",
"end_date": "2018-12-31",
"summary": "項目內容摘要",
"other_patent": "其他知識產權說明",
"keywords": "關鍵字",
"introduction": "項目介紹",
"team_introduction": "核心團隊介紹",
"market_analysis": "市場分析",
"awards": "獲獎情況",
"remark": "備注",
"file1": "信息保密審查表",
"file2": "項目介紹",
"file3": "團隊負責人信息",
"file4": "團隊人員組成情況",
"file5": "知識產權相關證明",
"file6": "其他材料",
"members": [{
"id": "3",
"name": "王五",
"age": "24",
"education": "本科",
"contact": "13800138000",
"position": "學生會主席",
"work": "打醬油",
"employer": "美味醬油加工有限公司",
"nationality": "中國"
},
{
"name": "李四",
"age": "25",
"education": "專科",
"contact": "13226523033",
"position": "質檢",
"work": "檢查醬油",
"employer": "美味醬油加工有限公司",
"nationality": "中國"
}
],
"progress": [{
"start_date": "2008-05-01",
"end_date": "2018-12-31",
"content": "主要工作內容"
}],
"patent": [{
"type": "發明型專利",
"username": "專利人姓名",
"name": "專利名稱",
"sn": "專利號",
"remark": "知識產權說明"
}]
}
```
## 更新記錄
### 2021-09-29
成員信息增加國籍`nationality`字段
刪除`recommended_by`基本情況-推薦單位字段