fix: java后端接口对接,联调测试问题修改。

This commit is contained in:
tianyongbao
2026-01-15 11:34:03 +08:00
parent f5ddf1e120
commit b1bc6c174c
16 changed files with 216 additions and 126 deletions

View File

@@ -102,8 +102,7 @@ const API_PATHS = {
},
// 夜间防误触
KEEP_NIGHT_OPEN: {
v1: '/api/pond/keep_night_open',
v2: '/fishery/pond/night-protect',
v2: '/fishery/pond/keep_night_open',
},
},
@@ -143,8 +142,7 @@ const API_PATHS = {
},
// 扫描设备编码
SCAN: {
v1: '/api/device/check_device_qrcode',
v2: '/fishery/device/scan',
v2: '/fishery/device/check_device_qrcode',
},
// 检测设备是否在线
CHECK_STATUS: {
@@ -260,23 +258,19 @@ const API_PATHS = {
TIME_CTRL: {
// 定时开关列表
LIST: {
v1: '/api/device-switch-time-ctrl/list',
v2: '/fishery/time-ctrl/list',
v2: '/fishery/timingCtrl/list',
},
// 添加定时开关
ADD: {
v1: '/api/device-switch-time-ctrl/add',
v2: '/fishery/time-ctrl',
v2: '/fishery/timingCtrl/add',
},
// 删除定时开关
DELETE: {
v1: '/api/device-switch-time-ctrl/delete',
v2: '/fishery/time-ctrl',
v2: '/iot/timingCtrl/delete',
},
// 更新定时开关
UPDATE: {
v1: '/api/device-switch-time-ctrl/update',
v2: '/fishery/time-ctrl',
v2: '/iot/timingCtrl/update',
},
},
@@ -308,28 +302,24 @@ const API_PATHS = {
USER: {
// 报警电话列表
WARN_PHONE_LIST: {
v1: '/api/user-center/list_warn_phone',
v2: '/fishery/user/warn-phone/list',
v2: '/fishery/aquUser/list_warn_phone',
},
// 修改报警电话
UPDATE_WARN_PHONE: {
v1: '/api/user-center/update_warn_phone',
v2: '/fishery/user/warn-phone',
v2: '/fishery/aquUser/update_warn_phone',
},
// 修改手机号码
UPDATE_PHONE: {
v1: '/api/user-center/update_mobile_phone',
v2: '/fishery/user/phone',
v2: '/fishery/aquUser/update_mobile_phone',
},
// 验证验证码
VERIFY_CODE: {
v1: '/sms_code/verify',
v2: '/fishery/sms/verify',
v2: '/resource/sms/verify',
},
// 修改昵称
UPDATE_NICKNAME: {
v1: '/api/user-center/update_user_name',
v2: '/fishery/user/nickname',
v2: '/fishery/aquUser/update_user_name',
},
},
@@ -337,23 +327,19 @@ const API_PATHS = {
SUB_ACCOUNT: {
// 获取子账号列表
LIST: {
v1: '/api/user-center/list_user_child',
v2: '/fishery/user/child/list',
v2: '/fishery/aquUser/list_user_child',
},
// 添加子账号
ADD: {
v1: '/api/user-center/add_user_child',
v2: '/fishery/user/child',
v2: '/fishery/aquUser/add_user_child',
},
// 删除子账号
DELETE: {
v1: '/api/user-center/delete_user_child',
v2: '/fishery/user/child',
v2: '/fishery/aquUser/delete_user_child',
},
// 获取父级账号
PARENT: {
v1: '/api/user-center/list_user_parent',
v2: '/fishery/user/parent',
v2: '/fishery/aquUser/list_user_parent',
},
},

View File

@@ -7,13 +7,13 @@ export function list_user_child() {
}
// 添加
export function add_user_child(data) {
return httpService.post(`${API.SUB_ACCOUNT.ADD()}?mobilePhone=${data}`)
export function add_user_child(mobilePhone) {
return httpService.post(API.SUB_ACCOUNT.ADD(), { mobilePhone })
}
// 删除
export function delete_user_child(data) {
return httpService.delete(API.SUB_ACCOUNT.DELETE(), {data})
export function delete_user_child(id) {
return httpService.delete(`${API.SUB_ACCOUNT.DELETE()}/${id}`)
}
// 获取父级账号