1. add category
This commit is contained in:
2026-02-09 15:03:25 +08:00
parent 6cc3d45fa6
commit 9f56bc32dd
6 changed files with 81 additions and 59 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-mallcategory/mallCategory/list',
url: '/mall/category/list',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-mallcategory/mallCategory/detail',
url: '/mall/category/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-mallcategory/mallCategory/remove',
url: '/mall/category/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-mallcategory/mallCategory/submit',
url: '/mall/category/submit',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-mallcategory/mallCategory/submit',
url: '/mall/category/submit',
method: 'post',
data: row
})

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-mallproduct/mallProduct/list',
url: '/mall/product/page',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-mallproduct/mallProduct/detail',
url: '/mall/product/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-mallproduct/mallProduct/remove',
url: '/mall/product/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-mallproduct/mallProduct/submit',
url: '/mall/product/submit',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-mallproduct/mallProduct/submit',
url: '/mall/product/update',
method: 'post',
data: row
})