|
@@ -20,7 +20,6 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
-import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
|
/**
|
|
|
* @Description: 通讯录
|
|
@@ -66,7 +65,6 @@ public class ContactController extends JeecgController<Contact, IContactService>
|
|
|
*/
|
|
|
@AutoLog(value = "通讯录-添加")
|
|
|
@ApiOperation(value="通讯录-添加", notes="通讯录-添加")
|
|
|
- @RequiresPermissions("lg:contact:add")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<String> add(@RequestBody Contact contact) {
|
|
|
contactService.save(contact);
|
|
@@ -81,7 +79,6 @@ public class ContactController extends JeecgController<Contact, IContactService>
|
|
|
*/
|
|
|
@AutoLog(value = "通讯录-编辑")
|
|
|
@ApiOperation(value="通讯录-编辑", notes="通讯录-编辑")
|
|
|
- @RequiresPermissions("lg:contact:edit")
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
public Result<String> edit(@RequestBody Contact contact) {
|
|
|
contactService.updateById(contact);
|
|
@@ -96,7 +93,6 @@ public class ContactController extends JeecgController<Contact, IContactService>
|
|
|
*/
|
|
|
@AutoLog(value = "通讯录-通过id删除")
|
|
|
@ApiOperation(value="通讯录-通过id删除", notes="通讯录-通过id删除")
|
|
|
- @RequiresPermissions("lg:contact:delete")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
contactService.removeById(id);
|
|
@@ -111,7 +107,6 @@ public class ContactController extends JeecgController<Contact, IContactService>
|
|
|
*/
|
|
|
@AutoLog(value = "通讯录-批量删除")
|
|
|
@ApiOperation(value="通讯录-批量删除", notes="通讯录-批量删除")
|
|
|
- @RequiresPermissions("lg:contact:deleteBatch")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
|
this.contactService.removeByIds(Arrays.asList(ids.split(",")));
|
|
@@ -141,7 +136,6 @@ public class ContactController extends JeecgController<Contact, IContactService>
|
|
|
* @param request
|
|
|
* @param contact
|
|
|
*/
|
|
|
- @RequiresPermissions("lg:contact:exportXls")
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
public ModelAndView exportXls(HttpServletRequest request, Contact contact) {
|
|
|
return super.exportXls(request, contact, Contact.class, "通讯录");
|
|
@@ -154,7 +148,6 @@ public class ContactController extends JeecgController<Contact, IContactService>
|
|
|
* @param response
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequiresPermissions("lg:contact:importExcel")
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
|
return super.importExcel(request, response, Contact.class);
|