注销/短信验证码/线索
This commit is contained in:
parent
aea8f82331
commit
40043859df
|
|
@ -5,11 +5,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.Clew;
|
||||
|
|
@ -89,6 +85,14 @@ public class ClewController extends BaseController
|
|||
return toAjax(clewService.insertClew(clew));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/app/add")
|
||||
@ResponseBody
|
||||
public AjaxResult appAddSave(@RequestBody Clew clew)
|
||||
{
|
||||
return toAjax(clewService.insertClew(clew));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线索
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
package com.ruoyi.web.controller.system;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.CompanyApp;
|
||||
|
|
@ -54,6 +53,13 @@ public class CompanyAppController extends BaseController
|
|||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping("/app/getById")
|
||||
@ResponseBody
|
||||
public AjaxResult getById(@RequestBody CompanyApp companyApp)
|
||||
{
|
||||
return AjaxResult.success(companyAppService.selectCompanyAppById(companyApp.getId()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出客户端列表
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -29,6 +29,13 @@ import javax.validation.Valid;
|
|||
@RequestMapping("/tool/notice")
|
||||
public class NoticeController {
|
||||
|
||||
@PostMapping("/logout")
|
||||
@ResponseBody
|
||||
public AjaxResult logout(@RequestBody NoticeRequest request){
|
||||
|
||||
return AjaxResult.success("注销成功!");
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/sendSms")
|
||||
@ResponseBody
|
||||
|
|
|
|||
|
|
@ -290,6 +290,10 @@ public class ShiroConfig
|
|||
filterChainDefinitionMap.put("/captcha/captchaImage**", "anon");
|
||||
// 短信验证码接口
|
||||
filterChainDefinitionMap.put("/tool/notice/**", "anon");
|
||||
// app查询
|
||||
filterChainDefinitionMap.put("/system/app/app/**", "anon");
|
||||
// 线索接口
|
||||
filterChainDefinitionMap.put("/system/clew/app/**", "anon");
|
||||
// 退出 logout地址,shiro去清除session
|
||||
filterChainDefinitionMap.put("/logout", "logout");
|
||||
// 不需要拦截的访问
|
||||
|
|
|
|||
Loading…
Reference in New Issue