Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
b5d61aae
"...webapp/static/plugins/tmlpjs/1.0.0/jquery.tmpl.min.js" did not exist on "c9bf4f7e66b8fafcfe4ad7ff795c691daab54f8b"
Commit
b5d61aae
authored
Jun 26, 2019
by
sober
Committed by
linlinjava
Jun 26, 2019
Browse files
remove useless reference and modify log print type (#216)
parent
5b006701
Changes
39
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCollectController.java
View file @
b5d61aae
...
...
@@ -29,7 +29,7 @@ public class AdminCollectController {
@RequiresPermissions
(
"admin:collect:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"用户收藏"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"用户收藏"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
userId
,
String
valueId
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCommentController.java
View file @
b5d61aae
...
...
@@ -25,7 +25,7 @@ public class AdminCommentController {
private
LitemallCommentService
commentService
;
@RequiresPermissions
(
"admin:comment:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"商品管理"
,
"评论管理"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"商品管理"
,
"评论管理"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
userId
,
String
valueId
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -37,7 +37,7 @@ public class AdminCommentController {
}
@RequiresPermissions
(
"admin:comment:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"商品管理"
,
"评论管理"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"商品管理"
,
"评论管理"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallComment
comment
)
{
Integer
id
=
comment
.
getId
();
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminConfigController.java
View file @
b5d61aae
...
...
@@ -24,7 +24,7 @@ public class AdminConfigController {
private
LitemallSystemConfigService
systemConfigService
;
@RequiresPermissions
(
"admin:config:mall:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"商场配置"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"商场配置"
},
button
=
"详情"
)
@GetMapping
(
"/mall"
)
public
Object
listMall
()
{
Map
<
String
,
String
>
data
=
systemConfigService
.
listMail
();
...
...
@@ -32,9 +32,9 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:mall:updateConfigs"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"商场配置"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"商场配置"
},
button
=
"编辑"
)
@PostMapping
(
"/mall"
)
public
Object
updateMall
(
@RequestBody
String
body
)
{
public
Object
updateMall
(
@RequestBody
String
body
)
{
Map
<
String
,
String
>
data
=
JacksonUtil
.
toMap
(
body
);
systemConfigService
.
updateConfig
(
data
);
SystemConfig
.
updateConfigs
(
data
);
...
...
@@ -42,7 +42,7 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:express:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"运费配置"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"运费配置"
},
button
=
"详情"
)
@GetMapping
(
"/express"
)
public
Object
listExpress
()
{
Map
<
String
,
String
>
data
=
systemConfigService
.
listExpress
();
...
...
@@ -50,7 +50,7 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:express:updateConfigs"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"运费配置"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"运费配置"
},
button
=
"编辑"
)
@PostMapping
(
"/express"
)
public
Object
updateExpress
(
@RequestBody
String
body
)
{
Map
<
String
,
String
>
data
=
JacksonUtil
.
toMap
(
body
);
...
...
@@ -60,7 +60,7 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:order:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"订单配置"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"订单配置"
},
button
=
"详情"
)
@GetMapping
(
"/order"
)
public
Object
lisOrder
()
{
Map
<
String
,
String
>
data
=
systemConfigService
.
listOrder
();
...
...
@@ -68,7 +68,7 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:order:updateConfigs"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"订单配置"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"订单配置"
},
button
=
"编辑"
)
@PostMapping
(
"/order"
)
public
Object
updateOrder
(
@RequestBody
String
body
)
{
Map
<
String
,
String
>
data
=
JacksonUtil
.
toMap
(
body
);
...
...
@@ -77,7 +77,7 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:wx:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"小程序配置"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"小程序配置"
},
button
=
"详情"
)
@GetMapping
(
"/wx"
)
public
Object
listWx
()
{
Map
<
String
,
String
>
data
=
systemConfigService
.
listWx
();
...
...
@@ -85,7 +85,7 @@ public class AdminConfigController {
}
@RequiresPermissions
(
"admin:config:wx:updateConfigs"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"小程序配置"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"配置管理"
,
"小程序配置"
},
button
=
"编辑"
)
@PostMapping
(
"/wx"
)
public
Object
updateWx
(
@RequestBody
String
body
)
{
Map
<
String
,
String
>
data
=
JacksonUtil
.
toMap
(
body
);
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCouponController.java
View file @
b5d61aae
...
...
@@ -32,7 +32,7 @@ public class AdminCouponController {
private
LitemallCouponUserService
couponUserService
;
@RequiresPermissions
(
"admin:coupon:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
name
,
Short
type
,
Short
status
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -44,27 +44,28 @@ public class AdminCouponController {
}
@RequiresPermissions
(
"admin:coupon:listuser"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"查询用户"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"查询用户"
)
@GetMapping
(
"/listuser"
)
public
Object
listuser
(
Integer
userId
,
Integer
couponId
,
Short
status
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@Sort
@RequestParam
(
defaultValue
=
"add_time"
)
String
sort
,
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
)
{
List
<
LitemallCouponUser
>
couponList
=
couponUserService
.
queryList
(
userId
,
couponId
,
status
,
page
,
limit
,
sort
,
order
);
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@Sort
@RequestParam
(
defaultValue
=
"add_time"
)
String
sort
,
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
)
{
List
<
LitemallCouponUser
>
couponList
=
couponUserService
.
queryList
(
userId
,
couponId
,
status
,
page
,
limit
,
sort
,
order
);
return
ResponseUtil
.
okList
(
couponList
);
}
private
Object
validate
(
LitemallCoupon
coupon
)
{
String
name
=
coupon
.
getName
();
if
(
StringUtils
.
isEmpty
(
name
)){
if
(
StringUtils
.
isEmpty
(
name
))
{
return
ResponseUtil
.
badArgument
();
}
return
null
;
}
@RequiresPermissions
(
"admin:coupon:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"添加"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"添加"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestBody
LitemallCoupon
coupon
)
{
Object
error
=
validate
(
coupon
);
...
...
@@ -73,7 +74,7 @@ public class AdminCouponController {
}
// 如果是兑换码类型,则这里需要生存一个兑换码
if
(
coupon
.
getType
().
equals
(
CouponConstant
.
TYPE_CODE
)){
if
(
coupon
.
getType
().
equals
(
CouponConstant
.
TYPE_CODE
))
{
String
code
=
couponService
.
generateCode
();
coupon
.
setCode
(
code
);
}
...
...
@@ -83,7 +84,7 @@ public class AdminCouponController {
}
@RequiresPermissions
(
"admin:coupon:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"详情"
)
@GetMapping
(
"/read"
)
public
Object
read
(
@NotNull
Integer
id
)
{
LitemallCoupon
coupon
=
couponService
.
findById
(
id
);
...
...
@@ -91,7 +92,7 @@ public class AdminCouponController {
}
@RequiresPermissions
(
"admin:coupon:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallCoupon
coupon
)
{
Object
error
=
validate
(
coupon
);
...
...
@@ -105,7 +106,7 @@ public class AdminCouponController {
}
@RequiresPermissions
(
"admin:coupon:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"优惠券管理"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallCoupon
coupon
)
{
couponService
.
deleteById
(
coupon
.
getId
());
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminFeedbackController.java
View file @
b5d61aae
...
...
@@ -32,14 +32,15 @@ public class AdminFeedbackController {
private
LitemallFeedbackService
feedbackService
;
@RequiresPermissions
(
"admin:feedback:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"意见反馈"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"意见反馈"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
Integer
userId
,
String
username
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@Sort
@RequestParam
(
defaultValue
=
"add_time"
)
String
sort
,
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
)
{
List
<
LitemallFeedback
>
feedbackList
=
feedbackService
.
querySelective
(
userId
,
username
,
page
,
limit
,
sort
,
order
);
List
<
LitemallFeedback
>
feedbackList
=
feedbackService
.
querySelective
(
userId
,
username
,
page
,
limit
,
sort
,
order
);
return
ResponseUtil
.
okList
(
feedbackList
);
}
}
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminFootprintController.java
View file @
b5d61aae
...
...
@@ -28,14 +28,15 @@ public class AdminFootprintController {
private
LitemallFootprintService
footprintService
;
@RequiresPermissions
(
"admin:footprint:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"用户足迹"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"用户足迹"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
userId
,
String
goodsId
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@Sort
@RequestParam
(
defaultValue
=
"add_time"
)
String
sort
,
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
)
{
List
<
LitemallFootprint
>
footprintList
=
footprintService
.
querySelective
(
userId
,
goodsId
,
page
,
limit
,
sort
,
order
);
List
<
LitemallFootprint
>
footprintList
=
footprintService
.
querySelective
(
userId
,
goodsId
,
page
,
limit
,
sort
,
order
);
return
ResponseUtil
.
okList
(
footprintList
);
}
}
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminGrouponController.java
View file @
b5d61aae
...
...
@@ -38,7 +38,7 @@ public class AdminGrouponController {
private
LitemallGrouponService
grouponService
;
@RequiresPermissions
(
"admin:groupon:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"详情"
)
@GetMapping
(
"/listRecord"
)
public
Object
listRecord
(
String
grouponId
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -70,7 +70,7 @@ public class AdminGrouponController {
}
@RequiresPermissions
(
"admin:groupon:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
goodsId
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -103,7 +103,7 @@ public class AdminGrouponController {
}
@RequiresPermissions
(
"admin:groupon:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallGrouponRules
grouponRules
)
{
Object
error
=
validate
(
grouponRules
);
...
...
@@ -128,7 +128,7 @@ public class AdminGrouponController {
}
@RequiresPermissions
(
"admin:groupon:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"添加"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"添加"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestBody
LitemallGrouponRules
grouponRules
)
{
Object
error
=
validate
(
grouponRules
);
...
...
@@ -151,7 +151,7 @@ public class AdminGrouponController {
}
@RequiresPermissions
(
"admin:groupon:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"团购管理"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallGrouponRules
grouponRules
)
{
Integer
id
=
grouponRules
.
getId
();
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminHistoryController.java
View file @
b5d61aae
...
...
@@ -26,14 +26,15 @@ public class AdminHistoryController {
private
LitemallSearchHistoryService
searchHistoryService
;
@RequiresPermissions
(
"admin:history:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"搜索历史"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"搜索历史"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
userId
,
String
keyword
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@Sort
@RequestParam
(
defaultValue
=
"add_time"
)
String
sort
,
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
)
{
List
<
LitemallSearchHistory
>
historyList
=
searchHistoryService
.
querySelective
(
userId
,
keyword
,
page
,
limit
,
sort
,
order
);
List
<
LitemallSearchHistory
>
historyList
=
searchHistoryService
.
querySelective
(
userId
,
keyword
,
page
,
limit
,
sort
,
order
);
return
ResponseUtil
.
okList
(
historyList
);
}
}
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminIndexController.java
View file @
b5d61aae
...
...
@@ -51,14 +51,14 @@ public class AdminIndexController {
}
@RequiresPermissions
(
"index:permission:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"其他"
,
"权限测试"
},
button
=
"权限读"
)
@RequiresPermissionsDesc
(
menu
=
{
"其他"
,
"权限测试"
},
button
=
"权限读"
)
@GetMapping
(
"/read"
)
public
Object
read
()
{
return
ResponseUtil
.
ok
(
"hello world, this is admin service"
);
}
@RequiresPermissions
(
"index:permission:write"
)
@RequiresPermissionsDesc
(
menu
=
{
"其他"
,
"权限测试"
},
button
=
"权限写"
)
@RequiresPermissionsDesc
(
menu
=
{
"其他"
,
"权限测试"
},
button
=
"权限写"
)
@PostMapping
(
"/write"
)
public
Object
write
()
{
return
ResponseUtil
.
ok
(
"hello world, this is admin service"
);
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminIssueController.java
View file @
b5d61aae
...
...
@@ -27,7 +27,7 @@ public class AdminIssueController {
private
LitemallIssueService
issueService
;
@RequiresPermissions
(
"admin:issue:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
question
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -51,7 +51,7 @@ public class AdminIssueController {
}
@RequiresPermissions
(
"admin:issue:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"添加"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"添加"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestBody
LitemallIssue
issue
)
{
Object
error
=
validate
(
issue
);
...
...
@@ -70,7 +70,7 @@ public class AdminIssueController {
}
@RequiresPermissions
(
"admin:issue:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallIssue
issue
)
{
Object
error
=
validate
(
issue
);
...
...
@@ -85,7 +85,7 @@ public class AdminIssueController {
}
@RequiresPermissions
(
"admin:issue:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"通用问题"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallIssue
issue
)
{
Integer
id
=
issue
.
getId
();
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminKeywordController.java
View file @
b5d61aae
...
...
@@ -27,7 +27,7 @@ public class AdminKeywordController {
private
LitemallKeywordService
keywordService
;
@RequiresPermissions
(
"admin:keyword:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
keyword
,
String
url
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -47,7 +47,7 @@ public class AdminKeywordController {
}
@RequiresPermissions
(
"admin:keyword:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"添加"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"添加"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestBody
LitemallKeyword
keyword
)
{
Object
error
=
validate
(
keyword
);
...
...
@@ -59,7 +59,7 @@ public class AdminKeywordController {
}
@RequiresPermissions
(
"admin:keyword:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"详情"
)
@GetMapping
(
"/read"
)
public
Object
read
(
@NotNull
Integer
id
)
{
LitemallKeyword
keyword
=
keywordService
.
findById
(
id
);
...
...
@@ -67,7 +67,7 @@ public class AdminKeywordController {
}
@RequiresPermissions
(
"admin:keyword:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallKeyword
keyword
)
{
Object
error
=
validate
(
keyword
);
...
...
@@ -81,7 +81,7 @@ public class AdminKeywordController {
}
@RequiresPermissions
(
"admin:keyword:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"商场管理"
,
"关键词"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallKeyword
keyword
)
{
Integer
id
=
keyword
.
getId
();
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminLogController.java
View file @
b5d61aae
...
...
@@ -11,7 +11,10 @@ import org.linlinjava.litemall.db.domain.LitemallLog;
import
org.linlinjava.litemall.db.service.LitemallLogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
...
...
@@ -25,7 +28,7 @@ public class AdminLogController {
private
LitemallLogService
logService
;
@RequiresPermissions
(
"admin:log:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"操作日志"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"操作日志"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
name
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminRegionController.java
View file @
b5d61aae
...
...
@@ -36,7 +36,7 @@ public class AdminRegionController {
List
<
RegionVo
>
regionVoList
=
new
ArrayList
<>();
List
<
LitemallRegion
>
provinceList
=
regionService
.
queryByPid
(
0
);
for
(
LitemallRegion
province
:
provinceList
){
for
(
LitemallRegion
province
:
provinceList
)
{
RegionVo
provinceVO
=
new
RegionVo
();
provinceVO
.
setId
(
province
.
getId
());
provinceVO
.
setName
(
province
.
getName
());
...
...
@@ -45,7 +45,7 @@ public class AdminRegionController {
List
<
LitemallRegion
>
cityList
=
regionService
.
queryByPid
(
province
.
getId
());
List
<
RegionVo
>
cityVOList
=
new
ArrayList
<>();
for
(
LitemallRegion
city
:
cityList
){
for
(
LitemallRegion
city
:
cityList
)
{
RegionVo
cityVO
=
new
RegionVo
();
cityVO
.
setId
(
city
.
getId
());
cityVO
.
setName
(
city
.
getName
());
...
...
@@ -54,7 +54,7 @@ public class AdminRegionController {
List
<
LitemallRegion
>
areaList
=
regionService
.
queryByPid
(
city
.
getId
());
List
<
RegionVo
>
areaVOList
=
new
ArrayList
<>();
for
(
LitemallRegion
area
:
areaList
){
for
(
LitemallRegion
area
:
areaList
)
{
RegionVo
areaVO
=
new
RegionVo
();
areaVO
.
setId
(
area
.
getId
());
areaVO
.
setName
(
area
.
getName
());
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminRoleController.java
View file @
b5d61aae
...
...
@@ -5,9 +5,9 @@ import org.apache.commons.logging.LogFactory;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.linlinjava.litemall.admin.annotation.RequiresPermissionsDesc
;
import
org.linlinjava.litemall.admin.util.AdminResponseCode
;
import
org.linlinjava.litemall.admin.vo.PermVo
;
import
org.linlinjava.litemall.admin.util.Permission
;
import
org.linlinjava.litemall.admin.util.PermissionUtil
;
import
org.linlinjava.litemall.admin.vo.PermVo
;
import
org.linlinjava.litemall.core.util.JacksonUtil
;
import
org.linlinjava.litemall.core.util.ResponseUtil
;
import
org.linlinjava.litemall.core.validator.Order
;
...
...
@@ -44,7 +44,7 @@ public class AdminRoleController {
private
LitemallAdminService
adminService
;
@RequiresPermissions
(
"admin:role:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
name
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -56,7 +56,7 @@ public class AdminRoleController {
}
@GetMapping
(
"/options"
)
public
Object
options
(){
public
Object
options
()
{
List
<
LitemallRole
>
roleList
=
roleService
.
queryAll
();
List
<
Map
<
String
,
Object
>>
options
=
new
ArrayList
<>(
roleList
.
size
());
...
...
@@ -71,7 +71,7 @@ public class AdminRoleController {
}
@RequiresPermissions
(
"admin:role:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色详情"
)
@GetMapping
(
"/read"
)
public
Object
read
(
@NotNull
Integer
id
)
{
LitemallRole
role
=
roleService
.
findById
(
id
);
...
...
@@ -89,7 +89,7 @@ public class AdminRoleController {
}
@RequiresPermissions
(
"admin:role:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色添加"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色添加"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestBody
LitemallRole
role
)
{
Object
error
=
validate
(
role
);
...
...
@@ -97,7 +97,7 @@ public class AdminRoleController {
return
error
;
}
if
(
roleService
.
checkExist
(
role
.
getName
())){
if
(
roleService
.
checkExist
(
role
.
getName
()))
{
return
ResponseUtil
.
fail
(
ROLE_NAME_EXIST
,
"角色已经存在"
);
}
...
...
@@ -107,7 +107,7 @@ public class AdminRoleController {
}
@RequiresPermissions
(
"admin:role:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallRole
role
)
{
Object
error
=
validate
(
role
);
...
...
@@ -120,7 +120,7 @@ public class AdminRoleController {
}
@RequiresPermissions
(
"admin:role:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"角色删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallRole
role
)
{
Integer
id
=
role
.
getId
();
...
...
@@ -130,10 +130,10 @@ public class AdminRoleController {
// 如果当前角色所对应管理员仍存在,则拒绝删除角色。
List
<
LitemallAdmin
>
adminList
=
adminService
.
all
();
for
(
LitemallAdmin
admin
:
adminList
){
for
(
LitemallAdmin
admin
:
adminList
)
{
Integer
[]
roleIds
=
admin
.
getRoleIds
();
for
(
Integer
roleId
:
roleIds
){
if
(
id
.
equals
(
roleId
)){
for
(
Integer
roleId
:
roleIds
)
{
if
(
id
.
equals
(
roleId
))
{
return
ResponseUtil
.
fail
(
ROLE_USER_EXIST
,
"当前角色存在管理员,不能删除"
);
}
}
...
...
@@ -149,9 +149,9 @@ public class AdminRoleController {
private
List
<
PermVo
>
systemPermissions
=
null
;
private
Set
<
String
>
systemPermissionsString
=
null
;
private
List
<
PermVo
>
getSystemPermissions
(){
private
List
<
PermVo
>
getSystemPermissions
()
{
final
String
basicPackage
=
"org.linlinjava.litemall.admin"
;
if
(
systemPermissions
==
null
){
if
(
systemPermissions
==
null
)
{
List
<
Permission
>
permissions
=
PermissionUtil
.
listPermission
(
context
,
basicPackage
);
systemPermissions
=
PermissionUtil
.
listPermVo
(
permissions
);
systemPermissionsString
=
PermissionUtil
.
listPermissionString
(
permissions
);
...
...
@@ -159,15 +159,14 @@ public class AdminRoleController {
return
systemPermissions
;
}
private
Set
<
String
>
getAssignedPermissions
(
Integer
roleId
){
private
Set
<
String
>
getAssignedPermissions
(
Integer
roleId
)
{
// 这里需要注意的是,如果存在超级权限*,那么这里需要转化成当前所有系统权限。
// 之所以这么做,是因为前端不能识别超级权限,所以这里需要转换一下。
Set
<
String
>
assignedPermissions
=
null
;
if
(
permissionService
.
checkSuperPermission
(
roleId
)){
if
(
permissionService
.
checkSuperPermission
(
roleId
))
{
getSystemPermissions
();
assignedPermissions
=
systemPermissionsString
;
}
else
{
}
else
{
assignedPermissions
=
permissionService
.
queryByRoleId
(
roleId
);
}
...
...
@@ -180,7 +179,7 @@ public class AdminRoleController {
* @return 系统所有权限列表和管理员已分配权限
*/
@RequiresPermissions
(
"admin:role:permission:get"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"权限详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"权限详情"
)
@GetMapping
(
"/permissions"
)
public
Object
getPermissions
(
Integer
roleId
)
{
List
<
PermVo
>
systemPermissions
=
getSystemPermissions
();
...
...
@@ -200,23 +199,23 @@ public class AdminRoleController {
* @return
*/
@RequiresPermissions
(
"admin:role:permission:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"权限变更"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"角色管理"
},
button
=
"权限变更"
)
@PostMapping
(
"/permissions"
)
public
Object
updatePermissions
(
@RequestBody
String
body
)
{
Integer
roleId
=
JacksonUtil
.
parseInteger
(
body
,
"roleId"
);
List
<
String
>
permissions
=
JacksonUtil
.
parseStringList
(
body
,
"permissions"
);
if
(
roleId
==
null
||
permissions
==
null
){
if
(
roleId
==
null
||
permissions
==
null
)
{
return
ResponseUtil
.
badArgument
();
}
// 如果修改的角色是超级权限,则拒绝修改。
if
(
permissionService
.
checkSuperPermission
(
roleId
)){
if
(
permissionService
.
checkSuperPermission
(
roleId
))
{
return
ResponseUtil
.
fail
(
AdminResponseCode
.
ROLE_SUPER_SUPERMISSION
,
"当前角色的超级权限不能变更"
);
}
// 先删除旧的权限,再更新新的权限
permissionService
.
deleteByRoleId
(
roleId
);
for
(
String
permission
:
permissions
){
for
(
String
permission
:
permissions
)
{
LitemallPermission
litemallPermission
=
new
LitemallPermission
();
litemallPermission
.
setRoleId
(
roleId
);
litemallPermission
.
setPermission
(
permission
);
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminStatController.java
View file @
b5d61aae
...
...
@@ -26,7 +26,7 @@ public class AdminStatController {
private
StatService
statService
;
@RequiresPermissions
(
"admin:stat:user"
)
@RequiresPermissionsDesc
(
menu
=
{
"统计管理"
,
"用户统计"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"统计管理"
,
"用户统计"
},
button
=
"查询"
)
@GetMapping
(
"/user"
)
public
Object
statUser
()
{
List
<
Map
>
rows
=
statService
.
statUser
();
...
...
@@ -38,7 +38,7 @@ public class AdminStatController {
}
@RequiresPermissions
(
"admin:stat:order"
)
@RequiresPermissionsDesc
(
menu
=
{
"统计管理"
,
"订单统计"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"统计管理"
,
"订单统计"
},
button
=
"查询"
)
@GetMapping
(
"/order"
)
public
Object
statOrder
()
{
List
<
Map
>
rows
=
statService
.
statOrder
();
...
...
@@ -51,7 +51,7 @@ public class AdminStatController {
}
@RequiresPermissions
(
"admin:stat:goods"
)
@RequiresPermissionsDesc
(
menu
=
{
"统计管理"
,
"商品统计"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"统计管理"
,
"商品统计"
},
button
=
"查询"
)
@GetMapping
(
"/goods"
)
public
Object
statGoods
()
{
List
<
Map
>
rows
=
statService
.
statGoods
();
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminStorageController.java
View file @
b5d61aae
...
...
@@ -32,7 +32,7 @@ public class AdminStorageController {
private
LitemallStorageService
litemallStorageService
;
@RequiresPermissions
(
"admin:storage:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
key
,
String
name
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -44,16 +44,17 @@ public class AdminStorageController {
}
@RequiresPermissions
(
"admin:storage:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"上传"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"上传"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
IOException
{
String
originalFilename
=
file
.
getOriginalFilename
();
LitemallStorage
litemallStorage
=
storageService
.
store
(
file
.
getInputStream
(),
file
.
getSize
(),
file
.
getContentType
(),
originalFilename
);
LitemallStorage
litemallStorage
=
storageService
.
store
(
file
.
getInputStream
(),
file
.
getSize
(),
file
.
getContentType
(),
originalFilename
);
return
ResponseUtil
.
ok
(
litemallStorage
);
}
@RequiresPermissions
(
"admin:storage:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"详情"
)
@PostMapping
(
"/read"
)
public
Object
read
(
@NotNull
Integer
id
)
{
LitemallStorage
storageInfo
=
litemallStorageService
.
findById
(
id
);
...
...
@@ -64,7 +65,7 @@ public class AdminStorageController {
}
@RequiresPermissions
(
"admin:storage:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallStorage
litemallStorage
)
{
if
(
litemallStorageService
.
update
(
litemallStorage
)
==
0
)
{
...
...
@@ -74,7 +75,7 @@ public class AdminStorageController {
}
@RequiresPermissions
(
"admin:storage:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"系统管理"
,
"对象存储"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallStorage
litemallStorage
)
{
String
key
=
litemallStorage
.
getKey
();
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminTopicController.java
View file @
b5d61aae
...
...
@@ -35,7 +35,7 @@ public class AdminTopicController {
private
LitemallGoodsService
goodsService
;
@RequiresPermissions
(
"admin:topic:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
title
,
String
subtitle
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
@@ -63,7 +63,7 @@ public class AdminTopicController {
}
@RequiresPermissions
(
"admin:topic:create"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"添加"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"添加"
)
@PostMapping
(
"/create"
)
public
Object
create
(
@RequestBody
LitemallTopic
topic
)
{
Object
error
=
validate
(
topic
);
...
...
@@ -75,16 +75,15 @@ public class AdminTopicController {
}
@RequiresPermissions
(
"admin:topic:read"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"详情"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"详情"
)
@GetMapping
(
"/read"
)
public
Object
read
(
@NotNull
Integer
id
)
{
LitemallTopic
topic
=
topicService
.
findById
(
id
);
Integer
[]
goodsIds
=
topic
.
getGoods
();
List
<
LitemallGoods
>
goodsList
=
null
;
if
(
goodsIds
==
null
||
goodsIds
.
length
==
0
){
if
(
goodsIds
==
null
||
goodsIds
.
length
==
0
)
{
goodsList
=
new
ArrayList
<>();
}
else
{
}
else
{
goodsList
=
goodsService
.
queryByIds
(
goodsIds
);
}
Map
<
String
,
Object
>
data
=
new
HashMap
<>(
2
);
...
...
@@ -94,7 +93,7 @@ public class AdminTopicController {
}
@RequiresPermissions
(
"admin:topic:update"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"编辑"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"编辑"
)
@PostMapping
(
"/update"
)
public
Object
update
(
@RequestBody
LitemallTopic
topic
)
{
Object
error
=
validate
(
topic
);
...
...
@@ -108,7 +107,7 @@ public class AdminTopicController {
}
@RequiresPermissions
(
"admin:topic:delete"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"删除"
)
@RequiresPermissionsDesc
(
menu
=
{
"推广管理"
,
"专题管理"
},
button
=
"删除"
)
@PostMapping
(
"/delete"
)
public
Object
delete
(
@RequestBody
LitemallTopic
topic
)
{
topicService
.
deleteById
(
topic
.
getId
());
...
...
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminUserController.java
View file @
b5d61aae
...
...
@@ -11,7 +11,10 @@ import org.linlinjava.litemall.db.domain.LitemallUser;
import
org.linlinjava.litemall.db.service.LitemallUserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
...
...
@@ -25,7 +28,7 @@ public class AdminUserController {
private
LitemallUserService
userService
;
@RequiresPermissions
(
"admin:user:list"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"会员管理"
},
button
=
"查询"
)
@RequiresPermissionsDesc
(
menu
=
{
"用户管理"
,
"会员管理"
},
button
=
"查询"
)
@GetMapping
(
"/list"
)
public
Object
list
(
String
username
,
String
mobile
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
...
...
litemall-admin-api/src/test/java/org/linlinjava/litemall/admin/PermissionTest.java
View file @
b5d61aae
...
...
@@ -2,9 +2,9 @@ package org.linlinjava.litemall.admin;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.linlinjava.litemall.admin.vo.PermVo
;
import
org.linlinjava.litemall.admin.util.Permission
;
import
org.linlinjava.litemall.admin.util.PermissionUtil
;
import
org.linlinjava.litemall.admin.vo.PermVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.context.ApplicationContext
;
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment