提交 cdc75010 编写于 作者: F feilong

更新组合包id生成

上级 87229d3c
......@@ -2,12 +2,12 @@
"type": "job",
"package": "algo",
"package_name": "算法工程师",
"package_id": "pkg-algo-476f1b7fa31c4ca58e50e44281852e5c",
"package_id": "pkg-algo-a6cf24cd008547a6918823e94ff7c815",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-algo1969d3626d424421ba53a4c127446fda",
"level_id": "pkg-algo-level-1b8296e8c947421981ca1f4ea920878a",
"skill_trees": [
"gml",
"algorithm",
......@@ -24,7 +24,7 @@
"ai"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-algoaec1a934e09c4abcb53d1a12dd776495"
"level_id": "pkg-algo-level-0e0f4c2d372c4be6a4954c1e8e29a3bc"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "android",
"package_name": "Android工程师",
"package_id": "pkg-android-a6402a80627f4e10991289ccdc07909c",
"package_id": "pkg-android-5c4cdaff016e4efeb3c3ec0f48a43eba",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-androidb9d62e2044804aec93d6c3fb608b544a",
"level_id": "pkg-android-level-751f6ed6483249d3a39d7e54f2f8f710",
"skill_trees": [
"gml",
"java",
......@@ -24,7 +24,7 @@
"flutter"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-android2212e1098905439ba31affb6f72a3227"
"level_id": "pkg-android-level-fcf0083babaa42209e4ba2d259659361"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "archit",
"package_name": "后端构架师",
"package_id": "pkg-archit-138581c50caa404289dc079be72c22ed",
"package_id": "pkg-archit-5f22a92e85804f16b9d1c061cec7ba61",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-archit13df7015de654696b77b931d54e2d1f6",
"level_id": "pkg-archit-level-634117d27ab1492db3d6e973e122f8c3",
"skill_trees": [
"gml",
"algorithm",
......@@ -32,7 +32,7 @@
"cloud_native"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-architce38b4dba45a4da59cee8bd22ce7013d"
"level_id": "pkg-archit-level-ce6121fa7a9c4a58aa9852da2bac850f"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "bi",
"package_name": "BI 工程师",
"package_id": "pkg-bi-6c94aba2fbf94dff9b88706abdd22ddf",
"package_id": "pkg-bi-9a7a46b309f34c9bb6265a38201107fb",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-bi64bf299c82ad4e7782e680d1212009da",
"level_id": "pkg-bi-level-76c708906e844631a0083e4d8b8749ae",
"skill_trees": [
"gml",
"python",
......@@ -33,7 +33,7 @@
"algorithm02",
"pg"
],
"level_id": "pkg-level-bi5347c34e5a9d442bb53f4d1154dfe411"
"level_id": "pkg-bi-level-0046fafee14640c7b5aa29cc97b17a8a"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "bigdata",
"package_name": "大数据工程师",
"package_id": "pkg-bigdata-921ab2260f434034a4d18a331b3fc059",
"package_id": "pkg-bigdata-934608e1ee604b4baa5c079a48987ec4",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-bigdatad962c038bacf466ba967b9225392cfe3",
"level_id": "pkg-bigdata-level-c208cec9d183455588265813fcdf56bd",
"skill_trees": [
"gml",
"algorithm",
......@@ -20,7 +20,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-bigdataffd2144d3ac54d59884ce3a7c32eb0e6"
"level_id": "pkg-bigdata-level-8e2a8fb109424596a667bcc613db93c1"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "cpp",
"package_name": "C++工程师",
"package_id": "pkg-cpp-868b91324e654aa4a319eaa3a2003e7d",
"package_id": "pkg-cpp-9c8eb68f3669468f8ba3c6ac73fb0f5a",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-cpp6e4874e7341e4b7a9645a386062f480b",
"level_id": "pkg-cpp-level-6205ebd891544d8cadab543433b3b951",
"skill_trees": [
"gml",
"algorithm",
......@@ -21,7 +21,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-cpp8e2ced7c86844357962b3043a62ba077"
"level_id": "pkg-cpp-level-0aef5db1bcca497789fbc1ab8863bd7d"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "crawler",
"package_name": "爬虫工程师",
"package_id": "pkg-crawler-84a0ac8e3a714889bd1f21f0dc2428b6",
"package_id": "pkg-crawler-b9e1875f7aa745ea88edfad5d94aa058",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-crawler4166e2a389fb4cf9874b3d28bb2a40a4",
"level_id": "pkg-crawler-level-2d99f3f4e3e3416092f46f8b901efae1",
"skill_trees": [
"gml",
"python",
......@@ -27,7 +27,7 @@
"pg"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-crawler5479517a143c4efd95dacede75865bdf"
"level_id": "pkg-crawler-level-6035cb39f6d14637810beaeb8fecb168"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "devops",
"package_name": "运维工程师",
"package_id": "pkg-devops-7e9a2a5a32184799b0f9c63ac9a29ce6",
"package_id": "pkg-devops-8d590f4b01e64f33aadb066c2f9c9839",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-devopsfdc5d030c32e4a50b4fe41033962d74b",
"level_id": "pkg-devops-level-0fd3170e0ae54bf6975648f4820e91ac",
"skill_trees": [
"gml",
"python",
......@@ -26,7 +26,7 @@
"network02"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-devopsf65659b5246740fda922e8620486b8bb"
"level_id": "pkg-devops-level-5c902f5daeb44c96811e791e3bf1a90a"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "go",
"package_name": "Go后端工程师",
"package_id": "pkg-go-d68c5efcb5534fb289026397725982dd",
"package_id": "pkg-go-86c19805910240bbbf8942ed06bc1d73",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-go8c7b0d54a71f4860b7c9a7dc81b5fcc8",
"level_id": "pkg-go-level-68778ddfcd6a45208ad747771ca3738b",
"skill_trees": [
"gml",
"algorithm",
......@@ -20,7 +20,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-gof011dbf31d4644998f252e63e22f96cc"
"level_id": "pkg-go-level-d2faef92de2042e79f0cb16d3016c10c"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "ios",
"package_name": "iOS工程师",
"package_id": "pkg-ios-a8bc050c0ace490d82f7bc9c56cec415",
"package_id": "pkg-ios-ede93f0119b64da99ad13e3f13984d5f",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-ios17b7cd3f2d944e9ca3bbadbb51550836",
"level_id": "pkg-ios-level-dd40b98b3ede4f738ac67b72b985b8b5",
"skill_trees": [],
"recommend_skill_trees": []
},
......@@ -16,7 +16,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-ios2f46dce2ddd94152804cd8412c4ac1fd"
"level_id": "pkg-ios-level-17042027e678450f95732320c7ed023d"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "javabf",
"package_name": "Java后端工程师",
"package_id": "pkg-javabf-0b33bfcfa5cf4a1c87063fd33dea58f3",
"package_id": "pkg-javabf-0f4961bb5a1049e9a2dbf0ccb0f88d65",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-javabf2a9747cbeeb24ce38d3cc814fded8e26",
"level_id": "pkg-javabf-level-1c12c8d53b6d454db424fb37fdc54db6",
"skill_trees": [
"gml",
"algorithm",
......@@ -25,7 +25,7 @@
{
"level": "02",
"level_name": "进阶",
"level_id": "pkg-level-javabf2e57541d020d4a58b9682295b591d2e9",
"level_id": "pkg-javabf-level-91f3e6a6f5624acfb422f3951177cb6e",
"skill_trees": [
"gml",
"algorithm",
......
......@@ -2,12 +2,12 @@
"type": "job",
"package": "machinevision",
"package_name": "机器视觉工程师",
"package_id": "pkg-machinevision-f51bfb0f9aba4539a3cc3040aad0692a",
"package_id": "pkg-machinevision-3af1ca37ed494d74bd8a10ce2b8ee7ed",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-machinevision07c362bf9ef444edb206988cc97b0b43",
"level_id": "pkg-machinevision-level-6f03fcf3681342ae953b9d2fba0fdae6",
"skill_trees": [
"gml",
"algorithm",
......@@ -20,7 +20,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-machinevision73c4e9518e19431baf7f3ba6c06c7f90"
"level_id": "pkg-machinevision-level-bbcc2444f218474aa445df6ca08c5cfb"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "nlp",
"package_name": "自然语言处理工程师",
"package_id": "pkg-nlp-d387287227cf41fba9e1b6962cc7349b",
"package_id": "pkg-nlp-aa902054724e4e7cb120b2a500c0cdad",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-nlp04dc421437604b86ae9d1a656e97ecab",
"level_id": "pkg-nlp-level-5317f0fbf4414d87b6d028e421d16396",
"skill_trees": [
"gml",
"algorithm"
......@@ -19,7 +19,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-nlpfa09a020afb24414ae67b7bc0d9eab7c"
"level_id": "pkg-nlp-level-4f5c84c95f26440393a69a4181d03a65"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "operations",
"package_name": "运营",
"package_id": "pkg-operations-b57b08eed7f9464e852983c60940a1cf",
"package_id": "pkg-operations-cb1e5e2411cf454ab761be0fb21cc87a",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-operations25c6b09f4eef4f2fa164ff9b83645618",
"level_id": "pkg-operations-level-10cfc7ebd12a44ca973835d4b7198e9f",
"skill_trees": [
"operations"
],
......@@ -20,7 +20,7 @@
"product"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-operations3818aa9b0ebe408582a986b408df657e"
"level_id": "pkg-operations-level-cb6f3cce44a941cabdbaea37b6521822"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "php",
"package_name": "PHP工程师",
"package_id": "pkg-php-7f873c5ea851486c92759712c2e2b739",
"package_id": "pkg-php-8070f10b531541f4a43282525640e6af",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-php52ba2421ff9c4e4daa7ef5e9611dca59",
"level_id": "pkg-php-level-c8c35ceafdc447198f15f628a745699f",
"skill_trees": [],
"recommend_skill_trees": []
},
......@@ -16,7 +16,7 @@
"level_name": "进阶",
"skill_trees": [],
"recommend_skill_trees": [],
"level_id": "pkg-level-php31acef3d5c304145aa78a06932c62ed2"
"level_id": "pkg-php-level-3a99b53332c9429b8f32669e74ab9f35"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "product",
"package_name": "产品",
"package_id": "pkg-product-8c9a13638bb94afd9627221ba919428e",
"package_id": "pkg-product-f0300102a847420a9321d72019194c80",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-product4d3b2b82c2e040a69f3d5fe1fb399f3b",
"level_id": "pkg-product-level-03d26af01b554a978afeaf7b678db251",
"skill_trees": [
"product"
],
......@@ -20,7 +20,7 @@
"se"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-product1c2f243703014f66b0627ec0a7f9fd18"
"level_id": "pkg-product-level-995424592df44bc99c88233f341bde94"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "search",
"package_name": "搜索工程师",
"package_id": "pkg-search-9e90f446279e45dd8a92daaf2d4c2109",
"package_id": "pkg-search-a4040c6bf70f4ed3bdd1bcb7045a1004",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-search521a8e6980314a56b6bcc04901797bb3",
"level_id": "pkg-search-level-85b8eec2eb684e1197b58c6094f9aca0",
"skill_trees": [
"gml",
"algorithm",
......@@ -23,7 +23,7 @@
"elastic"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-searchac4b075bbcca4238aae94467384e12ef"
"level_id": "pkg-search-level-e3ddce54bc304fc290a76a437fd4791c"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "test",
"package_name": "测试工程师",
"package_id": "pkg-test-2978b290ee1b4ab9b0dc352186023b69",
"package_id": "pkg-test-4a8a1351ce234d1bb99373ab4055cf36",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-test65afea81d7a4435da2f2a1555c775dbc",
"level_id": "pkg-test-level-8207808da42c4869b7235e0df8e88a72",
"skill_trees": [
"gml",
"web",
......@@ -25,7 +25,7 @@
"recommend_skill_trees": [
"network02"
],
"level_id": "pkg-level-test29a22f2d2c724f158bfe1725f148515e"
"level_id": "pkg-test-level-85e8c4269c4f4e23b6012ebc8d31e05f"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"type": "job",
"package": "web",
"package_name": "前端工程师",
"package_id": "pkg-web-1a26665bfe384137afd539bb7de5f3f0",
"package_id": "pkg-web-1b07863ba66845bfbdb8cb05b0335e7a",
"levels": [
{
"level": "01",
"level_name": "入门",
"level_id": "pkg-level-webb6aae28fbf0a4dc38e6f2f1d01727517",
"level_id": "pkg-web-level-c0dd14e7bf0f4dec805ad7e0c2580ab8",
"skill_trees": [
"web",
"vue",
......@@ -23,7 +23,7 @@
"weixin"
],
"recommend_skill_trees": [],
"level_id": "pkg-level-web1b6cb1042e27446d976cb10b6791fb7f"
"level_id": "pkg-web-level-7d906e7132dd43438cd70216f697999e"
}
]
}
\ No newline at end of file
......@@ -23,7 +23,8 @@ class Package:
levels = pkg['levels']
if pkg.get('package_id') is None or pkg.get('package_id').strip() == '':
pkg['package_id'] = f'pkg-{pacakge}-'+uuid.uuid4().hex
for level in levels:
if level.get('level_id') is None or level.get('level_id') == '':
level['level_id'] = f'pkg-level-{pacakge}'+uuid.uuid4().hex
level['level_id'] = f'pkg-{pacakge}-level-'+uuid.uuid4().hex
dump_json(file_full_name, pkg, exist_ok=True, override=True)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册