style: 调整函数声明的空格格式,统一代码风格
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

对所有函数声明添加前后空格,保持代码排版一致性,提升可读性
This commit is contained in:
sheng
2026-06-02 15:17:51 +08:00
parent e0d2c7c886
commit 76f9657fe9

View File

@@ -2,7 +2,7 @@ import { request } from '@/api/_service'
const BASE = 'production_configuration/product_model/battery_model/'
function apiParams(method, data = {}) {
function apiParams (method, data = {}) {
return {
method: `production_master_data_product_management_product_list_${method}`,
platform: 'background',
@@ -10,7 +10,7 @@ function apiParams(method, data = {}) {
}
}
export function getProductList(data) {
export function getProductList (data) {
return request({
url: BASE + 'list',
method: 'get',
@@ -18,7 +18,7 @@ export function getProductList(data) {
})
}
export function createProduct(data) {
export function createProduct (data) {
return request({
url: BASE + 'create',
method: 'post',
@@ -26,7 +26,7 @@ export function createProduct(data) {
})
}
export function editProduct(data) {
export function editProduct (data) {
return request({
url: BASE + 'edit',
method: 'put',
@@ -34,7 +34,7 @@ export function editProduct(data) {
})
}
export function deleteProduct(data) {
export function deleteProduct (data) {
return request({
url: BASE + 'delete',
method: 'delete',