zj
2024-06-03 81a29edf665881828e4ca1f0e444bfcbc6ab6f24
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.nq.controller;
 
import java.util.List;
 
import com.nq.common.BaseController;
import com.nq.common.page.TableDataInfo;
import com.nq.pojo.UserLeverApply;
import com.nq.service.IUserLeverApplyService;
import com.nq.vo.AjaxResult;
import com.nq.vo.user.UserApplyEditParamVo;
import com.nq.vo.user.UserApplyLeverRes;
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;
 
 
@RestController
@RequestMapping("/userLever/apply")
public class UserLeverApplyController extends BaseController
{
    @Autowired
    private IUserLeverApplyService userLeverApplyService;
 
    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public TableDataInfo list(UserLeverApply userLeverApply)
    {
        startPage();
        List<UserApplyLeverRes> list = userLeverApplyService.selectUserLeverApplyVoList(userLeverApply);
        return getDataTable(list);
    }
 
 
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return AjaxResult.success(userLeverApplyService.selectUserLeverApplyById(id));
    }
 
    @PostMapping("/applyUserLever")
    public AjaxResult add( UserLeverApply userLeverApply)
    {
        return toAjax(userLeverApplyService.insertUserLeverApply(userLeverApply));
    }
 
    @PostMapping("/editUserLever")
    public AjaxResult editUserLever(UserApplyEditParamVo paramVo)
    {
        return toAjax(userLeverApplyService.editUserLever(paramVo));
    }
 
    @PostMapping("/checkUserLever")
    public AjaxResult edit(UserLeverApply userLeverApply)
    {
        return toAjax(userLeverApplyService.updateUserLeverApply(userLeverApply));
    }
 
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(userLeverApplyService.deleteUserLeverApplyByIds(ids));
    }
}