# OnlineCourseSystem-Server **Repository Path**: NO1HANDSOME/online-course-system-server ## Basic Information - **Project Name**: OnlineCourseSystem-Server - **Description**: OnlineCourseSystem-Server基于SpringBoot+MyBatis Plus+MySQL等。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-21 - **Last Updated**: 2023-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: 服务端 ## README # OnlineCourseSystem-Server #### 介绍 OnlineCourseSystem-Server基于SpringBoot+MyBatis Plus+MySQL等。 #### 日志 2023-09-26:前期工作提交。 2023-07-13: 教师课程管理完成。 1. 对于Long型的用户ID返回前端时应将其转为字符串,否则前端可能丢失精度。 2023-06-20: CrossFilter解决跨域问题。 2023-06-02:动态参数的多表条件查询。 1. 在XML中通过IF标签实现动态SQL。 2. 在多表查询中,不使用QueryWrapper表示查询条件。 2023-06-01:MP分页插件应用于自定义SQL(多表查询)分页。 1. 配置Configuration以开启MP自定义SQL的分页。 2. Mapper增加相应查询方法;返回IPage;第一个形参未IPage。 3. 在XML中实现SQL。 4. Controller层未考虑参数是否可选(待修改)。 2023-05-31:teachers接口完成。 1. 使用@RequestParam注解接受通用分页参数;使用Bean接受条件查询参数。 2. 使用MP的分页查询接口;使用QueryWrapper自定义查询条件(调用allEQ接口,该接口接受Map,可使用FastJSON)。 3. 自定义PageResult类封装返回前端的分页查询结果。 4. PageResult类中需定义成员变量的Getter与Setter方法,否则Controller层Return时会出现序列化异常。 2023-05-23:info接口完成。 1. 前端请求携带Token时,将Token放置在Authorization中,Token格式为Bearer Token。 2. Token未持久化存储于服务端。 3. info接口只解析Token中的payload字段并返回,不进行数据库查询。 2023-05-21:OCS服务端框架建立,login接口完成。