huwhois 5 years ago
parent
commit
e8a4b1adb5

+ 5 - 5
src/main/java/io/renren/modules/admin/lecture/controller/LectureController.java

@ -35,7 +35,7 @@ public class LectureController {
35 35
     * 列表
36 36
     */
37 37
    @RequestMapping("/list")
38
    @RequiresPermissions("generator:lecture:list")
38
    @RequiresPermissions("admin:lecture:list")
39 39
    public R list(@RequestParam Map<String, Object> params){
40 40
        PageUtils page = lectureService.queryPage(params);
41 41
@ -47,7 +47,7 @@ public class LectureController {
47 47
     * 信息
48 48
     */
49 49
    @RequestMapping("/info/{id}")
50
    @RequiresPermissions("generator:lecture:info")
50
    @RequiresPermissions("admin:lecture:info")
51 51
    public R info(@PathVariable("id") Long id){
52 52
		LectureEntity lecture = lectureService.getById(id);
53 53
@ -58,7 +58,7 @@ public class LectureController {
58 58
     * 保存
59 59
     */
60 60
    @RequestMapping("/save")
61
    @RequiresPermissions("generator:lecture:save")
61
    @RequiresPermissions("admin:lecture:save")
62 62
    public R save(@RequestBody LectureEntity lecture){
63 63
		lectureService.save(lecture);
64 64
@ -69,7 +69,7 @@ public class LectureController {
69 69
     * 修改
70 70
     */
71 71
    @RequestMapping("/update")
72
    @RequiresPermissions("generator:lecture:update")
72
    @RequiresPermissions("admin:lecture:update")
73 73
    public R update(@RequestBody LectureEntity lecture){
74 74
		lectureService.updateById(lecture);
75 75
@ -80,7 +80,7 @@ public class LectureController {
80 80
     * 删除
81 81
     */
82 82
    @RequestMapping("/delete")
83
    @RequiresPermissions("generator:lecture:delete")
83
    @RequiresPermissions("admin:lecture:delete")
84 84
    public R delete(@RequestBody Long[] ids){
85 85
		lectureService.removeByIds(Arrays.asList(ids));
86 86

+ 1 - 1
src/main/java/io/renren/modules/admin/lecture/dao/LectureDao.java

@ -1,6 +1,6 @@
1 1
package io.renren.modules.admin.lecture.dao;
2 2
3
import io.renren.modules.generator.entity.LectureEntity;
3
import io.renren.modules.admin.lecture.entity.LectureEntity;
4 4
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 5
import org.apache.ibatis.annotations.Mapper;
6 6