更新开发环境和生产环境的API服务地址,统一后端服务配置,移除不再使用的服务实例,优化请求模块以使用统一的请求方法,调整相关接口以提高代码一致性和可读性。

This commit is contained in:
2026-04-01 15:45:39 +08:00
parent d9b4a012ee
commit e6d75c6660
21 changed files with 200 additions and 206 deletions

View File

@@ -1,4 +1,4 @@
import { newService } from '/@/utils/request';
import request from '/@/utils/request';
// 接口查询参数
export interface ApiInterfaceQueryParams {
@@ -58,7 +58,7 @@ export interface ApiInterfaceInfo {
// 获取接口列表
export function listApiInterfaces(params: ApiInterfaceQueryParams) {
return newService({
return request({
url: '/api/interface/controller/listApiInterfaces',
method: 'get',
params,
@@ -67,7 +67,7 @@ export function listApiInterfaces(params: ApiInterfaceQueryParams) {
// 获取接口详情
export function getApiInterface(id: string) {
return newService({
return request({
url: '/api/interface/controller/getApiInterface',
method: 'get',
params: { id },
@@ -76,7 +76,7 @@ export function getApiInterface(id: string) {
// 创建接口
export function createApiInterface(data: CreateApiInterfaceParams) {
return newService({
return request({
url: '/api/interface/controller/createApiInterface',
method: 'post',
data,
@@ -85,7 +85,7 @@ export function createApiInterface(data: CreateApiInterfaceParams) {
// 修改接口
export function updateApiInterface(data: UpdateApiInterfaceParams) {
return newService({
return request({
url: '/api/interface/controller/updateApiInterface',
method: 'put',
data,
@@ -94,7 +94,7 @@ export function updateApiInterface(data: UpdateApiInterfaceParams) {
// 更新接口状态
export function updateApiInterfaceStatus(data: UpdateApiInterfaceStatusParams) {
return newService({
return request({
url: '/api/interface/controller/updateApiInterfaceStatus',
method: 'put',
data,
@@ -103,7 +103,7 @@ export function updateApiInterfaceStatus(data: UpdateApiInterfaceStatusParams) {
// 删除接口
export function deleteApiInterface(id: string) {
return newService({
return request({
url: '/api/interface/controller/deleteApiInterface',
method: 'delete',
params: { id },