master
parent
b1a7b4ca6e
commit
6e52f169d9
4 changed files with 72 additions and 0 deletions
@ -0,0 +1,20 @@ |
||||
package com.teaching.backend.controller; |
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
/** |
||||
* <p> |
||||
* 前端控制器 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-06-07 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/chapter") |
||||
public class ChapterController { |
||||
|
||||
} |
@ -0,0 +1,16 @@ |
||||
package com.teaching.backend.mapper; |
||||
|
||||
import com.teaching.backend.entity.Chapter; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
||||
/** |
||||
* <p> |
||||
* Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-06-07 |
||||
*/ |
||||
public interface ChapterMapper extends BaseMapper<Chapter> { |
||||
|
||||
} |
@ -0,0 +1,16 @@ |
||||
package com.teaching.backend.service; |
||||
|
||||
import com.teaching.backend.entity.Chapter; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-06-07 |
||||
*/ |
||||
public interface IChapterService extends IService<Chapter> { |
||||
|
||||
} |
@ -0,0 +1,20 @@ |
||||
package com.teaching.backend.service.impl; |
||||
|
||||
import com.teaching.backend.entity.Chapter; |
||||
import com.teaching.backend.mapper.ChapterMapper; |
||||
import com.teaching.backend.service.IChapterService; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-06-07 |
||||
*/ |
||||
@Service |
||||
public class ChapterServiceImpl extends ServiceImpl<ChapterMapper, Chapter> implements IChapterService { |
||||
|
||||
} |
Loading…
Reference in new issue