feat(api)!: 密钥管理 接口变更
This commit is contained in:
parent
c58986cd2d
commit
4d4b9bf91a
|
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|||
// 查询api密钥列表
|
||||
export function listSecret(query) {
|
||||
return request({
|
||||
url: '/system/secret/list',
|
||||
url: '/iot/secret/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
@ -12,7 +12,7 @@ export function listSecret(query) {
|
|||
// 查询api密钥详细
|
||||
export function getSecret(recordId) {
|
||||
return request({
|
||||
url: '/system/secret/' + recordId,
|
||||
url: '/iot/secret/' + recordId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ export function getSecret(recordId) {
|
|||
// 新增api密钥
|
||||
export function addSecret(data) {
|
||||
return request({
|
||||
url: '/system/secret',
|
||||
url: '/iot/secret',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
|
@ -29,7 +29,7 @@ export function addSecret(data) {
|
|||
// 修改api密钥
|
||||
export function updateSecret(data) {
|
||||
return request({
|
||||
url: '/system/secret',
|
||||
url: '/iot/secret',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
|
@ -38,7 +38,7 @@ export function updateSecret(data) {
|
|||
// 删除api密钥
|
||||
export function delSecret(recordId) {
|
||||
return request({
|
||||
url: '/system/secret/' + recordId,
|
||||
url: '/iot/secret/' + recordId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ export function delSecret(recordId) {
|
|||
// 导出api密钥
|
||||
export function exportSecret(query) {
|
||||
return request({
|
||||
url: '/system/secret/export',
|
||||
url: '/iot/secret/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue