package com.ruoyi.account.controller;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.ruoyi.account.api.model.UserCancellationLog;
|
import com.ruoyi.account.dto.AgentQuery;
|
import com.ruoyi.account.dto.UserCancelQuery;
|
import com.ruoyi.account.service.UserCancellationLogService;
|
import com.ruoyi.common.core.domain.R;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
/**
|
* <p>
|
* 前端控制器
|
* </p>
|
*
|
* @author luodangjia
|
* @since 2024-11-21
|
*/
|
@RestController
|
@RequestMapping("/user-cancellation-log")
|
public class UserCancellationLogController {
|
@Resource
|
private UserCancellationLogService cancellationLogService;
|
|
|
|
|
@PostMapping("/page")
|
@ApiOperation(value = "注销记录列表", tags = {"后台"})
|
public R<IPage<UserCancellationLog>> page(@RequestBody UserCancelQuery agentQuery) {
|
return R.ok(cancellationLogService.pageList(agentQuery));
|
}
|
|
}
|