修改代码
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
package com.qingqiu.interview.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 题型分类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author huangpeng
|
||||||
|
* @since 2025-09-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("question_category")
|
||||||
|
public class QuestionCategory implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
private LocalDateTime createdTime;
|
||||||
|
|
||||||
|
private LocalDateTime updatedTime;
|
||||||
|
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.qingqiu.interview.mapper;
|
||||||
|
|
||||||
|
import com.qingqiu.interview.entity.QuestionCategory;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 题型分类 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author huangpeng
|
||||||
|
* @since 2025-09-08
|
||||||
|
*/
|
||||||
|
public interface QuestionCategoryMapper extends BaseMapper<QuestionCategory> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.qingqiu.interview.service;
|
||||||
|
|
||||||
|
import com.qingqiu.interview.entity.QuestionCategory;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 题型分类 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author huangpeng
|
||||||
|
* @since 2025-09-08
|
||||||
|
*/
|
||||||
|
public interface IQuestionCategoryService extends IService<QuestionCategory> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package com.qingqiu.interview.service.impl;
|
||||||
|
|
||||||
|
import com.qingqiu.interview.entity.QuestionCategory;
|
||||||
|
import com.qingqiu.interview.mapper.QuestionCategoryMapper;
|
||||||
|
import com.qingqiu.interview.service.IQuestionCategoryService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 题型分类 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author huangpeng
|
||||||
|
* @since 2025-09-08
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class QuestionCategoryServiceImpl extends ServiceImpl<QuestionCategoryMapper, QuestionCategory> implements IQuestionCategoryService {
|
||||||
|
|
||||||
|
}
|
||||||
5
src/main/resources/mapper/QuestionCategoryMapper.xml
Normal file
5
src/main/resources/mapper/QuestionCategoryMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.qingqiu.interview.mapper.QuestionCategoryMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user