路径调整
This commit is contained in:
1 parent
ce9d974b57
commit
4bcb64383f
1 file changed
+11
-11
@@ -29,19 +29,19 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
||||
* @date 2026-10-08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/config")
|
||||
@RequestMapping("/system/usdtConfig")
|
||||
public class UsdtConfigController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IUsdtConfigService usdtConfigService;
|
||||
@PreAuthorize("@ss.hasPermi('system:config:getByIds')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:getByIds')")
|
||||
@PostMapping("/getByIds")
|
||||
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||
{
|
||||
List<UsdtConfigPlus> list = usdtConfigService.getByIds(ids.getLongIds(),UsdtConfigPlus::getVersion,UsdtConfigPlus::getId);
|
||||
List<UsdtConfigPlus> list = usdtConfigService.getByIds(ids.getLongIds(),UsdtConfigPlus::getTronNetType,UsdtConfigPlus::getId);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
@PreAuthorize("@ss.hasPermi('system:config:select')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:select')")
|
||||
@GetMapping("/select")
|
||||
public AjaxResult select(String keyword)
|
||||
{
|
||||
@@ -51,7 +51,7 @@ public class UsdtConfigController extends BaseController
|
||||
/**
|
||||
* 查询全局配置列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:config:list')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UsdtConfig usdtConfig)
|
||||
{
|
||||
@@ -63,20 +63,20 @@ public class UsdtConfigController extends BaseController
|
||||
/**
|
||||
* 导出全局配置列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:config:export')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:export')")
|
||||
@Log(title = "全局配置", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(UsdtConfig usdtConfig)
|
||||
{
|
||||
List<UsdtConfig> list = usdtConfigService.selectUsdtConfigList(usdtConfig);
|
||||
ExcelUtil<UsdtConfig> util = new ExcelUtil<UsdtConfig>(UsdtConfig.class);
|
||||
return util.exportExcel(list, "config");
|
||||
return util.exportExcel(list, "usdtConfig");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全局配置详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:config:query')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
@@ -86,7 +86,7 @@ public class UsdtConfigController extends BaseController
|
||||
/**
|
||||
* 新增全局配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:config:add')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:add')")
|
||||
@Log(title = "全局配置", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody UsdtConfig usdtConfig)
|
||||
@@ -97,7 +97,7 @@ public class UsdtConfigController extends BaseController
|
||||
/**
|
||||
* 修改全局配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:config:edit')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:edit')")
|
||||
@Log(title = "全局配置", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody UsdtConfig usdtConfig)
|
||||
@@ -108,7 +108,7 @@ public class UsdtConfigController extends BaseController
|
||||
/**
|
||||
* 删除全局配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:config:remove')")
|
||||
@PreAuthorize("@ss.hasPermi('system:usdtConfig:remove')")
|
||||
@Log(title = "全局配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
||||
Reference in new issue
Block a user