提交课程相关接口

This commit is contained in:
lvzhihao 2025-08-09 13:31:44 +08:00
parent 60c7ff577d
commit 0427eebee7
11 changed files with 16 additions and 6 deletions

View File

@ -51,7 +51,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
public class CourseController extends JeecgController<Course, ICourseService> {
@Autowired
private ICourseService courseService;
/**
* 分页列表查询
*

View File

@ -33,6 +33,7 @@ import lombok.experimental.Accessors;
public class Course implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description = "主键")

View File

@ -14,4 +14,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface CourseMapper extends BaseMapper<Course> {
}

View File

@ -2,4 +2,4 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.gen.course.mapper.CourseMapper">
</mapper>
</mapper>

View File

@ -11,4 +11,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ICourseService extends IService<Course> {
}

View File

@ -16,4 +16,5 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
}

View File

@ -3,6 +3,7 @@ import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/gen/course/course/list',
save='/gen/course/course/add',

View File

@ -3,6 +3,7 @@ import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//
export const columns: BasicColumn[] = [
{
@ -264,4 +265,4 @@ export const superQuerySchema = {
export function getBpmFormSchema(_formData): FormSchema[]{
// formSchema
return formSchema;
}
}

View File

@ -1,4 +1,5 @@
<template>
<div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
@ -220,4 +221,4 @@
:deep(.ant-picker),:deep(.ant-input-number){
width: 100%;
}
</style>
</style>

View File

@ -7,6 +7,7 @@
</div>
</template>
<script lang="ts">
import {BasicForm, useForm} from '/@/components/Form/index';
import {computed, defineComponent} from 'vue';
@ -67,4 +68,4 @@
}
}
});
</script>
</script>

View File

@ -4,6 +4,7 @@
</BasicModal>
</template>
<script lang="ts" setup>
import {ref, computed, unref, reactive} from 'vue';
import {BasicModal, useModalInner} from '/@/components/Modal';
@ -96,4 +97,4 @@
:deep(.ant-calendar-picker) {
width: 100%;
}
</style>
</style>