From 85052310d5bf3c54e330454e9e77a6459bc63af3 Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期日, 14 四月 2019 00:05:06 +0800
Subject: [PATCH] 添加网站logo
---
OrderService/src/main/java/com/java110/order/api/PrivilegeApi.java | 71 +++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/OrderService/src/main/java/com/java110/order/api/PrivilegeApi.java b/OrderService/src/main/java/com/java110/order/api/PrivilegeApi.java
index 5231c6d..be864cb 100644
--- a/OrderService/src/main/java/com/java110/order/api/PrivilegeApi.java
+++ b/OrderService/src/main/java/com/java110/order/api/PrivilegeApi.java
@@ -86,6 +86,77 @@
}
}
+ @RequestMapping(path = "/deletePrivilegeGroup",method= RequestMethod.POST)
+ @ApiOperation(value="鍒犻櫎鏉冮檺缁�", notes="test: 杩斿洖 200 琛ㄧず鏈嶅姟鍙楃悊鎴愬姛锛屽叾浠栬〃绀哄け璐�")
+ @ApiImplicitParam(paramType="query", name = "privilegeGroupInfo", value = "鏉冮檺淇℃伅", required = true, dataType = "String")
+ public ResponseEntity<String> deletePrivilegeGroup(@RequestBody String privilegeGroupInfo,HttpServletRequest request){
+ ResponseEntity<String> responseEntity = null;
+
+ try {
+ responseEntity = privilegeSMOImpl.deletePrivilegeGroup(privilegeGroupInfo);
+ }catch (Exception e){
+ logger.error("璇锋眰璁㈠崟寮傚父",e);
+ responseEntity = new ResponseEntity<String>("璇锋眰涓績鏈嶅姟鍙戠敓寮傚父锛�"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
+ }finally {
+ logger.debug("璁㈠崟鏈嶅姟杩斿洖鎶ユ枃涓�: {}",responseEntity);
+ return responseEntity;
+ }
+ }
+
+ @RequestMapping(path = "/addPrivilegeToPrivilegeGroup",method= RequestMethod.POST)
+ @ApiOperation(value="娣诲姞鏉冮檺鍒版潈闄愮粍", notes="test: 杩斿洖 200 琛ㄧず鏈嶅姟鍙楃悊鎴愬姛锛屽叾浠栬〃绀哄け璐�")
+ @ApiImplicitParam(paramType="query", name = "privilegeInfo", value = "鏉冮檺淇℃伅", required = true, dataType = "String")
+ public ResponseEntity<String> addPrivilegeToPrivilegeGroup(@RequestBody String privilegeInfo,HttpServletRequest request){
+ ResponseEntity<String> responseEntity = null;
+
+ try {
+ responseEntity = privilegeSMOImpl.addPrivilegeToPrivilegeGroup(privilegeInfo);
+ }catch (Exception e){
+ logger.error("璇锋眰璁㈠崟寮傚父",e);
+ responseEntity = new ResponseEntity<String>("璇锋眰涓績鏈嶅姟鍙戠敓寮傚父锛�"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
+ }finally {
+ logger.debug("璁㈠崟鏈嶅姟杩斿洖鎶ユ枃涓�: {}",responseEntity);
+ return responseEntity;
+ }
+ }
+
+
+ @RequestMapping(path = "/deletePrivilegeFromPrivilegeGroup",method= RequestMethod.POST)
+ @ApiOperation(value="浠庢潈闄愮粍鍒犻櫎鏉冮檺", notes="test: 杩斿洖 200 琛ㄧず鏈嶅姟鍙楃悊鎴愬姛锛屽叾浠栬〃绀哄け璐�")
+ @ApiImplicitParam(paramType="query", name = "privilegeInfo", value = "鏉冮檺淇℃伅", required = true, dataType = "String")
+ public ResponseEntity<String> deletePrivilegeFromPrivilegeGroup(@RequestBody String privilegeInfo,HttpServletRequest request){
+ ResponseEntity<String> responseEntity = null;
+
+ try {
+ responseEntity = privilegeSMOImpl.deletePrivilegeToPrivilegeGroup(privilegeInfo);
+ }catch (Exception e){
+ logger.error("璇锋眰璁㈠崟寮傚父",e);
+ responseEntity = new ResponseEntity<String>("璇锋眰涓績鏈嶅姟鍙戠敓寮傚父锛�"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
+ }finally {
+ logger.debug("璁㈠崟鏈嶅姟杩斿洖鎶ユ枃涓�: {}",responseEntity);
+ return responseEntity;
+ }
+ }
+
+
+ @RequestMapping(path = "/addStaffPrivilegeOrPrivilegeGroup",method= RequestMethod.POST)
+ @ApiOperation(value="鐢ㄦ埛娣诲姞鏉冮檺鎴栨潈闄愮粍", notes="test: 杩斿洖 200 琛ㄧず鏈嶅姟鍙楃悊鎴愬姛锛屽叾浠栬〃绀哄け璐�")
+ @ApiImplicitParam(paramType="query", name = "privilegeInfo", value = "鏉冮檺淇℃伅", required = true, dataType = "String")
+ public ResponseEntity<String> addStaffPrivilegeOrPrivilegeGroup(@RequestBody String privilegeInfo,HttpServletRequest request){
+ ResponseEntity<String> responseEntity = null;
+
+ try {
+ responseEntity = privilegeSMOImpl.addStaffPrivilegeOrPrivilegeGroup(privilegeInfo);
+ }catch (Exception e){
+ logger.error("璇锋眰璁㈠崟寮傚父",e);
+ responseEntity = new ResponseEntity<String>("璇锋眰涓績鏈嶅姟鍙戠敓寮傚父锛�"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
+ }finally {
+ logger.debug("璁㈠崟鏈嶅姟杩斿洖鎶ユ枃涓�: {}",responseEntity);
+ return responseEntity;
+ }
+ }
+
+
public IPrivilegeSMO getPrivilegeSMOImpl() {
return privilegeSMOImpl;
--
Gitblit v1.8.0