Skip to content

Commit 06a6463

Browse files
committed
Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/bpm-back
� Conflicts: � README.md � yudao-framework/pom.xml � yudao-framework/yudao-spring-boot-starter-biz-error-code/pom.xml � yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/YudaoSwaggerAutoConfiguration.java � yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/security/config/SecurityConfiguration.java
2 parents 87cc0e6 + 4640968 commit 06a6463

File tree

40 files changed

+2343
-127
lines changed

40 files changed

+2343
-127
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"clipboard": "2.0.8",
4646
"core-js": "^3.21.1",
4747
"echarts": "4.9.0",
48-
"element-ui": "^2.15.6",
48+
"element-ui": "2.15.8",
4949
"file-saver": "2.0.5",
5050
"fuse.js": "6.4.3",
5151
"highlight.js": "9.18.5",

src/api/login.js

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ import {getRefreshToken} from "@/utils/auth";
33
import service from "@/utils/request";
44

55
// 登录方法
6-
export function login(username, password, code, uuid) {
6+
export function login(username, password, code, uuid,
7+
socialType, socialCode, socialState) {
78
const data = {
89
username,
910
password,
1011
code,
11-
uuid
12+
uuid,
13+
// 社交相关
14+
socialType, socialCode, socialState
1215
}
1316
return request({
1417
url: '/system/auth/login',
@@ -51,9 +54,9 @@ export function socialAuthRedirect(type, redirectUri) {
5154
}
5255

5356
// 社交快捷登录,使用 code 授权码
54-
export function socialQuickLogin(type, code, state) {
57+
export function socialLogin(type, code, state) {
5558
return request({
56-
url: '/system/auth/social-quick-login',
59+
url: '/system/auth/social-login',
5760
method: 'post',
5861
data: {
5962
type,
@@ -63,21 +66,6 @@ export function socialQuickLogin(type, code, state) {
6366
})
6467
}
6568

66-
// 社交绑定登录,使用 code 授权码 + + 账号密码
67-
export function socialBindLogin(type, code, state, username, password) {
68-
return request({
69-
url: '/system/auth/social-bind-login',
70-
method: 'post',
71-
data: {
72-
type,
73-
code,
74-
state,
75-
username,
76-
password
77-
}
78-
})
79-
}
80-
8169
// 获取登录验证码
8270
export function sendSmsCode(mobile, scene) {
8371
return request({

src/api/mall/market/banner.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import request from '@/utils/request'
2+
3+
// 创建Banner
4+
export function createBanner(data) {
5+
return request({
6+
url: '/market/banner/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新Banner
13+
export function updateBanner(data) {
14+
return request({
15+
url: '/market/banner/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除Banner
22+
export function deleteBanner(id) {
23+
return request({
24+
url: '/market/banner/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得Banner
30+
export function getBanner(id) {
31+
return request({
32+
url: '/market/banner/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得Banner分页
38+
export function getBannerPage(query) {
39+
return request({
40+
url: '/market/banner/page',
41+
method: 'get',
42+
params: query
43+
})
44+
}
45+
46+
// 导出Banner Excel
47+
export function exportBannerExcel(query) {
48+
return request({
49+
url: '/market/banner/export-excel',
50+
method: 'get',
51+
params: query,
52+
responseType: 'blob'
53+
})
54+
}

src/api/mall/product/brand.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import request from '@/utils/request'
2+
3+
// 创建品牌
4+
export function createBrand(data) {
5+
return request({
6+
url: '/product/brand/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新品牌
13+
export function updateBrand(data) {
14+
return request({
15+
url: '/product/brand/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除品牌
22+
export function deleteBrand(id) {
23+
return request({
24+
url: '/product/brand/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得品牌
30+
export function getBrand(id) {
31+
return request({
32+
url: '/product/brand/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得品牌分页
38+
export function getBrandPage(query) {
39+
return request({
40+
url: '/product/brand/page',
41+
method: 'get',
42+
params: query
43+
})
44+
}
45+
46+
// 导出品牌 Excel
47+
export function exportBrandExcel(query) {
48+
return request({
49+
url: '/product/brand/export-excel',
50+
method: 'get',
51+
params: query,
52+
responseType: 'blob'
53+
})
54+
}

src/api/mall/product/category.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import request from '@/utils/request'
2+
3+
// 创建商品分类
4+
export function createCategory(data) {
5+
return request({
6+
url: '/product/category/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新商品分类
13+
export function updateCategory(data) {
14+
return request({
15+
url: '/product/category/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除商品分类
22+
export function deleteCategory(id) {
23+
return request({
24+
url: '/product/category/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得商品分类
30+
export function getCategory(id) {
31+
return request({
32+
url: '/product/category/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得商品分类
38+
export function listCategory(query) {
39+
return request({
40+
url: '/product/category/listByQuery',
41+
method: 'get',
42+
params: query
43+
})
44+
}
45+
46+
// 获得商品分类分页
47+
export function getCategoryPage(query) {
48+
return request({
49+
url: '/product/category/page',
50+
method: 'get',
51+
params: query
52+
})
53+
}
54+
55+
// 导出商品分类 Excel
56+
export function exportCategoryExcel(query) {
57+
return request({
58+
url: '/product/category/export-excel',
59+
method: 'get',
60+
params: query,
61+
responseType: 'blob'
62+
})
63+
}

src/api/mall/product/property.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import request from '@/utils/request'
2+
3+
// 创建规格名称
4+
export function createProperty(data) {
5+
return request({
6+
url: '/product/property/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新规格名称
13+
export function updateProperty(data) {
14+
return request({
15+
url: '/product/property/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除规格名称
22+
export function deleteProperty(id) {
23+
return request({
24+
url: '/product/property/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得规格名称
30+
export function getProperty(id) {
31+
return request({
32+
url: '/product/property/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得规格名称分页
38+
export function getPropertyPage(query) {
39+
return request({
40+
url: '/product/property/page',
41+
method: 'get',
42+
params: query
43+
})
44+
}
45+
46+
// 导出规格名称 Excel
47+
export function exportPropertyExcel(query) {
48+
return request({
49+
url: '/product/property/export-excel',
50+
method: 'get',
51+
params: query,
52+
responseType: 'blob'
53+
})
54+
}

src/api/mall/product/spu.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import request from '@/utils/request'
2+
3+
// 创建商品spu
4+
export function createSpu(data) {
5+
return request({
6+
url: '/product/spu/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新商品spu
13+
export function updateSpu(data) {
14+
return request({
15+
url: '/product/spu/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除商品spu
22+
export function deleteSpu(id) {
23+
return request({
24+
url: '/product/spu/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得商品spu
30+
export function getSpu(id) {
31+
return request({
32+
url: '/product/spu/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得商品spu分页
38+
export function getSpuPage(query) {
39+
return request({
40+
url: '/product/spu/page',
41+
method: 'get',
42+
params: query
43+
})
44+
}
45+
46+
// 导出商品spu Excel
47+
export function exportSpuExcel(query) {
48+
return request({
49+
url: '/product/spu/export-excel',
50+
method: 'get',
51+
params: query,
52+
responseType: 'blob'
53+
})
54+
}

src/assets/icons/svg/config.svg

Lines changed: 1 addition & 2 deletions
Loading

src/assets/icons/svg/download.svg

Lines changed: 1 addition & 1 deletion
Loading

src/assets/icons/svg/merchant.svg

Lines changed: 1 addition & 2 deletions
Loading

0 commit comments

Comments
 (0)