基础代码生成
This commit is contained in:
1 parent
5e63bb6add
commit
f69926dee6
21 files changed
+2827
-4
No files matched your search
+118
@@ -0,0 +1,118 @@
|
||||
package com.ruoyi.system.controller;
|
||||
import com.ruoyi.common.select.Ids;
|
||||
import com.ruoyi.common.select.SelectItem;
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TelegramAuditLog;
|
||||
import com.ruoyi.system.domain.TelegramAuditLogPlus;
|
||||
import com.ruoyi.system.service.ITelegramAuditLogService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* Telegram审核审计日志Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2026-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/telegramAuditLog")
|
||||
public class TelegramAuditLogController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITelegramAuditLogService telegramAuditLogService;
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:getByIds')")
|
||||
@PostMapping("/getByIds")
|
||||
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||
{
|
||||
List<TelegramAuditLogPlus> list = telegramAuditLogService.getByIds(ids.getLongIds(),TelegramAuditLogPlus::getComment,TelegramAuditLogPlus::getId);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:select')")
|
||||
@GetMapping("/select")
|
||||
public AjaxResult select(String keyword)
|
||||
{
|
||||
List<SelectItem> list = telegramAuditLogService.select(keyword);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
/**
|
||||
* 查询Telegram审核审计日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TelegramAuditLog telegramAuditLog)
|
||||
{
|
||||
startPage();
|
||||
List<TelegramAuditLog> list = telegramAuditLogService.selectTelegramAuditLogList(telegramAuditLog);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出Telegram审核审计日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:export')")
|
||||
@Log(title = "Telegram审核审计日志", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(TelegramAuditLog telegramAuditLog)
|
||||
{
|
||||
List<TelegramAuditLog> list = telegramAuditLogService.selectTelegramAuditLogList(telegramAuditLog);
|
||||
ExcelUtil<TelegramAuditLog> util = new ExcelUtil<TelegramAuditLog>(TelegramAuditLog.class);
|
||||
return util.exportExcel(list, "telegramAuditLog");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Telegram审核审计日志详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(telegramAuditLogService.selectTelegramAuditLogById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Telegram审核审计日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:add')")
|
||||
@Log(title = "Telegram审核审计日志", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TelegramAuditLog telegramAuditLog)
|
||||
{
|
||||
return toAjax(telegramAuditLogService.insertTelegramAuditLog(telegramAuditLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Telegram审核审计日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:edit')")
|
||||
@Log(title = "Telegram审核审计日志", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TelegramAuditLog telegramAuditLog)
|
||||
{
|
||||
return toAjax(telegramAuditLogService.updateTelegramAuditLog(telegramAuditLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Telegram审核审计日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditLog:remove')")
|
||||
@Log(title = "Telegram审核审计日志", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(telegramAuditLogService.deleteTelegramAuditLogByIds(ids));
|
||||
}
|
||||
}
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
package com.ruoyi.system.controller;
|
||||
import com.ruoyi.common.select.Ids;
|
||||
import com.ruoyi.common.select.SelectItem;
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TelegramAuditPushTask;
|
||||
import com.ruoyi.system.domain.TelegramAuditPushTaskPlus;
|
||||
import com.ruoyi.system.service.ITelegramAuditPushTaskService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* Telegram审核消息推送任务Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2026-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/telegramAuditPushTask")
|
||||
public class TelegramAuditPushTaskController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITelegramAuditPushTaskService telegramAuditPushTaskService;
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:getByIds')")
|
||||
@PostMapping("/getByIds")
|
||||
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||
{
|
||||
List<TelegramAuditPushTaskPlus> list = telegramAuditPushTaskService.getByIds(ids.getLongIds(),TelegramAuditPushTaskPlus::getAuditNo,TelegramAuditPushTaskPlus::getId);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:select')")
|
||||
@GetMapping("/select")
|
||||
public AjaxResult select(String keyword)
|
||||
{
|
||||
List<SelectItem> list = telegramAuditPushTaskService.select(keyword);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
/**
|
||||
* 查询Telegram审核消息推送任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TelegramAuditPushTask telegramAuditPushTask)
|
||||
{
|
||||
startPage();
|
||||
List<TelegramAuditPushTask> list = telegramAuditPushTaskService.selectTelegramAuditPushTaskList(telegramAuditPushTask);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出Telegram审核消息推送任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:export')")
|
||||
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(TelegramAuditPushTask telegramAuditPushTask)
|
||||
{
|
||||
List<TelegramAuditPushTask> list = telegramAuditPushTaskService.selectTelegramAuditPushTaskList(telegramAuditPushTask);
|
||||
ExcelUtil<TelegramAuditPushTask> util = new ExcelUtil<TelegramAuditPushTask>(TelegramAuditPushTask.class);
|
||||
return util.exportExcel(list, "telegramAuditPushTask");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Telegram审核消息推送任务详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(telegramAuditPushTaskService.selectTelegramAuditPushTaskById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Telegram审核消息推送任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:add')")
|
||||
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TelegramAuditPushTask telegramAuditPushTask)
|
||||
{
|
||||
return toAjax(telegramAuditPushTaskService.insertTelegramAuditPushTask(telegramAuditPushTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Telegram审核消息推送任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:edit')")
|
||||
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TelegramAuditPushTask telegramAuditPushTask)
|
||||
{
|
||||
return toAjax(telegramAuditPushTaskService.updateTelegramAuditPushTask(telegramAuditPushTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Telegram审核消息推送任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditPushTask:remove')")
|
||||
@Log(title = "Telegram审核消息推送任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(telegramAuditPushTaskService.deleteTelegramAuditPushTaskByIds(ids));
|
||||
}
|
||||
}
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
package com.ruoyi.system.controller;
|
||||
import com.ruoyi.common.select.Ids;
|
||||
import com.ruoyi.common.select.SelectItem;
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TelegramAuditRecord;
|
||||
import com.ruoyi.system.domain.TelegramAuditRecordPlus;
|
||||
import com.ruoyi.system.service.ITelegramAuditRecordService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* Telegram审核记录Controller
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2026-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/telegramAuditRecord")
|
||||
public class TelegramAuditRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITelegramAuditRecordService telegramAuditRecordService;
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:getByIds')")
|
||||
@PostMapping("/getByIds")
|
||||
public AjaxResult getByIds(@RequestBody Ids ids)
|
||||
{
|
||||
List<TelegramAuditRecordPlus> list = telegramAuditRecordService.getByIds(ids.getLongIds(),TelegramAuditRecordPlus::getAuditNo,TelegramAuditRecordPlus::getId);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:select')")
|
||||
@GetMapping("/select")
|
||||
public AjaxResult select(String keyword)
|
||||
{
|
||||
List<SelectItem> list = telegramAuditRecordService.select(keyword);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
/**
|
||||
* 查询Telegram审核记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TelegramAuditRecord telegramAuditRecord)
|
||||
{
|
||||
startPage();
|
||||
List<TelegramAuditRecord> list = telegramAuditRecordService.selectTelegramAuditRecordList(telegramAuditRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出Telegram审核记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:export')")
|
||||
@Log(title = "Telegram审核记录", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(TelegramAuditRecord telegramAuditRecord)
|
||||
{
|
||||
List<TelegramAuditRecord> list = telegramAuditRecordService.selectTelegramAuditRecordList(telegramAuditRecord);
|
||||
ExcelUtil<TelegramAuditRecord> util = new ExcelUtil<TelegramAuditRecord>(TelegramAuditRecord.class);
|
||||
return util.exportExcel(list, "telegramAuditRecord");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Telegram审核记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(telegramAuditRecordService.selectTelegramAuditRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Telegram审核记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:add')")
|
||||
@Log(title = "Telegram审核记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TelegramAuditRecord telegramAuditRecord)
|
||||
{
|
||||
return toAjax(telegramAuditRecordService.insertTelegramAuditRecord(telegramAuditRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Telegram审核记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:edit')")
|
||||
@Log(title = "Telegram审核记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TelegramAuditRecord telegramAuditRecord)
|
||||
{
|
||||
return toAjax(telegramAuditRecordService.updateTelegramAuditRecord(telegramAuditRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Telegram审核记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:telegramAuditRecord:remove')")
|
||||
@Log(title = "Telegram审核记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(telegramAuditRecordService.deleteTelegramAuditRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user