Pu Zhibing
2025-04-03 1f09f6daaf73bc83cceb4ae22b862b7b365635cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 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-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")
    @ApiOperation(value = "会员变更记录", tags = {"后台"})
    public R<IPage<UserChangeLog>> page(@RequestBody UserChangeQuery userChangeLog){
 
        return R.ok(userChangeLogService.pageList(userChangeLog));
    }
 
 
 
 
 
}