package com.ruoyi.account.controller;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.ruoyi.account.api.model.AgentApplication;
|
import com.ruoyi.account.api.model.UserChangeLog;
|
import com.ruoyi.account.dto.UserChangeQuery;
|
import com.ruoyi.account.service.UserChangeLogService;
|
import com.ruoyi.common.core.domain.R;
|
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-change-log")
|
public class UserChangeLogController {
|
|
@Resource
|
private UserChangeLogService userChangeLogService;
|
|
|
/**
|
* 保存会员等级变更记录
|
* @param userChangeLog
|
* @return
|
*/
|
@PostMapping("/saveUserChangeLog")
|
public R saveUserChangeLog(@RequestBody UserChangeLog userChangeLog){
|
userChangeLogService.save(userChangeLog);
|
return R.ok();
|
}
|
|
@PostMapping("/page")
|
public R<IPage<UserChangeLog>> page(@RequestBody UserChangeQuery userChangeLog){
|
|
return R.ok(userChangeLogService.pageList(userChangeLog));
|
}
|
|
|
|
|
|
}
|