新增 后管第三方平台配置页面

This commit is contained in:
Lemon
2023-12-05 09:06:08 +08:00
parent 408e582615
commit 3a0eae4aeb
5 changed files with 384 additions and 17 deletions

View File

@@ -1,8 +1,11 @@
package com.jsowell.web.controller.pile;
package com.jsowell.web.controller.thirdparty;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
import com.jsowell.pile.service.IThirdPartyPlatformConfigService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -17,9 +20,6 @@ import com.jsowell.common.annotation.Log;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.enums.BusinessType;
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
import com.jsowell.pile.service.IThirdPartyPlatformConfigService;
import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.common.core.page.TableDataInfo;
/**
@@ -29,7 +29,7 @@ import com.jsowell.common.core.page.TableDataInfo;
* @date 2023-05-27
*/
@RestController
@RequestMapping("/pile/config")
@RequestMapping("/thirdParty/thirdPartyConfig")
public class ThirdPartyPlatformConfigController extends BaseController {
@Autowired
private IThirdPartyPlatformConfigService thirdPartyPlatformConfigService;
@@ -37,7 +37,7 @@ public class ThirdPartyPlatformConfigController extends BaseController {
/**
* 查询对接平台配置信息列表
*/
@PreAuthorize("@ss.hasPermi('pile:config:list')")
@PreAuthorize("@ss.hasPermi('thirdParty:thirdPartyConfig:list')")
@GetMapping("/list")
public TableDataInfo list(ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
startPage();
@@ -48,7 +48,7 @@ public class ThirdPartyPlatformConfigController extends BaseController {
/**
* 导出对接平台配置信息列表
*/
@PreAuthorize("@ss.hasPermi('pile:config:export')")
@PreAuthorize("@ss.hasPermi('thirdParty:thirdPartyConfig:export')")
@Log(title = "对接平台配置信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
@@ -60,7 +60,7 @@ public class ThirdPartyPlatformConfigController extends BaseController {
/**
* 获取对接平台配置信息详细信息
*/
@PreAuthorize("@ss.hasPermi('pile:config:query')")
@PreAuthorize("@ss.hasPermi('thirdParty:thirdPartyConfig:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Integer id) {
return AjaxResult.success(thirdPartyPlatformConfigService.selectThirdPartyPlatformConfigById(id));
@@ -69,7 +69,7 @@ public class ThirdPartyPlatformConfigController extends BaseController {
/**
* 新增对接平台配置信息
*/
@PreAuthorize("@ss.hasPermi('pile:config:add')")
@PreAuthorize("@ss.hasPermi('thirdParty:thirdPartyConfig:add')")
@Log(title = "对接平台配置信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
@@ -79,7 +79,7 @@ public class ThirdPartyPlatformConfigController extends BaseController {
/**
* 修改对接平台配置信息
*/
@PreAuthorize("@ss.hasPermi('pile:config:edit')")
@PreAuthorize("@ss.hasPermi('thirdParty:thirdPartyConfig:edit')")
@Log(title = "对接平台配置信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
@@ -89,7 +89,7 @@ public class ThirdPartyPlatformConfigController extends BaseController {
/**
* 删除对接平台配置信息
*/
@PreAuthorize("@ss.hasPermi('pile:config:remove')")
@PreAuthorize("@ss.hasPermi('thirdParty:thirdPartyConfig:remove')")
@Log(title = "对接平台配置信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Integer[] ids) {