更新了md

This commit is contained in:
gongwenxin 2025-07-01 23:23:12 +08:00
parent 95ac6a3a15
commit 8fb86a34e9
5 changed files with 320 additions and 0 deletions

View File

@ -1,6 +1,7 @@
### TODO:
- [X] 宽容的json验证支持data:list:[]这样
- [ ] delete在post之后进行如何确定keymcp还是只测试get
- [ ] 对接dms系统
- [ ] 针对assets/doc/接口返回.txt 的parser的编写
- [ ] 针对assets/images/井筒/后端开发指南.txt的测试用例

234
assets/doc/dms/model.json Normal file
View File

@ -0,0 +1,234 @@
{
code: 0,
message: "操作处理成功",
data: {
$id: "https://schema.ideas.cnpc/json/business-data/cd_completion.1.0.0.json",
type: "Object",
title: "井筒生产层段",
schema: "http://json-schema.org/draft-07/schema#",
required: [
"bsflag",
"completionName",
"createUserId",
"dataRegion",
"createDate",
"dsid",
"wellboreId",
"updateUserId",
"wellboreCommonName",
"updateDate",
"completionId"
],
identityId: [
"dsid"
],
naturalKey: [
"wellboreCommonName",
"completionName"
],
properties: {
dsid: {
type: "string",
title: "DSID",
description: "主键ID"
},
topMd: {
type: "number",
title: "井筒生产层段顶深",
description: "井筒生产层段顶深"
},
bsflag: {
type: "number",
title: "删除标识",
description: "填写数据逻辑删除标识1=在用,-5=废弃"
},
wellId: {
type: "string",
title: "井ID",
description: "井号",
x-osdu-relationship: [
{
entityType: "cd_well.1.0.0/wellId",
relationType: "PK"
}
]
},
dateEnd: {
type: "date",
title: "停用时间",
description: "停用时间"
},
remarks: {
type: "string",
title: "备注",
description: "备注"
},
bottomMd: {
type: "number",
title: "井筒生产层段底深",
description: "井筒生产层段底深"
},
checkDate: {
type: "date",
title: "审核日期",
description: "记录数据在本系统的审核时间,需精确到时分秒"
},
dataGroup: {
type: "string",
title: "数据分组",
description: "数据分组"
},
dateStart: {
type: "date",
title: "启用时间",
description: "启用时间"
},
projectId: {
type: "string",
title: "地质单元ID",
description: "引用CD_GEO_UNIT表的逻辑主键字段PROJECT_ID可以是勘探构造或油气田开发区块等各个级别的信息"
},
createDate: {
type: "date",
title: "创建日期",
description: "记录数据在本系统的创建时间,需精确到时分秒"
},
dataRegion: {
type: "string",
title: "油田标识",
description: "油田标识"
},
dataSource: {
type: "string",
title: "数据来源",
description: "填写数据来源的表CODE"
},
updateDate: {
type: "date",
title: "更新日期",
description: "记录数据在本系统最新的更新时间,需精确到时分秒,默认=创建时间"
},
wellboreId: {
type: "string",
title: "井筒ID",
description: "井筒ID",
x-osdu-relationship: [
{
entityType: "cd_wellbore.1.0.0/wellboreId",
relationType: "PK"
}
]
},
checkUserId: {
type: "string",
title: "审核用户",
description: "记录数据在本系统的审核用户"
},
createAppId: {
type: "string",
title: "创建应用",
description: "填写数据来源的系统名"
},
projectName: {
type: "string",
title: "地质单元名称",
description: "地质单元名称,填写地质单元的中文名称,该名称在整个油田公司内不能重名"
},
completionId: {
type: "string",
title: "井筒生产层段ID",
description: "井筒生产层段唯一标识码"
},
createUserId: {
type: "string",
title: "创建用户",
description: "记录数据在本系统的创建用户"
},
sourceDataId: {
type: "string",
title: "源库ID标识",
description: "存储数据来源的主键信息"
},
updateUserId: {
type: "string",
title: "更新用户",
description: "记录数据在本系统最新的更新用户,默认=创建用户"
},
completionName: {
type: "string",
title: "井筒生产层段名称",
description: "当月层位"
},
completionType: {
type: "string",
title: "井筒生产层段类别",
description: "包括完井层段、生产层段两个代码值"
},
wellCommonName: {
type: "string",
title: "井名",
description: "井名",
x-osdu-relationship: [
{
entityType: "cd_well.1.0.0/wellCommonName"
}
]
},
drivingTypeCode: {
type: "string",
title: "驱动方式",
description: "驱动方式"
},
injectionMethod: {
type: "string",
title: "注入方式",
description: "注入方式"
},
completionMethod: {
type: "string",
title: "井筒生产层段完井方法",
description: "属性规范值字段引用属性代码COMPLETION_MODE下的属性值"
},
horizonEquenceNo: {
type: "number",
title: "井筒生产层段序号",
description: "井筒生产层段序号"
},
sourceCreateDate: {
type: "date",
title: "源头数据采集时间",
description: "记录源头系统采集数据的时间"
},
completionMethodId: {
type: "string",
title: "井筒生产层段完井方法ID",
description: "属性规范值字段引用属性代码COMPLETION_MODE下的属性值"
},
regionCompletionId: {
type: "string",
title: "区域生产层段ID",
description: "引用CD_REGION_COMPLETION表的逻辑主键字段REGION_COMPLETION_ID"
},
wellboreCommonName: {
type: "string",
title: "井筒名",
description: "通用的井筒名",
x-osdu-relationship: [
{
entityType: "cd_wellbore.1.0.0/wellboreCommonName"
}
]
},
oilProductionMethod: {
type: "string",
title: "采油方式",
description: "采油方式"
},
regionCompletionName: {
type: "string",
title: "区域生产层段名称",
description: "引用CD_REGION_COMPLETION表的字段COMPLETION_NAME"
}
}
}
}

View File

View File

@ -0,0 +1,40 @@
{
code: 0,
message: "操作处理成功",
data: {
records: [
{
flow_state: "7",
domain: "wb_ml",
name: "lujing_test",
add_tree: "Y",
id: "lujing_test.1.0.0",
create_user: "admin",
title: "测试",
type: "business-data",
version: "1.0.0",
update_date: "2025-07-01 14:34:58"
},
{
flow_state: "3",
domain: "wb_dr",
name: "wb_dr_pro_daily_report",
add_tree: "Y",
id: "wb_dr_pro_daily_report.1.0.0",
create_user: "admin",
title: "钻井日报数据",
type: "business-data",
version: "1.0.0",
update_date: "2025-06-30 16:48:17",
tags: [
"结构化数据"
]
}
],
total: 751,
size: 2,
current: 1,
pages: 376
}
}

45
assets/doc/domain.json Normal file
View File

@ -0,0 +1,45 @@
{
"well_kd_wellbore_ideas01": {
"name": "井筒",
"id":"well_kd_wellbore_ideas01",
"keywords":[
"wb",
"wb_dr",
"wb_ml",
"wb_wl",
"wb_tp",
"wb_dh",
"wb_fr"
]
},
"geo_kd_res_ideas01": {
"name": "采油气",
"id":"geo_kd_res_ideas01",
"keywords":[
"pc",
"pc_op",
"pc_oe",
"pc_ge"
]
},
"kd_cr_ideas01": {
"name": "分析化验",
"id": "kd_cr_ideas01",
"keywords":[
"cr",
"cr_se"
]
},
"kd_rs_ideas01": {
"name": "油气藏",
"id": "kd_cr_ideas01",
"keywords":[
"rs",
"rs_rd",
"rs_rm",
"rs_gs",
"rs_in"
]
}
}