竞赛数据接口 接口不断完善更新中...

获取图片测试

http://172.16.1.154:50005/api/UploadFile/get_images

获取服务器时间

http://172.16.1.254:10091/api/Exam/Time

App考试

1、用户考试信息保存

地址:http://172.16.1.254:10091/api/Exam/Edit
参数 user_id: 用户id
参数 exam_code:试卷编码(01-12),任务背景1: 01 ,任务背景9:09,任务背景12:12
参数 data: 考试对象json字符串
具体考试对象如下:
power_unit string 供电单位, user_name string 用电户名称, contact_man string 联系人, contact_mobile string 联系方式, user_no string 用户编号, taiqu_no string 台区编号, address string 用电地址, id_card string 证件号码, need_type string 需求类型, user_type string 用电户分类, power_voltage_client string 供电电压(现场勘察), city_type string 城乡类别(特殊边远地区、农村、城市), use_power_type string 用电类别(乡村居民生活用电,城镇居民生活用电), temp_power_flag string 临时用电标志, apply_capacity string 申请容量, is_start_power string 是否可供电, verify_capacity string 核定合计用电容量, is_new_point string 是否新增接入点, is_config_project string 是否有配套工程, has_project_flag string 有工程标志, zhuangong_flag string 转供标志, if_jiakong string 是否架空, fuhe_nature string 负荷性质, check_man string 勘察人员, check_date string 勘察日期, is_fee_control string 是否费控用户, check_idea string 勘察意见, power_type string 电源类型, power_nature string 电源性质, power_phase string 电源相数, power_voltage_powerplan string 供电电压(电源方案), in_line_type string 进线方式, protect_type string 保护方式, power_capacity string 供电容量, station_line_taiqu string 变电站/线路/台区, in_line_no string 进线杆号/电缆分支箱, property_split string 产权分界点, measure_name string 计量点名称, measure_type string 计量点分类, measure_nature string 计量点性质, measure_way string 计量方式, main_use string 主用途类型, inline_type_measure string 接线方式(计量点), voltage_level string 电压等级, is_fill_meter string 是否装表, device_type string 计量装置分类, measure_capacity string 计量点容量, own_side string 计量点所属侧, power_factor_type string 参与功率因数计算方式, shop_attrtype string 市场化属性, price_calc_way string 电量计算方式, rate_reduce_flag string 定比扣减标志, exec_price string 执行电价, is_stop_power string 是否可停电, price_type string 定价策略类型, fee_compute_type string 基本电费计算方式, power_factor_checktype string 功率因素考核方式, fee_hangye_type string 电价行业类别, fee string 电价, is_peak_flag string 是否执行峰谷标志, power_factor_stand string 功率因数标准, accept_type string 受电点类型, accept_name string 受电点名称, power_count string 电源数目, have_self_power string 有无自备电源, meter_category string 类别, meter_type string 类型, active_power_level string 有功准确度等级, power_current string 电流, power_voltage_meter string 电压(电能表), inline_type_meter string 接线方式, refer_flag string 参考表标志, indicator_type string 电能表示数类型, transform_plan string 互感器方案

2、app用户考试缓存信息查询

地址:http://172.16.1.254:10091/api/Exam/Query
参数 user_id: 用户id
参数 exam_code:试卷编码(01-12),任务背景1: 01 ,任务背景9:09,任务背景12:12

3、三维查询app考试结果信息

地址:http://172.16.1.254:10091/api/Exam/QueryResult?user_id=3201732844279466&exam_code=01
参数 user_id: 用户id
参数 exam_code:试卷编码(01-12),任务背景1: 01 ,任务背景9:09,任务背景12:12
返回值
CountTotal : 总数量 CountSuccess :正确数量 CountFail:错误数量 SuccessRate: 正确率 FailRate: 错误率
ListError: 错误列表详情 Field:字段,Dsc:描述,Answer:答案值,User:用户值 ,Msg:消息
ListRight: 正确列表详情(仅查看用)

4、用户app信息缓存添加

地址:http://172.16.1.254:10091/api/Exam/AddCache
参数 user_id: 用户id
参数 batch_id: 批次id
参数 type:类型(必填)
参数 type_sub:子类型
参数 page:页面
参数 step:步骤(整型)
参数 data: 考试对象json字符串

5、用户app信息缓存查询

地址:http://172.16.1.254:10091/api/Exam/QueryCache
参数 user_id: 用户id
参数 batch_id: 批次id
参数 type:类型(必填)
参数 type_sub:子类型
参数 page:页面
参数 step:步骤(整型)

客户收资

1、添加客户收资

地址:http://172.16.1.254:10091/api/ClientCollect/Add
参数 data: {"user_name":"王飞","id_card":"320123","hangye_type":"乡村居民","power_voltage":"交流220V","power_type":"乡村居民生活用电","power_unit":"南京供电公司市区","city_type":"农村"}
参数 business_photo: 营业照 文件流
参数 house_photo:房产证 文件流
参数 sfz_front:身份证人像面 文件流
参数 sfz_back:身份证国徽面 文件流
参数 apply_book: 授权委托书 文件流
参数 operator_idcard:经办人身份证 文件流

2、修改客户收资 (先查询单个对象,然后对查询出的对象的值进行修改,最后调用接口)

地址:http://172.16.1.254:10091/api/ClientCollect/Update
参数id: 收资id (添加接口返回的id)
参数 data: {"user_name":"王飞","id_card":"320123","hangye_type":"乡村居民","power_voltage":"交流220V","power_type":"乡村居民生活用电","power_unit":"南京供电公司市区","city_type":"农村"}
参数 business_photo: 营业照 文件流
参数 house_photo:房产证 文件流
参数 sfz_front:身份证人像面 文件流
参数 sfz_back:身份证国徽面 文件流
参数 apply_book: 授权委托书 文件流
参数 operator_idcard:经办人身份证 文件流

3、获取单个客户收资

地址:http://172.16.1.254:10091/api/ClientCollect/One
参数id: 收资id(添加接口返回的id)

联系人

1、添加客户联系人

地址:http://172.16.1.254:10091/api/ContactInfo/Add
参数: data: {"client_id":"客户收资id","contact_man":"联系人","contact_type":"联系人类型","contact_mobile":"18052043323"}

2、删除单个联系人

地址:http://172.16.1.254:10091/api/ContactInfo/Delete
参数 id:联系信息id(查询接口返回的id)

3、查询单个客户联系人列表

地址:http://172.16.1.254:10091/api/ContactInfo/QueryByClient
参数 client_id:客户收资id

4、添加或修改客户地址

地址:http://172.16.1.254:10091/api/ClientCollect/UpdateAddress
参数 client_id:客户收资id
参数 address:结构化地址

5、查询客户地址

地址:http://172.16.1.254:10091/api/ClientCollect/QueryAddress
参数 client_id:客户收资id
返回 address:结构化地址

4、修改申请容量

地址:http://172.16.1.254:10091/api/ClientCollect/UpdateApplyCapacity
参数 client_id:客户收资id
参数 apply_capacity:申请容量
备注 查询申请容量 请调用收资查询接口返回的apply_capacity

供电方案

1、添加或修改供电方案

地址:http://172.16.1.254:10091/api/PlaceCheck/AddUpdate
参数 client_id:客户收资id
参数 data:{"verify_capacity":"核定容量","power_voltage":"供电电压","power_type":"负荷性质一类","if_has_project_flag":"无工程","if_jiakong":"是否架空","if_yulinbiao":"是否预领表","if_new_point":"是","power_plan_note":"供电方案说明","accept_power_time":"2024-11-14 13:31:42","zhuangong_flag":"转供标志"}

2、查询供电方案

地址:http://172.16.1.254:10091/api/PlaceCheck/Query
参数 client_id:客户收资id

受电点方案

1、添加或修改受电点方案

地址:http://172.16.1.254:10091/api/AcceptPowerPlan/AddUpdate
参数 client_id:客户收资id
参数 data:{"accept_type":"受电点类型","accept_name":"受电点名称","power_count":"电源数目","high_power_factor":1.0,"have_self_power":"有无自备电源","power_remark":"受电点备注","power_plan_note":"供电方案说明","price_type":"定价策略类型","power_factor_checktype":"功率因数考核方式","fee_compute_type":"基本电费计算方式","protocol_stand":"协议额定值"}

2、查询受电点方案

地址:http://172.16.1.254:10091/api/AcceptPowerPlan/Query
参数 client_id:客户收资id

电源方案

1、添加或修改电源方案

地址:http://172.16.1.254:10091/api/PowerPlan/AddUpdate
参数 client_id:客户收资id
参数 data:{"power_nature":"电源性质","power_type":"电源类型","power_capacity":"供电容量","power_voltage":"供电电压","in_line_type":"进线方式","power_phase":"电源相数","protect_type":"保护方式","relay_protect_type":"继电保护类型","property_split":"产权分界点","in_line_no":"进线杆号/电缆分支箱","power_remark":"电源备注","station_info":"站线台信息"}

2、查询电源方案

地址:http://172.16.1.254:10091/api/PowerPlan/Query
参数 client_id:客户收资id

整体须知

接口数据查询: get请求、接口数据修改 :post请求

接口返回格式

格式内容:
state: true 接口正常,false 接口异常 data: 接口返回结果 message: 接口异常时返回的消息

接口授权

所有接口:必填HEADERS参数,写接口时预留好,后期好统一加上
HEADERS参数:Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiIyMDIxMTAxMzEzNTczOTIwMDczOTE0Iiwicm9sZSI6IjAiLCJuYmYiOjE3MzEyOTM5OTYsImV4cCI6MTczMTM4MDM5NiwiaWF0IjoxNzMxMjkzOTk2LCJpc3MiOiJ5b3VyX2lzc3VlciJ9.d7ymDYzNgCrwz1KVMlIbM_tZRY7E4MFEvZfeesAAeUM