puzhibing
2024-12-10 fb6eee80334ae23a2eca8c37baeef05e86c919ed
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
package com.ruoyi.account.controller;
 
 
import com.ruoyi.account.api.model.UserChangeLog;
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();
    }
    
    
    
 
}