feat(api)!: 密钥管理 接口变更

This commit is contained in:
nieli 2022-11-25 10:14:52 +08:00
parent c58986cd2d
commit 4d4b9bf91a
1 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询api密钥列表 // 查询api密钥列表
export function listSecret(query) { export function listSecret(query) {
return request({ return request({
url: '/system/secret/list', url: '/iot/secret/list',
method: 'get', method: 'get',
params: query params: query
}) })
@ -12,7 +12,7 @@ export function listSecret(query) {
// 查询api密钥详细 // 查询api密钥详细
export function getSecret(recordId) { export function getSecret(recordId) {
return request({ return request({
url: '/system/secret/' + recordId, url: '/iot/secret/' + recordId,
method: 'get' method: 'get'
}) })
} }
@ -20,7 +20,7 @@ export function getSecret(recordId) {
// 新增api密钥 // 新增api密钥
export function addSecret(data) { export function addSecret(data) {
return request({ return request({
url: '/system/secret', url: '/iot/secret',
method: 'post', method: 'post',
data: data data: data
}) })
@ -29,7 +29,7 @@ export function addSecret(data) {
// 修改api密钥 // 修改api密钥
export function updateSecret(data) { export function updateSecret(data) {
return request({ return request({
url: '/system/secret', url: '/iot/secret',
method: 'put', method: 'put',
data: data data: data
}) })
@ -38,7 +38,7 @@ export function updateSecret(data) {
// 删除api密钥 // 删除api密钥
export function delSecret(recordId) { export function delSecret(recordId) {
return request({ return request({
url: '/system/secret/' + recordId, url: '/iot/secret/' + recordId,
method: 'delete' method: 'delete'
}) })
} }
@ -46,7 +46,7 @@ export function delSecret(recordId) {
// 导出api密钥 // 导出api密钥
export function exportSecret(query) { export function exportSecret(query) {
return request({ return request({
url: '/system/secret/export', url: '/iot/secret/export',
method: 'get', method: 'get',
params: query params: query
}) })