|
@@ -32,7 +32,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 查询企微账号列表
|
|
* 查询企微账号列表
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:list')")
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(CompanyWxAccount companyWxEnterpriseAccount)
|
|
public TableDataInfo list(CompanyWxAccount companyWxEnterpriseAccount)
|
|
|
{
|
|
{
|
|
@@ -43,7 +43,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 查询企微账号列表
|
|
* 查询企微账号列表
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:list')")
|
|
|
@GetMapping("/listAll")
|
|
@GetMapping("/listAll")
|
|
|
public R listAll(CompanyWxAccount companyWxEnterpriseAccount){
|
|
public R listAll(CompanyWxAccount companyWxEnterpriseAccount){
|
|
|
List<CompanyWxAccount> list = companyWxAccountService.selectCompanyWxAccountListCompany(companyWxEnterpriseAccount);
|
|
List<CompanyWxAccount> list = companyWxAccountService.selectCompanyWxAccountListCompany(companyWxEnterpriseAccount);
|
|
@@ -53,7 +53,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 导出企微账号列表
|
|
* 导出企微账号列表
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:export')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:export')")
|
|
|
@Log(title = "企微账号", businessType = BusinessType.EXPORT)
|
|
@Log(title = "企微账号", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
|
public AjaxResult export(CompanyWxAccount companyWxEnterpriseAccount)
|
|
public AjaxResult export(CompanyWxAccount companyWxEnterpriseAccount)
|
|
@@ -66,7 +66,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 获取企微账号详细信息
|
|
* 获取企微账号详细信息
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:query')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
{
|
|
@@ -76,7 +76,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 新增企微账号
|
|
* 新增企微账号
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:add')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:add')")
|
|
|
@Log(title = "企微账号", businessType = BusinessType.INSERT)
|
|
@Log(title = "企微账号", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody CompanyWxAccount companyWxEnterpriseAccount)
|
|
public AjaxResult add(@RequestBody CompanyWxAccount companyWxEnterpriseAccount)
|
|
@@ -87,7 +87,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 修改企微账号
|
|
* 修改企微账号
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:edit')")
|
|
|
@Log(title = "企微账号", businessType = BusinessType.UPDATE)
|
|
@Log(title = "企微账号", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody CompanyWxAccount companyWxEnterpriseAccount)
|
|
public AjaxResult edit(@RequestBody CompanyWxAccount companyWxEnterpriseAccount)
|
|
@@ -98,7 +98,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 删除企微账号
|
|
* 删除企微账号
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:remove')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:remove')")
|
|
|
@Log(title = "企微账号", businessType = BusinessType.DELETE)
|
|
@Log(title = "企微账号", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
@@ -108,7 +108,7 @@ public class CompanyWxAccountController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 删除企微账号
|
|
* 删除企微账号
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyAccount:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyWx:list')")
|
|
|
@GetMapping("/companyListAll")
|
|
@GetMapping("/companyListAll")
|
|
|
public R companyListAll(){
|
|
public R companyListAll(){
|
|
|
return R.ok().put("data", companyWxAccountService.companyListAllCompany(new CompanyUser()));
|
|
return R.ok().put("data", companyWxAccountService.companyListAllCompany(new CompanyUser()));
|